We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a779607 commit d18d6efCopy full SHA for d18d6ef
1 file changed
app/monitor/examples/eg001_get_monitoring_data/controller.py
@@ -20,14 +20,17 @@ def worker(args):
20
2. Get your monitor data via SDK
21
"""
22
23
- # Step 1. Create an API client with headers
+ # Step 2 start
24
+
25
+ # Create an API client with headers
26
api_client = create_monitor_api_client(
27
access_token=args["access_token"]
28
)
29
- # Step 1 end
30
+ # Step 2 end
31
32
+ #Step 3 start
33
- # Step 2. Get your monitor data
34
dataset_api = DataSetApi(api_client=api_client)
35
36
cursor = ""
@@ -48,6 +51,6 @@ def worker(args):
48
51
result.extend(response["data"])
49
52
cursor = response["endCursor"]
50
53
- # Step 2 end
54
+ # Step 3 end
55
56
return result
0 commit comments