{
"Resources": [
{
"Uri": "/cli/v1/precisealarm",
"Interfaces": [
{
"Type": "Patch",
"Description": "Operate with precise alarm"
}
]
},
{
"Uri": "/cli/v1/precisealarm/mock",
"Interfaces": [
{
"Type": "Patch",
"LockdownAllow": true,
"Description": "Precise alarm mock",
"Usage": "ipmcset -t precisealarm -d mock -v <eventcode/stopall> [subjectindex] [assert/deassert/stop]",
"ReqBody": {
"Type": "object",
"Required": true,
"Properties": {
"value1": {
"Required": false
},
"value2": {
"Required": false
},
"value3": {
"Required": false
}
}
},
"RspBody": {
"value2": "${ReqBody/value2}",
"GetParamsArrayCount": "${Statements/GetParamsArrayCount()}"
},
"Statements": {
"GetParamsArrayCount": {
"Steps": [
{
"Type": "Script",
"Formula": "get_precise_alarm_mock_array.lua"
},
{
"Type": "Count"
}
]
},
"GetParamsArray": {
"Steps": [
{
"Type": "Script",
"Formula": "get_precise_alarm_mock_array.lua"
}
]
}
},
"ProcessingFlow": [
{
"Type": "Method",
"Path": "/bmc/kepler/Systems/1/Events",
"Interface": "bmc.kepler.Systems.Events",
"Name": "MockEvent",
"Params": [
"${Statements/GetParamsArray()[1]}",
"${Statements/GetParamsArray()[2]}",
"${Statements/GetParamsArray()[3]}",
"${Statements/GetParamsArray()[4]}"
],
"CallIf": {
"${Statements/GetParamsArrayCount()}": 4
}
}
],
"Echoes": [
"ipmcset/precisealarm_mock",
""
]
}
]
}
]
}