Skip to content

Commit 454eb2c

Browse files
Merge pull request #2 from GoodNotes/make-datadog-credentials-optional
Upgrade datadog version
2 parents 118c15a + 4bd17b1 commit 454eb2c

31 files changed

+1202
-13368
lines changed

.projen/tasks.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,6 @@ const project = new AwsCdkConstructLibrary({
119119
// docgen is currently the only task of post-compile and it fails for aws-cdk-lib in jsii
120120
// https://github.com/cdklabs/jsii-docgen/issues/1122
121121
project.tasks.tryFind('docgen').reset();
122+
123+
project.tasks.addTask('create-typescript-types', { exec: 'yarn --cwd scripts node create-types.js' });
122124
project.synth();

README.md

Lines changed: 3 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,10 @@ You need to register the correct version listed in `Supported Resources`.
1919
## Supported Resources
2020

2121
| Supported? | Resource | Datadog CF Resource Name | Description | Datadog CF Version |
22-
| :--------: | ----------------------- | -------------------------------- | -------------------------------------------------------- | ------------------ |
23-
|| Dashboards | `Datadog::Dashboards::Dashboard` | [Create, update, and delete Datadog dashboards.][1] | [1.0.0][7] |
24-
|| Datadog-AWS integration | `Datadog::Integrations::AWS` | [Manage your Datadog-Amazon Web Service integration.][2] | [1.1.0][10] |
25-
|| Monitors | `Datadog::Monitors::Monitor` | [Create, update, and delete Datadog monitors.][3] | [3.0.0][6] |
26-
|| Downtimes | `Datadog::Monitors::Downtime` | [Enable or disable downtimes for your monitors.][4] | [2.0.0][8] |
27-
|| Users | `Datadog::IAM::User` | [Create and manage Datadog users.][5] | [1.2.0][9] |
28-
29-
[1]: https://github.com/DataDog/datadog-cloudformation-resources/tree/master/datadog-dashboards-dashboard-handler
30-
[2]: https://github.com/DataDog/datadog-cloudformation-resources/tree/master/datadog-integrations-aws-handler
31-
[3]: https://github.com/DataDog/datadog-cloudformation-resources/tree/master/datadog-monitors-monitor-handler
32-
[4]: https://github.com/DataDog/datadog-cloudformation-resources/tree/master/datadog-monitors-downtime-handler
33-
[5]: https://github.com/DataDog/datadog-cloudformation-resources/tree/master/datadog-iam-user-handler
22+
| :--------: | ----------------------- | -------------------------------- | -------------------------------------------------------- |--------------------|
23+
|| Monitors | `Datadog::Monitors::Monitor` | [Create, update, and delete Datadog monitors.][3] | [4.6.0][6] |
24+
3425
[6]: https://github.com/DataDog/datadog-cloudformation-resources/blob/master/datadog-monitors-monitor-handler/CHANGELOG.md#300--2021-02-16
35-
[7]: https://github.com/DataDog/datadog-cloudformation-resources/blob/master/datadog-dashboards-dashboard-handler/CHANGELOG.md#100--2021-02-16
36-
[8]: https://github.com/DataDog/datadog-cloudformation-resources/blob/master/datadog-monitors-downtime-handler/CHANGELOG.md#200--2021-02-16
37-
[9]: https://github.com/DataDog/datadog-cloudformation-resources/blob/master/datadog-iam-user-handler/CHANGELOG.md#120--2021-02-16
38-
[10]:https://github.com/DataDog/datadog-cloudformation-resources/blob/master/datadog-integrations-aws-handler/CHANGELOG.md#110--2020-08-04
3926

4027
## Installation
4128

@@ -49,17 +36,6 @@ npm install @goodnotes-oss/cdk-datadog-resources
4936

5037
Below are examples of TypeScript. Credentials are not required because that is configured at CFN extension level Check [requirements](#requirements)
5138

52-
### Dashboards
53-
54-
```typescript
55-
import * as fs from 'fs';
56-
import { DatadogDashboard } from '@goodnotes-oss/cdk-datadog-resources';
57-
58-
new DatadogDashboard(yourStack, 'TestDashboard', {
59-
dashboardDefinition: fs.readFileSync(`${__dirname}/path/to/your/dashboard-definition.json`).toString(),
60-
});
61-
```
62-
6339
### Monitors
6440

6541
```typescript
@@ -81,45 +57,6 @@ new DatadogMonitor(yourStack, 'TestMonitor', {
8157
});
8258
```
8359

84-
### Downtimes
85-
86-
```typescript
87-
import { DatadogDowntime } from '@goodnotes-oss/cdk-datadog-resources';
88-
89-
new DatadogDowntime(stack, 'TestMonitor', {
90-
datadogCredentials: {
91-
apiKey: 'DATADOG_API_KEY',
92-
applicationKey: 'DATADOG_APP_KEY',
93-
},
94-
scope: ['host:myserver', 'service:myservice'],
95-
start: 1624542715,
96-
end: 1624546321,
97-
});
98-
```
99-
100-
### Users
101-
102-
```typescript
103-
import { DatadogIAMUser } from '@goodnotes-oss/cdk-datadog-resources';
104-
105-
new DatadogIAMUser(stack, 'TestUser', {
106-
107-
name: 'name_example',
108-
handle: 'title_example',
109-
disabled: false,
110-
});
111-
```
112-
113-
### DataDog Integration
114-
115-
```typescript
116-
import { DatadogIntegrationAWS } from '@goodnotes-oss/cdk-datadog-resources';
117-
118-
new DatadogIntegrationAWS(this, 'DataDogIntegration', {
119-
accountId: "ACCOUNT_ID",
120-
roleName: "DatadogIntegrationRole",
121-
});
122-
```
12360

12461
## Fork
12562
This is a fork of https://github.com/NomadBlacky/cdk-datadog-resources, which is currently unmaintained.

cf-schema/datadog-monitor-3.0.0.json

Lines changed: 0 additions & 256 deletions
This file was deleted.

0 commit comments

Comments
 (0)