Skip to content

Sensor Status

Bulk Submit Sensor Status

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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