@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 | Datadog CF Resource Name | Description | Datadog CF Version |
---|---|---|---|---|
✅ | Dashboards | Datadog::Dashboards::Dashboard |
Create, update, and delete Datadog dashboards. | 1.0.0 |
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.
Dashboards
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import fs as fs
from nomadblacky.cdk_datadog_resources import DatadogDashboard
DatadogDashboard(your_stack, "TestDashboard",
datadog_credentials={
"api_key": process.env.DATADOG_API_KEY,
"application_key": process.env.DATADOG_APP_KEY
},
dashboard_definition=fs.read_file_sync(f"{__dirname}/path/to/your/dashboard-definition.json").to_string()
)
Monitors
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from nomadblacky.cdk_datadog_resources import DatadogMonitor
DatadogMonitor(your_stack, "TestMonitor",
datadog_credentials={
"api_key": process.env.DATADOG_API_KEY,
"application_key": process.env.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.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d830da80203aa740876fbef1424a209c206cf984be1a2f7bfaf41402dee1c8f |
|
MD5 | 4f143bb7aa5057310fa398b29d690433 |
|
BLAKE2b-256 | 8d84efa64c106dc4f076f989222981e54b89a8237f47368ee147661ae5de0202 |
Close
Hashes for cdk_datadog_resources-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a46fe2e65387522cb239642874ff8b73e6e9124b52ff2e4106b3c83ac111c15 |
|
MD5 | 9b3c9eadb69479b2804e740e77161492 |
|
BLAKE2b-256 | 62a3eca2b1101986705da51c174c734a2cdb13a938a3e7026415c3df6b79519f |