Skip to content

Commit 9ba7f5d

Browse files
committed
Fixed metric import
1 parent b594c3e commit 9ba7f5d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

adc.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,15 @@ register application_list List all applications available on the controller
423423
describe application_list << EOF
424424
List all applications available on the controller. This command requires no further arguments.
425425
EOF
426-
function metrics_list {
426+
function metric_list {
427427
local APPLICATION=$*
428428
controller_call /controller/rest/applications/${APPLICATION}/metrics
429429
}
430-
register metrics_list List all metrics available for one application
431-
describe metrics_list << EOF
430+
register metric_list List all metrics available for one application
431+
describe metric_list << EOF
432432
List all metrics available for one application
433433
EOF
434-
function metrics_get {
434+
function metric_get {
435435
local APPLICATION=${CONFIG_CONTROLLER_DEFAULT_APPLICATION}
436436
local START_TIME=-1
437437
local END_TIME=-1
@@ -462,9 +462,9 @@ function metrics_get {
462462
local METRIC_PATH=`urlencode "$*"`
463463
controller_call -X GET "/controller/rest/applications/${APPLICATION}/metric-data?metric-path=${METRIC_PATH}&time-range-type=${TYPE}&duration-in-mins=${DURATION_IN_MINUTES}&start-time=${START_TIME}&end-time=${END_TIME}"
464464
}
465-
register metrics_get List all metrics available for one application
466-
describe metrics_get << EOF
467-
List all metrics available for one application
465+
register metric_get Get a specific metric
466+
describe metric_get << EOF
467+
Get a specific metric
468468
EOF
469469
function dbmon_create {
470470
local DB_USER=""

main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ source ./commands/portal/download.sh
5353

5454
source ./commands/application/list.sh
5555

56-
source ./commands/metrics/list.sh
57-
source ./commands/metrics/get.sh
56+
source ./commands/metric/list.sh
57+
source ./commands/metric/get.sh
5858

5959
source ./commands/dbmon/create.sh
6060

0 commit comments

Comments
 (0)