2.0.48 • Published 4 years ago
typescript-aws-cloudwatch-helper v2.0.48
Install
npm install typescript-aws-cloudwatch-helper@latestUsage
Default - running in Lambda in your own account
const logger = new Logger(LogLevel.Trace);
const helper = new CloudWatchHelper(logger);
const response = await helper.PutMetricDataAsync(
'namespace',
[] as AWS.CloudWatch.MetricDatum[],
);Running in separate account or not in Lambda
import * as CloudWatch from '@aws-sdk/client-cloudwatch';
const logger = new Logger(LogLevel.Trace);
const options: CloudWatch.CloudWatchClientConfig = {
accessKeyId: '{access_key}',
secretAccessKey: '{secret_key}',
region: 'us-east-1',
};
const repository = new CloudWatch.CloudWatch(options);
const helper = new CloudWatchHelper(logger, repository);
const response = await helper.PutMetricDataAsync(
'namespace',
[] as CloudWatch.MetricDatum[],
);Notes
If no options are supplied, will default to us-east-1 as the region
Development
Clone the latest and run
npm run prepto install packages and prep the git hooks
2.0.48
4 years ago
2.0.47
4 years ago
2.0.46
4 years ago
2.0.45
5 years ago
2.0.44
5 years ago
2.0.42
5 years ago
2.0.43
5 years ago
2.0.40
5 years ago
2.0.41
5 years ago
2.0.31
5 years ago
2.0.39
5 years ago
1.0.189
5 years ago
2.0.15
5 years ago
2.0.14
5 years ago
2.0.2
5 years ago
1.0.167
5 years ago
1.0.154
5 years ago
1.0.127
6 years ago
1.0.106
6 years ago
1.0.93
6 years ago
1.0.78
6 years ago
1.0.62
6 years ago
1.0.41
6 years ago
1.0.39
6 years ago
1.0.28
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.8
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.20
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago