@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
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
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3959256bdd217ebbdcdd82c3858d14bbea692aa7604e2afc0b2f50de4eaa4870 |
|
MD5 | a3ff39abe3a3188e015cf56f95955458 |
|
BLAKE2b-256 | 2ca88ef30eb526a8c1b803561e119abae6e6ccf3599bd68925b063a91da67bc5 |
Close
Hashes for cdk_datadog_resources-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bce1273e6c9abee515081c69638971a42d80b7d6392bfa600d2799b27333abd |
|
MD5 | 7523e4760b8c17ec2d1ed08683fc880c |
|
BLAKE2b-256 | c933dda92c29c18dc5cec65a3f708ef7e09e0c59624ade6c6bb8b776d7c83409 |