@nomadblacky/cdk-datadog-resources
Project description
AWS CDK Datadog Resources
An AWS CDK construct library that wrapped DataDog/datadog-cloudformation-resources.
Requirements
Before use this library, register datadog-cloudformation-resources to your AWS account.
You need to register the correct version listed in Supported Resources
.
Supported CDK Languages
- TypeScript
- Python
JavaSorry, there is a problem with the release. (#22)
Supported Resources
Supported? | Resource | Name | Description | Datadog CF Version |
---|---|---|---|---|
Dashboards | Datadog::Dashboards::Dashboard |
Create, update, and delete Datadog dashboards. | N/A | |
Datadog-AWS integration | Datadog::Integrations::AWS |
Manage your Datadog-Amazon Web Service integration. | N/A | |
✅ | Monitors | Datadog::Monitors::Monitor |
Create, update, and delete Datadog monitors. | 3.0.0 |
Downtimes | Datadog::Monitors::Downtime |
Enable or disable downtimes for your monitors. | N/A | |
User | Datadog::IAM::User |
Create and manage Datadog users. | N/A |
Installation
TypeScript
npm install @nomadblacky/cdk-datadog-resources
Python
pip install cdk-datadog-resources
Java
<dependency>
<groupId>dev.nomadblacky</groupId>
<artifactId>cdk-datadog-resources</artifactId>
<version>x.y.z</version>
</dependency>
Usage
Belows are examples of TypeScript.
Monitors
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk.core import App, Stack
from nomadblacky.cdk_datadog_resources import DatadogMonitor
app = App()
stack = Stack(app, "CdkDatadogResourcesTestStack")
DatadogMonitor(stack, "TestMonitor",
datadog_credentials={
"api_key": process.env.DATADOG_API_KEY || "DATADOG_API_KEY",
"application_key": process.env.DATADOG_APP_KEY || "DATADOG_APP_KEY"
},
query="avg(last_1h):sum:system.cpu.system{host:host0} > 100",
type=MonitorType.QueryAlert,
name="Test Monitor",
options={
"thresholds": {
"critical": 100,
"warning": 80,
"o_k": 90
},
"notify_no_data": True,
"evaluation_delay": 60
}
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cdk-datadog-resources-0.1.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c4ee1c3175323b6d41d42ef0fcf02f0fcc3b9e4aea3c2161051c3a2da66c6c9 |
|
MD5 | 54a31c482cf1dd2a3598bbb03185c676 |
|
BLAKE2b-256 | 94081ae3572cc18434d8f590de478e4eafe448631ba152b1d2e38a56457d451f |
Close
Hashes for cdk_datadog_resources-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8bdc7d9187ceb14006b59d2d5adc98b1bc70a18018ca81e19f99431637f1a38 |
|
MD5 | 2fe4549a8d1a93601feddc75a779f4e6 |
|
BLAKE2b-256 | cf8fcb760517152248c4bc18d21f61be9463f5a111e9a5b0e637aace83fe9b3f |