手动触发AWS CloudWatch事件 [英] Trigger AWS CloudWatch Event Manually

查看:266
本文介绍了手动触发AWS CloudWatch事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CloudWatch中有一个事件,每天触发一次.有没有一种方法可以手动触发事件(出于测试目的)?

I have a event in CloudWatch, which is triggered once a day. Is there a way to trigger the event manually (for testing purposes)?

...我意识到我可以增加事件触发时间表的频率.

...I realize I can increase the frequency of the event's triggering schedule.

推荐答案

如果您设置了云监视警报,则可以使用AWS CLI出于测试目的设置该警报的警报状态:

If you have a cloudwatch alarm set up, using the AWS CLI you can, for testing purposes, set the alarm state of that alarm:

aws cloudwatch set-alarm-state --alarm-name "myalarm" --state-value ALARM --state-reason "testing purposes"

请参见此处的文档

或者,您可以输入自定义事件,也可以使用CLI或SDK

Alternatively you can put a custom event, also using the CLI or the SDKs

这篇关于手动触发AWS CloudWatch事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆