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::time::wrong", "wcu::info::vin::present" ],
  "severityRegex" : "warning|error",
  "severities" : [ "error", "info" ],
  "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", "file::mdf::time::backward" ],
  "severityRegex" : "warning|error",
  "severities" : [ "info", "warning" ],
  "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::not_present",
    "date" : "...",
    "message" : "...",
    "severity" : "info",
    "source" : "..."
  }, {
    "category" : "wcu::info::start_switch::ext",
    "date" : "...",
    "message" : "...",
    "severity" : "fatal",
    "source" : "..."
  } ],
  "hitCount" : 12345,
  "limit" : 12345,
  "page" : 12345
}