@rio-cloud/cdk-v2-constructs 2.0.0 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +92 -50
- package/CHANGELOG.md +11 -0
- package/MIGRATION_GUIDE.md +20 -14
- package/lib/datadog/datadogLogIndexMonitoring.d.ts +6 -0
- package/lib/datadog/datadogLogIndexMonitoring.js +3 -3
- package/lib/fargate/datadog.d.ts +76 -5
- package/lib/fargate/datadog.js +266 -196
- package/lib/fargate/rio-fargate-service.d.ts +36 -17
- package/lib/fargate/rio-fargate-service.js +92 -9
- package/lib/pipeline/rio-backup-secrets-restore-stage.js +3 -3
- package/package.json +12 -12
- package/version.json +1 -1
package/lib/fargate/datadog.d.ts
CHANGED
|
@@ -2,17 +2,88 @@ import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
|
2
2
|
import * as ssm from 'aws-cdk-lib/aws-ssm';
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
4
|
import { DataDogLoggingMode, RioFargateService } from './rio-fargate-service';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Moved out static methods and imporoved signature. Use named import instead.
|
|
7
|
+
*/
|
|
5
8
|
export declare class DataDog {
|
|
6
|
-
static getFargateContainerEnvironmentVariables(scope: Construct, stage: string, serviceName: string, version: string, accountName: string, teamName: string
|
|
9
|
+
static getFargateContainerEnvironmentVariables(scope: Construct, stage: string, serviceName: string, version: string, accountName: string, teamName: string, teamIdentifier: string, additionalTags: {
|
|
10
|
+
[k: string]: string;
|
|
11
|
+
} | undefined): {
|
|
7
12
|
[key: string]: string;
|
|
8
13
|
};
|
|
9
|
-
static getApmServiceMappingEnvironmentVariableValue(serviceName: string): string;
|
|
10
14
|
static getFargateDockerLabels(stage: string, serviceName: string, version: string): {
|
|
11
15
|
[key: string]: string;
|
|
12
16
|
};
|
|
13
|
-
static addDatadogSidecar(scope: Construct, taskDefinition: ecs.TaskDefinition, accountName: string, teamName: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogSite: string, datadogLoggingMode: DataDogLoggingMode, apmGetResourcesToIgnore: string[], cpu: number, memoryLimitMiB: number, essential: boolean, containerTag: string
|
|
14
|
-
|
|
17
|
+
static addDatadogSidecar(scope: Construct, taskDefinition: ecs.TaskDefinition, accountName: string, teamName: string, teamIdentifier: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogSite: string, datadogLoggingMode: DataDogLoggingMode, apmGetResourcesToIgnore: string[], cpu: number, memoryLimitMiB: number, essential: boolean, containerTag: string, additionalTags: {
|
|
18
|
+
[k: string]: string;
|
|
19
|
+
} | undefined): ecs.ContainerDefinition;
|
|
15
20
|
static addFireLensLogRouter(taskDefinition: ecs.TaskDefinition, cpu: number, memoryLimitMiB: number): ecs.ContainerDefinition;
|
|
16
|
-
static setupLogging(scope: Construct, accountName: string, teamName: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogLoggingMode: DataDogLoggingMode, datadogSite: string, containerType: 'service' | 'datadog-sidecar'
|
|
21
|
+
static setupLogging(scope: Construct, accountName: string, teamName: string, teamIdentifier: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogLoggingMode: DataDogLoggingMode, datadogSite: string, containerType: 'service' | 'datadog-sidecar', additionalTags: {
|
|
22
|
+
[k: string]: string;
|
|
23
|
+
} | undefined): ecs.LogDriver;
|
|
17
24
|
static ensureLoggingAndMonitoringAreReadyBeforeServiceStarts(rioFargateService: RioFargateService): void;
|
|
18
25
|
}
|
|
26
|
+
export declare function getFargateContainerEnvironmentVariables(props: {
|
|
27
|
+
scope: Construct;
|
|
28
|
+
stage: string;
|
|
29
|
+
serviceName: string;
|
|
30
|
+
version: string;
|
|
31
|
+
accountName: string;
|
|
32
|
+
teamName: string;
|
|
33
|
+
teamIdentifier: string;
|
|
34
|
+
additionalTags: {
|
|
35
|
+
[k: string]: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
}): {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
export declare function getFargateDockerLabels(props: {
|
|
41
|
+
stage: string;
|
|
42
|
+
serviceName: string;
|
|
43
|
+
version: string;
|
|
44
|
+
}): {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
47
|
+
export declare function addDatadogSidecar(props: {
|
|
48
|
+
scope: Construct;
|
|
49
|
+
taskDefinition: ecs.TaskDefinition;
|
|
50
|
+
accountName: string;
|
|
51
|
+
teamName: string;
|
|
52
|
+
teamIdentifier: string;
|
|
53
|
+
stage: string;
|
|
54
|
+
serviceName: string;
|
|
55
|
+
version: string;
|
|
56
|
+
datadogApiKeyParameter: ssm.IStringParameter;
|
|
57
|
+
datadogSite: string;
|
|
58
|
+
datadogLoggingMode: DataDogLoggingMode;
|
|
59
|
+
apmGetResourcesToIgnore: string[];
|
|
60
|
+
cpu: number;
|
|
61
|
+
memoryLimitMiB: number;
|
|
62
|
+
essential: boolean;
|
|
63
|
+
containerTag: string;
|
|
64
|
+
additionalTags: {
|
|
65
|
+
[k: string]: string;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}): ecs.ContainerDefinition;
|
|
68
|
+
export declare function addFireLensLogRouter(props: {
|
|
69
|
+
taskDefinition: ecs.TaskDefinition;
|
|
70
|
+
cpu: number;
|
|
71
|
+
memoryLimitMiB: number;
|
|
72
|
+
}): ecs.ContainerDefinition;
|
|
73
|
+
export declare function setupLogging(props: {
|
|
74
|
+
scope: Construct;
|
|
75
|
+
accountName: string;
|
|
76
|
+
teamName: string;
|
|
77
|
+
teamIdentifier: string;
|
|
78
|
+
stage: string;
|
|
79
|
+
serviceName: string;
|
|
80
|
+
version: string;
|
|
81
|
+
datadogApiKeyParameter: ssm.IStringParameter;
|
|
82
|
+
datadogLoggingMode: DataDogLoggingMode;
|
|
83
|
+
datadogSite: string;
|
|
84
|
+
containerType: 'service' | 'datadog-sidecar';
|
|
85
|
+
additionalTags: {
|
|
86
|
+
[k: string]: string;
|
|
87
|
+
} | undefined;
|
|
88
|
+
}): ecs.LogDriver;
|
|
89
|
+
export declare function ensureLoggingAndMonitoringAreReadyBeforeServiceStarts(rioFargateService: RioFargateService): void;
|