File tree 3 files changed +2
-5
lines changed
monitoring/api/v3/cloud-client
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ def run_quickstart():
29
29
30
30
metric = client .metric (
31
31
type_ = 'custom.googleapis.com/my_metric' ,
32
- labels = {
33
- 'status' : 'successful' ,
34
- }
32
+ labels = {}
35
33
)
36
34
37
35
client .write_point (metric , resource , 3.14 )
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ def write_time_series():
54
54
metric = client .metric (
55
55
type_ = 'custom.googleapis.com/my_metric' ,
56
56
labels = {
57
- 'status' : 'successful' ,
58
57
}
59
58
)
60
59
client .write_point (metric , resource , 3.14 )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def test_create_get_delete_metric_descriptor(capsys):
19
19
snippets .create_metric_descriptor ()
20
20
snippets .get_metric_descriptor ('custom.googleapis.com/my_metric' )
21
21
out , _ = capsys .readouterr ()
22
- assert 'a simple example' in out
22
+ assert "value_type='DOUBLE'" in out
23
23
snippets .delete_metric_descriptor ('custom.googleapis.com/my_metric' )
24
24
out , _ = capsys .readouterr ()
25
25
assert 'Deleted metric' in out
You can’t perform that action at this time.
0 commit comments