Skip to content

Commit b594c3e

Browse files
committed
renamed metrics->metric
1 parent 2e376b2 commit b594c3e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

commands/metrics/get.sh renamed to commands/metric/get.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
function metrics_get {
3+
function metric_get {
44
local APPLICATION=${CONFIG_CONTROLLER_DEFAULT_APPLICATION}
55
local START_TIME=-1
66
local END_TIME=-1
@@ -32,7 +32,7 @@ function metrics_get {
3232
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}"
3333
}
3434

35-
register metrics_get List all metrics available for one application
36-
describe metrics_get << EOF
37-
List all metrics available for one application
35+
register metric_get Get a specific metric
36+
describe metric_get << EOF
37+
Get a specific metric
3838
EOF
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
function metrics_list {
3+
function metric_list {
44
local APPLICATION=$*
55
controller_call /controller/rest/applications/${APPLICATION}/metrics
66
}
77

8-
register metrics_list List all metrics available for one application
9-
describe metrics_list << EOF
8+
register metric_list List all metrics available for one application
9+
describe metric_list << EOF
1010
List all metrics available for one application
1111
EOF

0 commit comments

Comments
 (0)