Giter Club home page Giter Club logo

Comments (4)

mwpatrick avatar mwpatrick commented on July 30, 2024

What is the test event you are using for them look like?

from aws-health-tools.

mitechniq avatar mitechniq commented on July 30, 2024

I noticed there was no events posted in Slack, I decided to form an event in the Lambda Test section: { "account": "123456789", "region": "us-east-1", "detail": {}, "detail-type": "AWS Health Event", "source": "aws.health", "time": "1970-01-01T00:00:00Z", "id": "cdc73f9d-aea9-11e3-9d5a-835b769c0d9c", "resources": [ "arn:aws:events:us-east-1:123456789:rule/SlackNotifier-CloudWatchEventRule-GCBS8UOHBXM5" ] }

from aws-health-tools.

tipuq avatar tipuq commented on July 30, 2024

The error that you have shared above makes it seem like a field either doesn't exist or isn't in the right format. Have you tried the sample AWS Health CloudWatch events to see if it works? They can be accessed under the CloudWatch events console once you choose the Health service by clicking show sample events:
https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#rules:action=create

Here is an example of sample event that you could use to test your function:
{ "version": "0", "id": "7bf73129-1428-4cd3-a780-95db273d1602", "detail-type": "AWS Health Event", "source": "aws.health", "account": "123456789012", "time": "2016-06-05T06:27:57Z", "region": "us-west-2", "resources": [ "i-abcd1111" ], "detail": { "eventArn": "arn:aws:health:us-west-2::event/AWS_EC2_INSTANCE_STORE_DRIVE_PERFORMANCE_DEGRADED_90353408594353980", "service": "EC2", "eventTypeCode": "AWS_EC2_INSTANCE_STORE_DRIVE_PERFORMANCE_DEGRADED", "eventTypeCategory": "issue", "startTime": "Sat, 05 Jun 2016 15:10:09 GMT", "eventDescription": [ { "language": "en_US", "latestDescription": "A description of the event will be provided here" } ], "affectedEntities": [ { "entityValue": "i-abcd1111", "tags": { "stage": "prod", "app": "my-app" } } ] } }

from aws-health-tools.

mitechniq avatar mitechniq commented on July 30, 2024

Thank you, it now works with a sample test but now I need to figure why the events are not being updated in CloudWatch.

from aws-health-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.