Skip to content

Commit

Permalink
added eum getapps
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelenglert committed Apr 18, 2018
1 parent 1682ba5 commit 13b1692
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
9 changes: 8 additions & 1 deletion act.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
ACT_VERSION="v0.3.0"
ACT_LAST_COMMIT="7cb9213978eeeb16e44cfbb714052ea1702e4b75"
ACT_LAST_COMMIT="1682ba551b5d65892f300b5a737b46e1c0f691af"
USER_CONFIG="$HOME/.appdynamics/act/config.sh"
GLOBAL_CONFIG="/etc/appdynamics/act/config.sh"
CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt"
Expand Down Expand Up @@ -365,6 +365,13 @@ register metric_list List metrics available for one application.
describe metric_list << EOF
List all metrics available for one application (-a). Provide a metric path like "Overall Application Performance" to walk the metrics tree.
EOF
function eum_getapps {
apiCall "/controller/restui/eumApplications/getAllEumApplicationsData?time-range=last_1_hour.BEFORE_NOW.-1.-1.60"
}
register eum_getapps Get EUM App Keys
describe eum_getapps << EOF
Get EUM Apps.
EOF
function _version {
COMMAND_RESULT="$ACT_VERSION ~ $ACT_LAST_COMMIT"
}
Expand Down
10 changes: 10 additions & 0 deletions commands/eum/getapps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

function eum_getapps {
apiCall "/controller/restui/eumApplications/getAllEumApplicationsData?time-range=last_1_hour.BEFORE_NOW.-1.-1.60"
}

register eum_getapps Get EUM App Keys
describe eum_getapps << EOF
Get EUM Apps.
EOF

0 comments on commit 13b1692

Please sign in to comment.