AlarmService Resource

POST /v1/alarm/search/count

Request Body
media type data type
application/json AlarmQuery (JSON)
Response Body
media type data type description
application/json AlarmHitCount (JSON)

Example

Request
POST /v1/alarm/search/count
Content-Type: application/json
Accept: application/json

                
{
  "sourceRegex" : "wcu::wcu1|wcu::wcu2",
  "sources" : [ "wcu::m2m_wcu_2_53_1", "task::123456::wcu::m2m_wcu_2_53_1" ],
  "from" : "2025-10-14T05:44:30Z",
  "to" : "2025-10-14T06:44:30Z",
  "messageRegex" : "certificate",
  "categoryRegex" : "wcu::state",
  "categories" : [ "wcu::info::cert::not_present", "file::mdf::time::backward" ],
  "severityRegex" : "warning|error",
  "severities" : [ "info", "error" ],
  "includeClosedAlarms" : false,
  "includeHitCount" : false,
  "limit" : 100,
  "page" : 1,
  "orderBy" : "resource",
  "sortOrder" : "asc"
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "count" : 12345
}
                
              

POST /v1/alarm/search/results

Request Body
media type data type
application/json AlarmQuery (JSON)
Response Body
media type data type description
application/json AlarmResult (JSON)

Example

Request
POST /v1/alarm/search/results
Content-Type: application/json
Accept: application/json

                
{
  "sourceRegex" : "wcu::wcu1|wcu::wcu2",
  "sources" : [ "wcu::m2m_wcu_2_53_1", "task::123456::wcu::m2m_wcu_2_53_1" ],
  "from" : "2025-10-14T05:44:30Z",
  "to" : "2025-10-14T06:44:30Z",
  "messageRegex" : "certificate",
  "categoryRegex" : "wcu::state",
  "categories" : [ "file::mdf::time::backward", "wcu::info::cert::unlock::failed" ],
  "severityRegex" : "warning|error",
  "severities" : [ "warning", "info" ],
  "includeClosedAlarms" : false,
  "includeHitCount" : false,
  "limit" : 100,
  "page" : 1,
  "orderBy" : "resource",
  "sortOrder" : "asc"
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "alarms" : [ {
    "category" : "wcu::info::cert::unlock::failed",
    "date" : "...",
    "message" : "...",
    "severity" : "fatal",
    "source" : "..."
  }, {
    "category" : "wcu::info::shutdown::reason::powerloss",
    "date" : "...",
    "message" : "...",
    "severity" : "fatal",
    "source" : "..."
  } ],
  "hitCount" : 12345,
  "limit" : 12345,
  "page" : 12345
}