1 | ;
|
2 | // Copyright 2012-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3 | Object.defineProperty(exports, "__esModule", { value: true });
|
4 | exports.Route53Metrics = void 0;
|
5 | /* eslint-disable max-len */ // This is generated code - line lengths are difficult to control
|
6 | class Route53Metrics {
|
7 | static healthCheckPercentageHealthyAverage(dimensions) {
|
8 | return {
|
9 | namespace: 'AWS/Route53',
|
10 | metricName: 'HealthCheckPercentageHealthy',
|
11 | dimensionsMap: dimensions,
|
12 | statistic: 'Average',
|
13 | };
|
14 | }
|
15 | static connectionTimeAverage(dimensions) {
|
16 | return {
|
17 | namespace: 'AWS/Route53',
|
18 | metricName: 'ConnectionTime',
|
19 | dimensionsMap: dimensions,
|
20 | statistic: 'Average',
|
21 | };
|
22 | }
|
23 | static healthCheckStatusMinimum(dimensions) {
|
24 | return {
|
25 | namespace: 'AWS/Route53',
|
26 | metricName: 'HealthCheckStatus',
|
27 | dimensionsMap: dimensions,
|
28 | statistic: 'Minimum',
|
29 | };
|
30 | }
|
31 | static sslHandshakeTimeAverage(dimensions) {
|
32 | return {
|
33 | namespace: 'AWS/Route53',
|
34 | metricName: 'SSLHandshakeTime',
|
35 | dimensionsMap: dimensions,
|
36 | statistic: 'Average',
|
37 | };
|
38 | }
|
39 | static childHealthCheckHealthyCountAverage(dimensions) {
|
40 | return {
|
41 | namespace: 'AWS/Route53',
|
42 | metricName: 'ChildHealthCheckHealthyCount',
|
43 | dimensionsMap: dimensions,
|
44 | statistic: 'Average',
|
45 | };
|
46 | }
|
47 | static timeToFirstByteAverage(dimensions) {
|
48 | return {
|
49 | namespace: 'AWS/Route53',
|
50 | metricName: 'TimeToFirstByte',
|
51 | dimensionsMap: dimensions,
|
52 | statistic: 'Average',
|
53 | };
|
54 | }
|
55 | }
|
56 | exports.Route53Metrics = Route53Metrics;
|
57 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGU1My1jYW5uZWQtbWV0cmljc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