Skip to content

Commit 13b1692

Browse files
added eum getapps
1 parent 1682ba5 commit 13b1692

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

act.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ACT_VERSION="v0.3.0"
3-
ACT_LAST_COMMIT="7cb9213978eeeb16e44cfbb714052ea1702e4b75"
3+
ACT_LAST_COMMIT="1682ba551b5d65892f300b5a737b46e1c0f691af"
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"
@@ -365,6 +365,13 @@ register metric_list List metrics available for one application.
365365
describe metric_list << EOF
366366
List all metrics available for one application (-a). Provide a metric path like "Overall Application Performance" to walk the metrics tree.
367367
EOF
368+
function eum_getapps {
369+
apiCall "/controller/restui/eumApplications/getAllEumApplicationsData?time-range=last_1_hour.BEFORE_NOW.-1.-1.60"
370+
}
371+
register eum_getapps Get EUM App Keys
372+
describe eum_getapps << EOF
373+
Get EUM Apps.
374+
EOF
368375
function _version {
369376
COMMAND_RESULT="$ACT_VERSION ~ $ACT_LAST_COMMIT"
370377
}

commands/eum/getapps.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
function eum_getapps {
4+
apiCall "/controller/restui/eumApplications/getAllEumApplicationsData?time-range=last_1_hour.BEFORE_NOW.-1.-1.60"
5+
}
6+
7+
register eum_getapps Get EUM App Keys
8+
describe eum_getapps << EOF
9+
Get EUM Apps.
10+
EOF

0 commit comments

Comments
 (0)