We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eed391 commit 8080154Copy full SHA for 8080154
app/monitor/examples/eg001_get_monitoring_data.py
@@ -19,21 +19,20 @@ def worker(args):
19
2. Get your monitor data via SDK
20
"""
21
22
- # Step 2 start
+
23
24
# Create an API client with headers
25
+ #ds-snippet-start:Monitor1Step2
26
api_client = create_monitor_api_client(
27
access_token=args["access_token"]
28
)
29
+ #ds-snippet-end:Monitor1Step2
30
- # Step 2 end
-
31
- #Step 3 start
32
+ #ds-snippet-start:Monitor1Step3
33
dataset_api = DataSetApi(api_client=api_client)
34
result = dataset_api.get_stream(
35
data_set_name="monitor",
36
version="2.0")._data
37
- # Step 3 end
+ #ds-snippet-end:Monitor1Step3
38
39
return result
0 commit comments