Sensor Status#

Bulk Submit Sensor Status#

To bulk submit Sensor Statuses POST a SensorStatusBulkSubmissionRequest to the bulk sensor status endpoint:

curl -X POST "https://api.mnemonic.no/sensors/v1/sensor/bulk/status" -H "accept: application/json" -H "Content-Type: application/json" -H "Argus-API-Key: my/api/key"
-d '{
    "records": [
     {
      "sensorID": 1,
      "sensorCustomer": "exampleCustomer",
      "lastAgentHost": "01-example-01.new.hostname.no",
      "lastEventTimestamp": "0",
      "lastUpdateTimestamp": "0",
      "lastAnalyzedTimestamp": "0",
      "messageRate": "1",
      "clockOutOfSync": false
     },
     {
      "sensorID": 2,
      "sensorCustomer": "1"
     },
     {
      "sensorID": 3,
      "sensorCustomer": "exampleCustomer2"
     }
    ], 
    "ignoreOnFailed": true
}'

For the request to be successful:

  • The user must have the submitSensorStatus permission for the Sensor’s customer, a role that grants it, or belong to a group with said permission

  • The Sensor(s) must exist

  • The Customer(s) must exist