Skip to content

Commit 9e8b1d5

Browse files
committed
* 'master' of https://github.com/Appdynamics/api-commandline-tool: Add need-props and need-exit-calls to get snapshot
2 parents c36d1ba + 8bc5db6 commit 9e8b1d5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

act.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ACT_VERSION="v20.3.0"
3-
ACT_LAST_COMMIT="7fd3beb751de397eef346f0bbb5a6b4184124c91"
3+
ACT_LAST_COMMIT="a04325ed0dcdd7c46f7c8c3ca06e7731a75d1721"
44
USER_CONFIG="$HOME/.appdynamics/act/config.sh"
55
GLOBAL_CONFIG="/etc/appdynamics/act/config.sh"
66
CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt"
@@ -328,15 +328,15 @@ rde server_query "Query a machineagent by hostname" "provide a machine name (-m)
328328
doc snapshot << EOF
329329
List APM snapshots.
330330
EOF
331-
snapshot_list() { apiCall '/controller/rest/applications/{{a:application}}/request-snapshots?time-range-type={{t:time_range_type}}&duration-in-mins={{d:duration_in_minutes?}}&start-time={{b:start_time?}}&end-time={{f:end_time?}}' "$@" ; }
331+
snapshot_list() { apiCall '/controller/rest/applications/{{a:application}}/request-snapshots?time-range-type={{t:time_range_type}}&duration-in-mins={{d:duration_in_minutes?}}&start-time={{b:start_time?}}&end-time={{f:end_time?}}&need-props=true&need-exit-calls=true' "$@" ; }
332332
rde snapshot_list "Retrieve a list of snapshots" "Provide an application (-a) as parameter, as well as a time range (-t), the duration in minutes (-d) or start (-b) and end time (-f)" "-a 29 -t BEFORE_NOW -d 120"
333333
doc synthetic << EOF
334334
Create synthetic snapshots or jobs
335335
EOF
336336
synthetic_import() { apiCallExpand -X POST -d '{{d:synthetic_job}}' '/controller/restui/synthetic/schedule/{{a:application}}/updateSchedule' "$@" ; }
337337
rde synthetic_import "Import a synthetic job." "Provide an EUM application id (-a) as parameter and a json string or a file (with @ as prefix) as parameter (-d)" "-a 41 -d @examples/syntheticjob.json"
338338
synthetic_list() { apiCall -X POST '/controller/restui/synthetic/schedule/getJobList/{{a:application}}' "$@" ; }
339-
rde synthetic_list "List all synthetic jobs." "Provide an EUM application id (-a) as parameter." "-a 41 "
339+
rde synthetic_list "List all synthetic jobs." "Provide an EUM application id (-a) as parameter." "-a 41"
340340
synthetic_snapshot() { apiCall -X POST -d '{"url":"{{u:url}}","location":"{{l:location}}","browser":"{{b:browser}}","applicationId":{{a:application}},"timeRangeString":null,"timeoutSeconds":30,"script":null}' '/controller/restui/synthetic/launch/generateLoad' "$@" ; }
341341
rde synthetic_snapshot "Generate synthetic snapshot." "Provide an EUM application (-a), a brower (-b) and an URL (-u) as parameter." "-u http://www.appdynmics.com -l AMS -b Chrome -a 128"
342342
synthetic_update() { apiCall -X POST -d '{{d:synthetic_job}}' '/controller/restui/synthetic/schedule/{{a:application}}/updateScheduleBatch' "$@" ; }

commands.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,14 +659,14 @@ snapshot:
659659
description: Provide an application (-a) as parameter, as well as a time range (-t), the duration in minutes (-d) or start (-b) and end time (-f)
660660
example: -a 29 -t BEFORE_NOW -d 120
661661
method: GET
662-
endpoint: /controller/rest/applications/{{a:application}}/request-snapshots?time-range-type={{t:time_range_type}}&duration-in-mins={{d:duration_in_minutes?}}&start-time={{b:start_time?}}&end-time={{f:end_time?}}
662+
endpoint: /controller/rest/applications/{{a:application}}/request-snapshots?time-range-type={{t:time_range_type}}&duration-in-mins={{d:duration_in_minutes?}}&start-time={{b:start_time?}}&end-time={{f:end_time?}}&need-props=true&need-exit-calls=true
663663
synthetic:
664664
title: Synthetic
665665
description: Create synthetic snapshots or jobs
666666
list:
667667
title: List all synthetic jobs.
668668
description: Provide an EUM application id (-a) as parameter.
669-
example: -a 41
669+
example: -a 41
670670
method: POST
671671
endpoint: /controller/restui/synthetic/schedule/getJobList/{{a:application}}
672672
import:

postman-collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,12 +2689,12 @@
26892689
"raw": ""
26902690
},
26912691
"url": {
2692-
"raw": "{{controller_host}}/controller/rest/applications/{{a:application}}/request-snapshots?time-range-type={{t:time_range_type}}&duration-in-mins={{d:duration_in_minutes?}}&start-time={{b:start_time?}}&end-time={{f:end_time?}}",
2692+
"raw": "{{controller_host}}/controller/rest/applications/{{a:application}}/request-snapshots?time-range-type={{t:time_range_type}}&duration-in-mins={{d:duration_in_minutes?}}&start-time={{b:start_time?}}&end-time={{f:end_time?}}&need-props=true&need-exit-calls=true",
26932693
"host": [
26942694
"{{controller_host}}"
26952695
],
26962696
"path": ["controller","rest","applications","{{application}}","request-snapshots"],
2697-
"query": [{"key": "time-range-type","value": "{{time_range_type}}"},{"key":"duration-in-mins","value": "{{duration_in_minutes}}"},{"key":"start-time","value": "{{start_time}}"},{"key":"end-time","value": "{{end_time}}"}]
2697+
"query": [{"key": "time-range-type","value": "{{time_range_type}}"},{"key":"duration-in-mins","value": "{{duration_in_minutes}}"},{"key":"start-time","value": "{{start_time}}"},{"key":"end-time","value": "{{end_time}}"},{"key":"need-props","value": "true"},{"key":"need-exit-calls","value": "true"}]
26982698
},
26992699
"description": "Provide an application (-a) as parameter, as well as a time range (-t), the duration in minutes (-d) or start (-b) and end time (-f)"
27002700
}

0 commit comments

Comments
 (0)