@@ -60,7 +60,7 @@ The following Agent configuration APIs are available:
6060======
6161
6262`settings`::
63- (required) Key/value object with settings and their corresponding value.
63+ (required) Key/value object with option name and option value.
6464
6565`agent_name`::
6666(optional) The agent name is used by the UI to determine which settings to display.
@@ -73,14 +73,14 @@ The following Agent configuration APIs are available:
7373--------------------------------------------------
7474PUT /api/apm/settings/agent-configuration
7575{
76- "service" : {
77- "name" : "frontend",
78- "environment" : "production"
76+ "service": {
77+ "name": "frontend",
78+ "environment": "production"
7979 },
80- "settings" : {
81- "transaction_sample_rate" : 0.4,
82- "capture_body" : "off",
83- "transaction_max_spans" : 500
80+ "settings": {
81+ "transaction_sample_rate": " 0.4" ,
82+ "capture_body": "off",
83+ "transaction_max_spans": " 500"
8484 },
8585 "agent_name": "nodejs"
8686}
@@ -124,7 +124,7 @@ PUT /api/apm/settings/agent-configuration
124124DELETE /api/apm/settings/agent-configuration
125125{
126126 "service" : {
127- "name" : "frontend",
127+ "name": "frontend",
128128 "environment": "production"
129129 }
130130}
@@ -157,9 +157,9 @@ DELETE /api/apm/settings/agent-configuration
157157 "environment": "production"
158158 },
159159 "settings": {
160- "transaction_sample_rate": 1 ,
160+ "transaction_sample_rate": "1" ,
161161 "capture_body": "off",
162- "transaction_max_spans": 200
162+ "transaction_max_spans": " 200"
163163 },
164164 "@timestamp": 1581934104843,
165165 "applied_by_agent": false,
@@ -171,9 +171,9 @@ DELETE /api/apm/settings/agent-configuration
171171 "name": "opbeans-go"
172172 },
173173 "settings": {
174- "transaction_sample_rate": 1 ,
174+ "transaction_sample_rate": "1" ,
175175 "capture_body": "off",
176- "transaction_max_spans": 300
176+ "transaction_max_spans": " 300"
177177 },
178178 "@timestamp": 1581934111727,
179179 "applied_by_agent": false,
@@ -185,7 +185,7 @@ DELETE /api/apm/settings/agent-configuration
185185 "name": "frontend"
186186 },
187187 "settings": {
188- "transaction_sample_rate": 1 ,
188+ "transaction_sample_rate": "1" ,
189189 },
190190 "@timestamp": 1582031336265,
191191 "applied_by_agent": false,
@@ -250,7 +250,7 @@ GET /api/apm/settings/agent-configuration
250250 "name": "frontend"
251251 },
252252 "settings": {
253- "transaction_sample_rate": 1 ,
253+ "transaction_sample_rate": "1" ,
254254 },
255255 "@timestamp": 1582031336265,
256256 "applied_by_agent": false,
@@ -266,9 +266,9 @@ GET /api/apm/settings/agent-configuration
266266--------------------------------------------------
267267POST /api/apm/settings/agent-configuration/search
268268{
269- "etag" : "1e58c178efeebae15c25c539da740d21dee422fc",
269+ "etag": "1e58c178efeebae15c25c539da740d21dee422fc",
270270 "service" : {
271- "name" : "frontend",
271+ "name": "frontend",
272272 "environment": "production"
273273 }
274274}
0 commit comments