UNPKG

5.35 kBJavaScriptView Raw
1"use strict";
2// Copyright 2012-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3Object.defineProperty(exports, "__esModule", { value: true });
4exports.EventsMetrics = void 0;
5/* eslint-disable max-len */ // This is generated code - line lengths are difficult to control
6class EventsMetrics {
7 static invocationsSum(dimensions) {
8 return {
9 namespace: 'AWS/Events',
10 metricName: 'Invocations',
11 dimensionsMap: dimensions,
12 statistic: 'Sum',
13 };
14 }
15 static failedInvocationsSum(dimensions) {
16 return {
17 namespace: 'AWS/Events',
18 metricName: 'FailedInvocations',
19 dimensionsMap: dimensions,
20 statistic: 'Sum',
21 };
22 }
23 static deadLetterInvocationsSum(dimensions) {
24 return {
25 namespace: 'AWS/Events',
26 metricName: 'DeadLetterInvocations',
27 dimensionsMap: dimensions,
28 statistic: 'Sum',
29 };
30 }
31 static triggeredRulesSum(dimensions) {
32 return {
33 namespace: 'AWS/Events',
34 metricName: 'TriggeredRules',
35 dimensionsMap: dimensions,
36 statistic: 'Sum',
37 };
38 }
39 static matchedEventsSum(dimensions) {
40 return {
41 namespace: 'AWS/Events',
42 metricName: 'MatchedEvents',
43 dimensionsMap: dimensions,
44 statistic: 'Sum',
45 };
46 }
47 static throttledRulesSum(dimensions) {
48 return {
49 namespace: 'AWS/Events',
50 metricName: 'ThrottledRules',
51 dimensionsMap: dimensions,
52 statistic: 'Sum',
53 };
54 }
55}
56exports.EventsMetrics = EventsMetrics;
57//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLWNhbm5lZC1tZXRyaWNzLmdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImV2ZW50cy1jYW5uZWQtbWV0cmljcy5nZW5lcmF0ZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtFQUErRTs7O0FBRS9FLDRCQUE0QixDQUFDLGlFQUFpRTtBQUU5RixNQUFhLG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