@aws-cdk/aws-cloudwatch
Advanced tools
Comparing version 0.39.0 to 1.0.0
{ | ||
"name": "@aws-cdk/aws-cloudwatch", | ||
"version": "0.39.0", | ||
"version": "1.0.0", | ||
"description": "CDK Constructs for AWS CloudWatch", | ||
@@ -68,16 +68,16 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.39.0", | ||
"cdk-build-tools": "^0.39.0", | ||
"cdk-integ-tools": "^0.39.0", | ||
"cfn2ts": "^0.39.0", | ||
"pkglint": "^0.39.0" | ||
"@aws-cdk/assert": "^1.0.0", | ||
"cdk-build-tools": "^1.0.0", | ||
"cdk-integ-tools": "^1.0.0", | ||
"cfn2ts": "^1.0.0", | ||
"pkglint": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-iam": "^0.39.0", | ||
"@aws-cdk/core": "^0.39.0" | ||
"@aws-cdk/aws-iam": "^1.0.0", | ||
"@aws-cdk/core": "^1.0.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-iam": "^0.39.0", | ||
"@aws-cdk/core": "^0.39.0" | ||
"@aws-cdk/aws-iam": "^1.0.0", | ||
"@aws-cdk/core": "^1.0.0" | ||
}, | ||
@@ -94,2 +94,2 @@ "awslint": { | ||
"stability": "stable" | ||
} | ||
} |
@@ -8,4 +8,2 @@ ## Amazon CloudWatch Construct Library | ||
> **This is a _developer preview_ (public beta) module. Releases might lack important features and might have | ||
> future breaking changes.** | ||
@@ -47,3 +45,3 @@ --- | ||
statistic: 'avg', | ||
periodSec: 60, | ||
period: Duration.minutes(1), | ||
label: 'Lambda failure rate' | ||
@@ -88,6 +86,6 @@ }); | ||
Alternatively, you can call `metric.newAlarm()`: | ||
Alternatively, you can call `metric.createAlarm()`: | ||
```ts | ||
fn.metricErrors().newAlarm(this, 'Alarm', { | ||
fn.metricErrors().createAlarm(this, 'Alarm', { | ||
threshold: 100, | ||
@@ -126,3 +124,3 @@ evaluationPeriods: 2, | ||
```ts | ||
dashboard.add(new GraphWidget({ | ||
dashboard.addWidgets(new GraphWidget({ | ||
title: "Executions vs error rate", | ||
@@ -145,3 +143,3 @@ | ||
```ts | ||
dashboard.add(new AlarmWidget({ | ||
dashboard.addWidgets(new AlarmWidget({ | ||
title: "Errors", | ||
@@ -158,3 +156,3 @@ alarm: errorAlarm, | ||
```ts | ||
dashboard.add(new SingleValueWidget({ | ||
dashboard.addWidgets(new SingleValueWidget({ | ||
metrics: [visitorCount, purchaseCount], | ||
@@ -170,3 +168,3 @@ })); | ||
```ts | ||
dashboard.add(new TextWidget({ | ||
dashboard.addWidgets(new TextWidget({ | ||
markdown: '# Key Performance Indicators' | ||
@@ -173,0 +171,0 @@ })); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
496114
186
+ Added@aws-cdk/aws-iam@1.204.0(transitive)
+ Added@aws-cdk/cloud-assembly-schema@1.204.0(transitive)
+ Added@aws-cdk/core@1.204.0(transitive)
+ Added@aws-cdk/cx-api@1.204.0(transitive)
+ Added@aws-cdk/region-info@1.204.0(transitive)
+ Addedconstructs@3.4.344(transitive)
- Removed@aws-cdk/aws-iam@0.39.0(transitive)
- Removed@aws-cdk/core@0.39.0(transitive)
- Removed@aws-cdk/cx-api@0.39.0(transitive)
- Removed@aws-cdk/region-info@0.39.0(transitive)
Updated@aws-cdk/aws-iam@^1.0.0
Updated@aws-cdk/core@^1.0.0