Alertas e AlarmesVer Configurações de Alertas

Ver Configurações de Alertas

Obtém as configurações de alertas e alarmes do dispositivo.

Requisição HTTP

MétodoCaminho (Path)
GET/api/device/alertsettings/get

Parâmetros de Consulta (Query)

ParâmetroTipoObrigatórioDescrição
access_tokenstringtrueO token de acesso.
imeistringtrueIMEI de destino.

Exemplo

Request URL:

GET https://api.brasilsatgps.com.br/api/device/alertsettings/get?access_token={ACCESS_TOKEN}&imei=358899123456789

Estrutura de Retorno (Schema)

Campo JSONTipo de DadoDescrição
recordArrayLista de configurações de alertas.
record[].alarmtypeintID do tipo de alerta. Para detalhes, consulte a Referência de Configuração de Alertas.
record[].switchintChave do alerta (1: Ligado, 0: Desligado).
record[].thresholdstringAlarm setting threshold. For details on format and units, please refer to Alarm Settings Reference.

Exemplo de Resposta JSON

{
  "code": 0,
  "record": [
    {
      "alarmtype": 7,
      "switch": 0,
      "threshold": "80"
    },
    {
      "alarmtype": 9,
      "switch": 0,
      "threshold": ""
    },
    {
      "alarmtype": 10,
      "switch": 0,
      "threshold": ""
    },
    {
      "alarmtype": 26,
      "switch": 0,
      "threshold": ""
    },
    {
      "alarmtype": 27,
      "switch": 0,
      "threshold": ""
    },
    {
      "alarmtype": 28,
      "switch": 0,
      "threshold": "25"
    },
    {
      "alarmtype": 29,
      "switch": 0,
      "threshold": "6"
    },
    {
      "alarmtype": 30,
      "switch": 0,
      "threshold": "6"
    },
    {
      "alarmtype": 31,
      "switch": 0,
      "threshold": "12"
    },
    {
      "alarmtype": 32,
      "switch": 0,
      "threshold": "12"
    },
    {
      "alarmtype": 34,
      "switch": 1,
      "threshold": "00:00,08:00"
    },
    {
      "alarmtype": 35,
      "switch": 0,
      "threshold": "0"
    },
    {
      "alarmtype": 36,
      "switch": 0,
      "threshold": "0"
    },
    {
      "alarmtype": 41,
      "switch": 0,
      "threshold": "240"
    },
    {
      "alarmtype": 42,
      "switch": 0,
      "threshold": "180"
    },
    {
      "alarmtype": 43,
      "switch": 0,
      "threshold": "10"
    },
    {
      "alarmtype": 50,
      "switch": 1,
      "threshold": "10"
    },
    {
      "alarmtype": 51,
      "switch": 0,
      "threshold": "0"
    }
  ]
}