You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete a database collector. Provide the collector id as parameter.
743
759
EOF
744
760
functionevent_create {
745
-
local APPLICATION=${CONFIG_CONTROLLER_DEFAULT_APPLICATION}
746
-
local NODE
747
-
local TIER
748
-
local SEVERITY
749
-
local EVENTTYPE
750
-
local BT
751
-
local COMMENT
752
-
whilegetopts"n:e:s:t:c:a:" opt "$@";
753
-
do
754
-
case"${opt}"in
755
-
n)
756
-
NODE=${OPTARG}
757
-
;;
758
-
t)
759
-
TIER=${OPTARG}
760
-
;;
761
-
s)
762
-
SEVERITY=${OPTARG}
763
-
;;
764
-
e)
765
-
EVENTTYPE=${OPTARG}
766
-
;;
767
-
b)
768
-
BT=${OPTARG}
769
-
;;
770
-
c)
771
-
COMMENT=`urlencode "$OPTARG"`
772
-
;;
773
-
a)
774
-
APPLICATION=${OPTARG}
775
-
;;
776
-
esac
777
-
done;
778
-
shiftOptInd
779
-
shift$SHIFTS
780
-
SUMMARY=`urlencode "$*"`
781
-
debug -X POST "/controller/rest/applications/${APPLICATION}/events?summary=${SUMMARY}&comment=${COMMENT}&eventtype=${EVENTTYPE}&severity=${SEVERITY}&bt=${BT}&node=${NODE}&tier=${TIER}"
782
-
controller_call -X POST "/controller/rest/applications/${APPLICATION}/events?summary=${SUMMARY}&comment=${COMMENT}&eventtype=${EVENTTYPE}&severity=${SEVERITY}&bt=${BT}&node=${NODE}&tier=${TIER}"
761
+
apiCall -X POST "/controller/rest/applications/\${a}/events?summary=\${s}&comment=\${c?}&eventtype=\${e}&severity=\${l}&bt=&\${b?}node=\${n?}&tier=\${t?}""$@"
783
762
}
784
763
register event_create Create a custom event for a given application
785
764
describe event_create <<EOF
786
-
Create a custom event for a given application
765
+
Create a custom event for a given application. Application, summary, event type and severity are required parameters.
local APPLICATION=${CONFIG_CONTROLLER_DEFAULT_APPLICATION}
5
-
local NODE
6
-
local TIER
7
-
local SEVERITY
8
-
local EVENTTYPE
9
-
local BT
10
-
local COMMENT
11
-
whilegetopts"n:e:s:t:c:a:" opt "$@";
12
-
do
13
-
case"${opt}"in
14
-
n)
15
-
NODE=${OPTARG}
16
-
;;
17
-
t)
18
-
TIER=${OPTARG}
19
-
;;
20
-
s)
21
-
SEVERITY=${OPTARG}
22
-
;;
23
-
e)
24
-
EVENTTYPE=${OPTARG}
25
-
;;
26
-
b)
27
-
BT=${OPTARG}
28
-
;;
29
-
c)
30
-
COMMENT=`urlencode "$OPTARG"`
31
-
;;
32
-
a)
33
-
APPLICATION=${OPTARG}
34
-
;;
35
-
esac
36
-
done;
37
-
shiftOptInd
38
-
shift$SHIFTS
39
-
SUMMARY=`urlencode "$*"`
40
-
debug -X POST "/controller/rest/applications/${APPLICATION}/events?summary=${SUMMARY}&comment=${COMMENT}&eventtype=${EVENTTYPE}&severity=${SEVERITY}&bt=${BT}&node=${NODE}&tier=${TIER}"
41
-
controller_call -X POST "/controller/rest/applications/${APPLICATION}/events?summary=${SUMMARY}&comment=${COMMENT}&eventtype=${EVENTTYPE}&severity=${SEVERITY}&bt=${BT}&node=${NODE}&tier=${TIER}"
4
+
apiCall -X POST "/controller/rest/applications/\${a}/events?summary=\${s}&comment=\${c?}&eventtype=\${e}&severity=\${l}&bt=&\${b?}node=\${n?}&tier=\${t?}""$@"
42
5
}
43
6
44
7
register event_create Create a custom event for a given application
45
8
describe event_create <<EOF
46
-
Create a custom event for a given application
9
+
Create a custom event for a given application. Application, summary, event type and severity are required parameters.
0 commit comments