File tree Expand file tree Collapse file tree 2 files changed +29
-28
lines changed Expand file tree Collapse file tree 2 files changed +29
-28
lines changed Original file line number Diff line number Diff line change 14
14
DEFAULT_NAMESPACE = "aws-embedded-metrics"
15
15
MAX_DIMENSIONS = 9
16
16
MAX_METRICS_PER_EVENT = 100
17
-
18
- # Units
19
- SECONDS = "Seconds"
20
- MICROSECONDS = "Microseconds"
21
- MILLISECONDS = "Milliseconds"
22
- BYTES = "Bytes"
23
- KILOBYTES = "Kilobytes"
24
- MEGABYTES = "Megabytes"
25
- GIGABYTES = "Gigabytes"
26
- TERABYTES = "Terabytes"
27
- BITS = "Bits"
28
- KILOBITS = "Kilobits"
29
- MEGABITS = "Megabits"
30
- GIGABITS = "Gigabits"
31
- TERABITS = "Terabits"
32
- PERCENT = "Percent"
33
- COUNT = "Count"
34
- BYTES_PER_SECOND = "Bytes/Second"
35
- KILOBYTES_PER_SECOND = "Kilobytes/Second"
36
- MEGABYTES_PER_SECOND = "Megabytes/Second"
37
- GIGABYTES_PER_SECOND = "Gigabytes/Second"
38
- TERABYTES_PER_SECOND = "Terabytes/Second"
39
- BITS_PER_SECOND = "Bits/Second"
40
- KILOBITS_PER_SECOND = "Kilobits/Second"
41
- MEGABITS_PER_SECOND = "Megabits/Second"
42
- GIGABITS_PER_SECOND = "Gigabits/Second"
43
- TERABITS_PER_SECOND = "Terabits/Second"
44
- COUNT_PER_SECOND = "Count/Second"
Original file line number Diff line number Diff line change
1
+ from enum import Enum
2
+
3
+ class Unit (Enum ):
4
+ SECONDS = "Seconds"
5
+ MICROSECONDS = "Microseconds"
6
+ MILLISECONDS = "Milliseconds"
7
+ BYTES = "Bytes"
8
+ KILOBYTES = "Kilobytes"
9
+ MEGABYTES = "Megabytes"
10
+ GIGABYTES = "Gigabytes"
11
+ TERABYTES = "Terabytes"
12
+ BITS = "Bits"
13
+ KILOBITS = "Kilobits"
14
+ MEGABITS = "Megabits"
15
+ GIGABITS = "Gigabits"
16
+ TERABITS = "Terabits"
17
+ PERCENT = "Percent"
18
+ COUNT = "Count"
19
+ BYTES_PER_SECOND = "Bytes/Second"
20
+ KILOBYTES_PER_SECOND = "Kilobytes/Second"
21
+ MEGABYTES_PER_SECOND = "Megabytes/Second"
22
+ GIGABYTES_PER_SECOND = "Gigabytes/Second"
23
+ TERABYTES_PER_SECOND = "Terabytes/Second"
24
+ BITS_PER_SECOND = "Bits/Second"
25
+ KILOBITS_PER_SECOND = "Kilobits/Second"
26
+ MEGABITS_PER_SECOND = "Megabits/Second"
27
+ GIGABITS_PER_SECOND = "Gigabits/Second"
28
+ TERABITS_PER_SECOND = "Terabits/Second"
29
+ COUNT_PER_SECOND = "Count/Second"
You can’t perform that action at this time.
0 commit comments