File tree Expand file tree Collapse file tree 7 files changed +439
-1
lines changed
opentelemetry-exporter-gcp-monitoring/tests
__snapshots__/test_cloud_monitoring Expand file tree Collapse file tree 7 files changed +439
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "/google.monitoring.v3.MetricService/CreateMetricDescriptor" : [
3
+ {
4
+ "metricDescriptor" : {
5
+ "description" : " foo" ,
6
+ "displayName" : " myobservablecounter" ,
7
+ "labels" : [
8
+ {
9
+ "key" : " string"
10
+ },
11
+ {
12
+ "key" : " int"
13
+ },
14
+ {
15
+ "key" : " float"
16
+ }
17
+ ],
18
+ "metricKind" : " CUMULATIVE" ,
19
+ "type" : " workload.googleapis.com/myobservablecounter" ,
20
+ "valueType" : " DOUBLE"
21
+ },
22
+ "name" : " projects/fakeproject"
23
+ }
24
+ ],
25
+ "/google.monitoring.v3.MetricService/CreateTimeSeries" : [
26
+ {
27
+ "name" : " projects/fakeproject" ,
28
+ "timeSeries" : [
29
+ {
30
+ "metric" : {
31
+ "labels" : {
32
+ "float" : " 123.4" ,
33
+ "int" : " 123" ,
34
+ "string" : " string"
35
+ },
36
+ "type" : " workload.googleapis.com/myobservablecounter"
37
+ },
38
+ "metricKind" : " CUMULATIVE" ,
39
+ "points" : [
40
+ {
41
+ "interval" : {
42
+ "endTime" : " str" ,
43
+ "startTime" : " str"
44
+ },
45
+ "value" : {
46
+ "doubleValue" : 45.6
47
+ }
48
+ }
49
+ ],
50
+ "resource" : {
51
+ "labels" : {
52
+ "location" : " global" ,
53
+ "namespace" : " " ,
54
+ "node_id" : " "
55
+ },
56
+ "type" : " generic_node"
57
+ }
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "/google.monitoring.v3.MetricService/CreateMetricDescriptor" : [
3
+ {
4
+ "metricDescriptor" : {
5
+ "description" : " foo" ,
6
+ "displayName" : " myobservablecounter" ,
7
+ "labels" : [
8
+ {
9
+ "key" : " string"
10
+ },
11
+ {
12
+ "key" : " int"
13
+ },
14
+ {
15
+ "key" : " float"
16
+ }
17
+ ],
18
+ "metricKind" : " CUMULATIVE" ,
19
+ "type" : " workload.googleapis.com/myobservablecounter" ,
20
+ "valueType" : " INT64"
21
+ },
22
+ "name" : " projects/fakeproject"
23
+ }
24
+ ],
25
+ "/google.monitoring.v3.MetricService/CreateTimeSeries" : [
26
+ {
27
+ "name" : " projects/fakeproject" ,
28
+ "timeSeries" : [
29
+ {
30
+ "metric" : {
31
+ "labels" : {
32
+ "float" : " 123.4" ,
33
+ "int" : " 123" ,
34
+ "string" : " string"
35
+ },
36
+ "type" : " workload.googleapis.com/myobservablecounter"
37
+ },
38
+ "metricKind" : " CUMULATIVE" ,
39
+ "points" : [
40
+ {
41
+ "interval" : {
42
+ "endTime" : " str" ,
43
+ "startTime" : " str"
44
+ },
45
+ "value" : {
46
+ "int64Value" : " 123"
47
+ }
48
+ }
49
+ ],
50
+ "resource" : {
51
+ "labels" : {
52
+ "location" : " global" ,
53
+ "namespace" : " " ,
54
+ "node_id" : " "
55
+ },
56
+ "type" : " generic_node"
57
+ }
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "/google.monitoring.v3.MetricService/CreateMetricDescriptor" : [
3
+ {
4
+ "metricDescriptor" : {
5
+ "description" : " foo" ,
6
+ "displayName" : " myobservablegauge" ,
7
+ "labels" : [
8
+ {
9
+ "key" : " string"
10
+ },
11
+ {
12
+ "key" : " int"
13
+ },
14
+ {
15
+ "key" : " float"
16
+ }
17
+ ],
18
+ "metricKind" : " GAUGE" ,
19
+ "type" : " workload.googleapis.com/myobservablegauge" ,
20
+ "valueType" : " DOUBLE"
21
+ },
22
+ "name" : " projects/fakeproject"
23
+ }
24
+ ],
25
+ "/google.monitoring.v3.MetricService/CreateTimeSeries" : [
26
+ {
27
+ "name" : " projects/fakeproject" ,
28
+ "timeSeries" : [
29
+ {
30
+ "metric" : {
31
+ "labels" : {
32
+ "float" : " 123.4" ,
33
+ "int" : " 123" ,
34
+ "string" : " string"
35
+ },
36
+ "type" : " workload.googleapis.com/myobservablegauge"
37
+ },
38
+ "metricKind" : " GAUGE" ,
39
+ "points" : [
40
+ {
41
+ "interval" : {
42
+ "endTime" : " str"
43
+ },
44
+ "value" : {
45
+ "doubleValue" : 45.6
46
+ }
47
+ }
48
+ ],
49
+ "resource" : {
50
+ "labels" : {
51
+ "location" : " global" ,
52
+ "namespace" : " " ,
53
+ "node_id" : " "
54
+ },
55
+ "type" : " generic_node"
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "/google.monitoring.v3.MetricService/CreateMetricDescriptor" : [
3
+ {
4
+ "metricDescriptor" : {
5
+ "description" : " foo" ,
6
+ "displayName" : " myobservablegauge" ,
7
+ "labels" : [
8
+ {
9
+ "key" : " string"
10
+ },
11
+ {
12
+ "key" : " int"
13
+ },
14
+ {
15
+ "key" : " float"
16
+ }
17
+ ],
18
+ "metricKind" : " GAUGE" ,
19
+ "type" : " workload.googleapis.com/myobservablegauge" ,
20
+ "valueType" : " INT64"
21
+ },
22
+ "name" : " projects/fakeproject"
23
+ }
24
+ ],
25
+ "/google.monitoring.v3.MetricService/CreateTimeSeries" : [
26
+ {
27
+ "name" : " projects/fakeproject" ,
28
+ "timeSeries" : [
29
+ {
30
+ "metric" : {
31
+ "labels" : {
32
+ "float" : " 123.4" ,
33
+ "int" : " 123" ,
34
+ "string" : " string"
35
+ },
36
+ "type" : " workload.googleapis.com/myobservablegauge"
37
+ },
38
+ "metricKind" : " GAUGE" ,
39
+ "points" : [
40
+ {
41
+ "interval" : {
42
+ "endTime" : " str"
43
+ },
44
+ "value" : {
45
+ "int64Value" : " 123"
46
+ }
47
+ }
48
+ ],
49
+ "resource" : {
50
+ "labels" : {
51
+ "location" : " global" ,
52
+ "namespace" : " " ,
53
+ "node_id" : " "
54
+ },
55
+ "type" : " generic_node"
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "/google.monitoring.v3.MetricService/CreateMetricDescriptor" : [
3
+ {
4
+ "metricDescriptor" : {
5
+ "description" : " foo" ,
6
+ "displayName" : " myobservableupdowncounter" ,
7
+ "labels" : [
8
+ {
9
+ "key" : " string"
10
+ },
11
+ {
12
+ "key" : " int"
13
+ },
14
+ {
15
+ "key" : " float"
16
+ }
17
+ ],
18
+ "metricKind" : " GAUGE" ,
19
+ "type" : " workload.googleapis.com/myobservableupdowncounter" ,
20
+ "valueType" : " DOUBLE"
21
+ },
22
+ "name" : " projects/fakeproject"
23
+ }
24
+ ],
25
+ "/google.monitoring.v3.MetricService/CreateTimeSeries" : [
26
+ {
27
+ "name" : " projects/fakeproject" ,
28
+ "timeSeries" : [
29
+ {
30
+ "metric" : {
31
+ "labels" : {
32
+ "float" : " 123.4" ,
33
+ "int" : " 123" ,
34
+ "string" : " string"
35
+ },
36
+ "type" : " workload.googleapis.com/myobservableupdowncounter"
37
+ },
38
+ "metricKind" : " GAUGE" ,
39
+ "points" : [
40
+ {
41
+ "interval" : {
42
+ "endTime" : " str"
43
+ },
44
+ "value" : {
45
+ "doubleValue" : 45.6
46
+ }
47
+ }
48
+ ],
49
+ "resource" : {
50
+ "labels" : {
51
+ "location" : " global" ,
52
+ "namespace" : " " ,
53
+ "node_id" : " "
54
+ },
55
+ "type" : " generic_node"
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "/google.monitoring.v3.MetricService/CreateMetricDescriptor" : [
3
+ {
4
+ "metricDescriptor" : {
5
+ "description" : " foo" ,
6
+ "displayName" : " myobservableupdowncounter" ,
7
+ "labels" : [
8
+ {
9
+ "key" : " string"
10
+ },
11
+ {
12
+ "key" : " int"
13
+ },
14
+ {
15
+ "key" : " float"
16
+ }
17
+ ],
18
+ "metricKind" : " GAUGE" ,
19
+ "type" : " workload.googleapis.com/myobservableupdowncounter" ,
20
+ "valueType" : " INT64"
21
+ },
22
+ "name" : " projects/fakeproject"
23
+ }
24
+ ],
25
+ "/google.monitoring.v3.MetricService/CreateTimeSeries" : [
26
+ {
27
+ "name" : " projects/fakeproject" ,
28
+ "timeSeries" : [
29
+ {
30
+ "metric" : {
31
+ "labels" : {
32
+ "float" : " 123.4" ,
33
+ "int" : " 123" ,
34
+ "string" : " string"
35
+ },
36
+ "type" : " workload.googleapis.com/myobservableupdowncounter"
37
+ },
38
+ "metricKind" : " GAUGE" ,
39
+ "points" : [
40
+ {
41
+ "interval" : {
42
+ "endTime" : " str"
43
+ },
44
+ "value" : {
45
+ "int64Value" : " 123"
46
+ }
47
+ }
48
+ ],
49
+ "resource" : {
50
+ "labels" : {
51
+ "location" : " global" ,
52
+ "namespace" : " " ,
53
+ "node_id" : " "
54
+ },
55
+ "type" : " generic_node"
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ }
You can’t perform that action at this time.
0 commit comments