File: SoftLayer_Metric_Tracking_Object.py

package info (click to toggle)
python-softlayer 6.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,100 kB
  • sloc: python: 53,771; makefile: 289; sh: 57
file content (57 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
getSummaryData = [
    {
        "counter": 1.44,
        "dateTime": "2019-03-04T00:00:00-06:00",
        "type": "cpu0"
    },
    {
        "counter": 1.53,
        "dateTime": "2019-03-04T00:05:00-06:00",
        "type": "cpu0"
    },
]


# Using counter > 32bit int causes unit tests to fail.
getBandwidthData = [
    {
        'counter': 37.21,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'cpu0'
    },
    {
        'counter': 76.12,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'cpu1'
    },
    {
        'counter': 257623973,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'memory'
    },
    {
        'counter': 137118503,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'memory_usage'
    },
    {
        'counter': 125888818,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'privateIn_net_octet'
    },
    {
        'counter': 961037,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'privateOut_net_octet'
    },
    {
        'counter': 1449885176,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'publicIn_net_octet'
    },
    {
        'counter': 91803794,
        'dateTime': '2019-05-20T23:00:00-06:00',
        'type': 'publicOut_net_octet'
    }
]