Skip to content

Commit 7b2bc6c

Browse files
committed
Add get for mobile crashes
1 parent 3bd5817 commit 7b2bc6c

File tree

4 files changed

+54
-1
lines changed

4 files changed

+54
-1
lines changed

USAGE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,15 @@ Configure and retrieve health rules and their violates.
340340
| list | List all metrics available for one application (-a). Provide a metric path like "Overall Application Performance" to walk the metrics tree. | |
341341

342342

343+
## mobileCrash
344+
345+
API to list and retrieve mobile crashes
346+
347+
| Command | Description | Example |
348+
| ------- | ----------- | ------- |
349+
| get | Get crash details Provide an application ID (-a) and crash ID (-c) as parameters | `act.sh mobileCrash get -a 41 -c d65fff8f-6ff0-4765-8ff4-2ffcbd0441bd` |
350+
351+
343352
## node
344353

345354
Retrieve nodes within a business application

act.sh

Lines changed: 6 additions & 1 deletion
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="a04325ed0dcdd7c46f7c8c3ca06e7731a75d1721"
3+
ACT_LAST_COMMIT="3bd5817c8aa788838c686c37ffe1fea56c39e90b"
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"
@@ -269,6 +269,11 @@ logsources_import() { apiCall -X POST -d 'payload: {{d:logsourcerule}}' '/contro
269269
rde logsources_import "Import a source rule." "Provide a json string or a file (with @ as prefix) as parameter (-d)" "-d @examples/logsources.json"
270270
logsources_list() { apiCall '/controller/restui/analytics/logsources' "$@" ; }
271271
rde logsources_list "List all sources." "This command requires no further arguments." ""
272+
doc mobileCrash << EOF
273+
API to list and retrieve mobile crashes
274+
EOF
275+
mobileCrash_get() { apiCall '/controller/restui/crashDetails/download/{{a:application}}/{{c:crash}}' "$@" ; }
276+
rde mobileCrash_get "Get crash details" "Provide an application ID (-a) and crash ID (-c) as parameters" "-a 41 -c d65fff8f-6ff0-4765-8ff4-2ffcbd0441bd"
272277
doc node << EOF
273278
Retrieve nodes within a business application
274279
EOF

commands.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,15 @@ logsources:
514514
method: POST
515515
endpoint: /controller/restui/analytics/logsources
516516
payload: payload: {{d:logsourcerule}}
517+
mobileCrash:
518+
title: Mobile Crashes
519+
description: API to list and retrieve mobile crashes
520+
get:
521+
title: Get crash details
522+
description: Provide an application ID (-a) and crash ID (-c) as parameters
523+
example: -a 41 -c d65fff8f-6ff0-4765-8ff4-2ffcbd0441bd
524+
method: GET
525+
endpoint: /controller/restui/crashDetails/download/{{a:application}}/{{c:crash}}
517526
node:
518527
title: Nodes
519528
description: Retrieve nodes within a business application

postman-collection.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2098,6 +2098,36 @@
20982098
},
20992099
"description": "This command requires no further arguments."
21002100
}
2101+
}]},{"name": "mobileCrash","item": [{
2102+
"name": "Get crash details",
2103+
"request": {
2104+
"method": "GET",
2105+
"header": [
2106+
{
2107+
"key": "Content-Type",
2108+
"value": "application/json;charset=UTF-8",
2109+
"type": "text"
2110+
},
2111+
{
2112+
"key": "X-CSRF-TOKEN",
2113+
"value": "{{X-CSRF-TOKEN}}",
2114+
"type": "text"
2115+
}
2116+
],
2117+
"body": {
2118+
"mode": "raw",
2119+
"raw": ""
2120+
},
2121+
"url": {
2122+
"raw": "{{controller_host}}/controller/restui/crashDetails/download/{{a:application}}/{{c:crash}}",
2123+
"host": [
2124+
"{{controller_host}}"
2125+
],
2126+
"path": ["controller","restui","crashDetails","download","{{application}}","{{crash}}"],
2127+
"query": []
2128+
},
2129+
"description": "Provide an application ID (-a) and crash ID (-c) as parameters"
2130+
}
21012131
}]},{"name": "node","item": [{
21022132
"name": "Get a node.",
21032133
"request": {

0 commit comments

Comments
 (0)