File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
monitoring/api/v3/cloud-client Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ def run_quickstart():
2929
3030 metric = client .metric (
3131 type_ = 'custom.googleapis.com/my_metric' ,
32- labels = {
33- 'status' : 'successful' ,
34- }
32+ labels = {}
3533 )
3634
3735 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():
5454 metric = client .metric (
5555 type_ = 'custom.googleapis.com/my_metric' ,
5656 labels = {
57- 'status' : 'successful' ,
5857 }
5958 )
6059 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):
1919 snippets .create_metric_descriptor ()
2020 snippets .get_metric_descriptor ('custom.googleapis.com/my_metric' )
2121 out , _ = capsys .readouterr ()
22- assert 'a simple example' in out
22+ assert "value_type='DOUBLE'" in out
2323 snippets .delete_metric_descriptor ('custom.googleapis.com/my_metric' )
2424 out , _ = capsys .readouterr ()
2525 assert 'Deleted metric' in out
You can’t perform that action at this time.
0 commit comments