Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5abc938

Browse filesBrowse files
authored
Update monitoring region tags (GoogleCloudPlatform#830)
1 parent b0417c9 commit 5abc938
Copy full SHA for 5abc938

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed

‎monitoring/api/v3/cloud-client/quickstart.py

Copy file name to clipboardExpand all lines: monitoring/api/v3/cloud-client/quickstart.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# [START monitoring_quickstart]
16-
from google.cloud import monitoring
17-
1815

1916
def run_quickstart():
17+
# [START monitoring_quickstart]
18+
from google.cloud import monitoring
19+
2020
client = monitoring.Client()
2121

2222
resource = client.resource(
@@ -32,9 +32,10 @@ def run_quickstart():
3232
labels={}
3333
)
3434

35+
# Default arguments use endtime datetime.utcnow()
3536
client.write_point(metric, resource, 3.14)
3637
print('Successfully wrote time series.')
37-
# [END monitoring_quickstart]
38+
# [END monitoring_quickstart]
3839

3940

4041
if __name__ == '__main__':

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.