@rio-cloud/cdk-v2-constructs 4.36.0 → 4.36.1

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 CHANGED
@@ -3671,7 +3671,7 @@
3671
3671
  },
3672
3672
  "name": "@rio-cloud/cdk-v2-constructs",
3673
3673
  "readme": {
3674
- "markdown": "# RIO CDK Constructs\n\nThis package contains CDK2 constructs for RIO teams.\n\n> NPM: `@rio-cloud/cdk-v2-constructs`\n\n## Bootstrapping of CDK project\n\n```\n$ npx cdk init --language typescript\n```\n\n## Installation\n\n```\n$ npm install --save @rio-cloud/cdk-v2-constructs\n```\n\n## See also\n\n * [How to contribute](./CONTRIBUTION.md)\n * [Changelog](./CHANGELOG.md)\n * [brief API description](./API.md)\n\n## Internal documentation for library devs\n[Documentation](./developers-readme.md)\n\n## Constructs overview (Under construction...)\n\n### Watchful\n\nWatchful constructs help generate some default monitors based on the resouces defined in your stack. Eg - If your stack contains a lambda function and you configure watchful construct, then it will create out of box metric monitors for Throttling, Lambda error and Log error monitors. The ever growing list of resources that watchful creates monitors for as of today are:\n\n- Application load balancer\n- Cloudfront\n- Documentdb\n- Dynamodb\n- Fargate\n- Lambda\n- RDS\n\nSimply add the following to your CDK stack to get started.\n```\n import * as rio from '@rio-cloud/cdk-v2-constructs';\n ...\n const dw = new rio.watchfulv2.Watchful(this, 'Watchful', {\n serviceName,\n });\n dw.watchScope(this); // Generates alarms for all supported resources\n ...\n```\n\nThere are options to override some defaults too. Please be aware that the library is very opinionated and is written with the most general use cases in mind. It is necessary to keep the use of the library simple enough, which means that there is only limited flexibility regarding the configuration options. Having said that, feel free to reach out to team CLAID over slack #rio-platform-support in case of feature requests.\n\nThe broad classification of the monitors created by watchful are\n- Log error monitors\n- Metrics Query monitors: Basically everything other than log error monitors\n\nFor Metrics query monitors, you can configure the priority (defaults as 3). For log error monitors, you can cpnfigure priority, renototification interval and can configure if the auto close of the monitor is disabled.\n```\n ...\n const dw = new Watchful(stack, 'Watchful2', {\n logErrorMonitorConfig: {\n disableAutoClose: true,\n renotifyInterval: 150,\n priority: 4,\n },\n queryErrorMonitorConfig: {\n priority: 4\n }\n });\n dw.watchScope(stack);\n```\n\nThere is an `overrideAlarmThreshold` method which can be used to override the default watchful thresholds. Please make aure to use the method before the `watchscope` function.\nEg -\n```\n...\nconst dw = new Watchful(stack, 'Watchful', {});\ndw.overrideAlarmThreshold({\n monitoredResourceScope: lambdaA,\n monitorType: MonitorType.ERRORS,\n threshold: 5,\n});\ndw.watchScope(stack);\n```"
3674
+ "markdown": "# RIO CDK Constructs\n\nThis package contains CDK2 constructs for RIO teams.\n\n> NPM: `@rio-cloud/cdk-v2-constructs`\n\n## Bootstrapping of CDK project\n\n```\n$ npx cdk init --language typescript\n```\n\n## Installation\n\n```\n$ npm install --save @rio-cloud/cdk-v2-constructs\n```\n\n## See also\n\n * [How to contribute](./CONTRIBUTION.md)\n * [Changelog](./CHANGELOG.md)\n * [brief API description](./API.md)\n\n## Internal documentation for library devs\n[Documentation](./developers-readme.md)\n\n## Constructs overview (Under construction...)\n\n### Watchful\n\nWatchful constructs help generate some default monitors based on the resouces defined in your stack. Eg - If your stack contains a lambda function and you configure watchful construct, then it will create out of box metric monitors for Throttling, Lambda error and Log error monitors. The ever growing list of resources that watchful creates monitors for as of today are:\n\n- Application load balancer\n- Cloudfront\n- Documentdb\n- Dynamodb\n- Fargate\n- Lambda\n- RDS\n\nSimply add the following to your CDK stack to get started.\n```\n import * as rio from '@rio-cloud/cdk-v2-constructs';\n ...\n const dw = new rio.watchfulv2.Watchful(this, 'Watchful', {\n serviceName,\n });\n dw.watchScope(this); // Generates alarms for all supported resources\n ...\n```\n\nThere are options to override some defaults too. Please be aware that the library is very opinionated and is written with the most general use cases in mind. It is necessary to keep the use of the library simple enough, which means that there is only limited flexibility regarding the configuration options. Having said that, feel free to reach out to team CLAID over slack #rio-platform-support in case of feature requests.\n\nThe broad classification of the monitors created by watchful are\n- Log error monitors\n- Metrics Query monitors: Basically everything other than log error monitors\n\nFor Metrics query monitors, you can configure the priority (defaults as 3). For log error monitors, you can cpnfigure priority, renototification interval and can configure if the auto close of the monitor is disabled.\n```\n ...\n const dw = new Watchful(stack, 'Watchful2', {\n logErrorMonitorConfig: {\n disableAutoClose: true,\n renotifyInterval: 150,\n priority: 4,\n },\n queryErrorMonitorConfig: {\n priority: 4\n }\n });\n dw.watchScope(stack);\n```\n\nThere is an `overrideAlarmThreshold` method which can be used to override the default watchful thresholds. Please make aure to use the method before the `watchscope` function.\nEg -\n```\n...\nconst dw = new Watchful(stack, 'Watchful', {});\ndw.overrideAlarmThreshold({\n monitoredResourceScope: lambdaA,\n monitorType: MonitorType.ERRORS,\n threshold: 5,\n});\ndw.watchScope(stack);\n```\n\n### ClassifyPipelineType\n\nThe pipelines can be tagged with key 'pipeline_type' to the following values\n* deploy: To tag the production pipeline releasing the application\n* branch: The branch pipeline. Mostly used to test contributions / renovate updates\n* vulerability: The vulnerability pipeline\n\nThe construct `ClassifyPipelineType` can be used to tag the pipeline accordingly. This tag is also picked up by the datadog pipeline metric used to monitor the pipelines. It is added as a tag to the metric. This gives you more flexibility with managing the monitors also. Eg - some teams dont want to get alered for branch pipelines. You can then leverage this metric tag to filter the pipelines.\n\nExample\n```\nconst pipeline = new pipelines.CodePipeline(this, 'Pipeline', {\n ...\n });\nrio.ClassifyPipelineType.apply(pipeline, rio.RioPipelineType.DEPLOY);\n```"
3675
3675
  },
3676
3676
  "repository": {
3677
3677
  "type": "git",
@@ -9341,7 +9341,7 @@
9341
9341
  "docs": {
9342
9342
  "stability": "stable"
9343
9343
  },
9344
- "name": "BUILD"
9344
+ "name": "BRANCH"
9345
9345
  },
9346
9346
  {
9347
9347
  "docs": {
@@ -16251,5 +16251,5 @@
16251
16251
  }
16252
16252
  },
16253
16253
  "version": "0.0.0",
16254
- "fingerprint": "LSnvNjhy4+r1WObhqd2daRUiHEs+bVqtAGzN86W9XxM="
16254
+ "fingerprint": "gPxdugWKVn7QSMWitcNxSMXBkEMSWbhoM/O1bfEeRRY="
16255
16255
  }
package/API.md CHANGED
@@ -16938,13 +16938,13 @@ The allowed values for pipeline type.
16938
16938
 
16939
16939
  | **Name** | **Description** |
16940
16940
  | --- | --- |
16941
- | <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.BUILD">BUILD</a></code> | *No description.* |
16941
+ | <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.BRANCH">BRANCH</a></code> | *No description.* |
16942
16942
  | <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.VULNERABILITY">VULNERABILITY</a></code> | *No description.* |
16943
16943
  | <code><a href="#@rio-cloud/cdk-v2-constructs.RioPipelineType.DEPLOY">DEPLOY</a></code> | *No description.* |
16944
16944
 
16945
16945
  ---
16946
16946
 
16947
- ##### `BUILD` <a name="BUILD" id="@rio-cloud/cdk-v2-constructs.RioPipelineType.BUILD"></a>
16947
+ ##### `BRANCH` <a name="BRANCH" id="@rio-cloud/cdk-v2-constructs.RioPipelineType.BRANCH"></a>
16948
16948
 
16949
16949
  ---
16950
16950
 
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [4.36.1](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.36.0&sourceBranch=refs%2Ftags%2Fv4.36.1) (2024-06-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * :boom: Fixed the incorrect pipeline type ([1009db7](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/1009db7d5edcb8bdc17fab441a1013cd597fac62))
11
+
5
12
  ## [4.36.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.35.0&sourceBranch=refs%2Ftags%2Fv4.36.0) (2024-06-03)
6
13
 
7
14
 
package/README.md CHANGED
@@ -83,4 +83,21 @@ dw.overrideAlarmThreshold({
83
83
  threshold: 5,
84
84
  });
85
85
  dw.watchScope(stack);
86
+ ```
87
+
88
+ ### ClassifyPipelineType
89
+
90
+ The pipelines can be tagged with key 'pipeline_type' to the following values
91
+ * deploy: To tag the production pipeline releasing the application
92
+ * branch: The branch pipeline. Mostly used to test contributions / renovate updates
93
+ * vulerability: The vulnerability pipeline
94
+
95
+ The construct `ClassifyPipelineType` can be used to tag the pipeline accordingly. This tag is also picked up by the datadog pipeline metric used to monitor the pipelines. It is added as a tag to the metric. This gives you more flexibility with managing the monitors also. Eg - some teams dont want to get alered for branch pipelines. You can then leverage this metric tag to filter the pipelines.
96
+
97
+ Example
98
+ ```
99
+ const pipeline = new pipelines.CodePipeline(this, 'Pipeline', {
100
+ ...
101
+ });
102
+ rio.ClassifyPipelineType.apply(pipeline, rio.RioPipelineType.DEPLOY);
86
103
  ```
@@ -3,7 +3,7 @@ import { IConstruct } from 'constructs';
3
3
  * The allowed values for pipeline type
4
4
  */
5
5
  export declare enum RioPipelineType {
6
- BUILD = "build",
6
+ BRANCH = "branch",
7
7
  VULNERABILITY = "vulnerability",
8
8
  DEPLOY = "deploy"
9
9
  }
@@ -9,7 +9,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
9
9
  */
10
10
  var RioPipelineType;
11
11
  (function (RioPipelineType) {
12
- RioPipelineType["BUILD"] = "build";
12
+ RioPipelineType["BRANCH"] = "branch";
13
13
  RioPipelineType["VULNERABILITY"] = "vulnerability";
14
14
  RioPipelineType["DEPLOY"] = "deploy";
15
15
  })(RioPipelineType || (exports.RioPipelineType = RioPipelineType = {}));
@@ -26,4 +26,4 @@ class ClassifyPipelineType {
26
26
  exports.ClassifyPipelineType = ClassifyPipelineType;
27
27
  _a = JSII_RTTI_SYMBOL_1;
28
28
  ClassifyPipelineType[_a] = { fqn: "@rio-cloud/c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QUFDLENBQUMsR0FBRyxDQUFDLGVBQWUsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUNyRCxDQUFDOztBQUhILG9EQUlDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVGFncyB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IElDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcblxuLyoqXG4gKiBUaGUgYWxsb3dlZCB2YWx1ZXMgZm9yIHBpcGVsaW5lIHR5cGVcbiAqL1xuZXhwb3J0IGVudW0gUmlvUGlwZWxpbmVUeXBlIHtcbiAgQlJBTkNIID0gJ2JyYW5jaCcsXG4gIFZVTE5FUkFCSUxJVFkgPSAndnVsbmVyYWJpbGl0eScsXG4gIERFUExPWSA9ICdkZXBsb3knLFxufVxuXG4vKipcbiAqIEhlbHBlciBmdW5jdGlvbiB0byB0YWcgdGhlIHBpcGVsaW5lIHdpdGggY29ycmVjdCBwaXBlbGluZSB0eXBlLlxuICogVGhlc2UgdGFncyBhcmUgZXZlbnR1YWxseSB1c2VkIGluIGRhdGFkb2cgcGlwZWxpbmUgbWV0cmljcyB0byBmaWx0ZXIgc3BlY2lmaWMgcGlwZWxpbmUgdHlwZXNcbiAqIEVnIC0geW91IGNhbiBkZWNpZGUgdG8gbm90IG1vbml0b3IgYnJhbmNoIHBpcGVsaW5lc1xuICovXG5leHBvcnQgY2xhc3MgQ2xhc3NpZnlQaXBlbGluZVR5cGUge1xuICBzdGF0aWMgYXBwbHkodGFyZ2V0OiBJQ29uc3RydWN0LCBwaXBlbGluZVR5cGU6IFJpb1BpcGVsaW5lVHlwZSkge1xuICAgIFRhZ3Mub2YodGFyZ2V0KS5hZGQoJ3BpcGVsaW5lX3R5cGUnLCBwaXBlbGluZVR5cGUpO1xuICB9XG59XG4iXX0=
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "main": "lib/index.js",
17
17
  "license": "Apache-2.0",
18
- "version": "4.36.0",
18
+ "version": "4.36.1",
19
19
  "types": "lib/index.d.ts",
20
20
  "stability": "stable",
21
21
  "exports": {
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "4.36.0"
2
+ "version": "4.36.1"
3
3
  }