Ver Configurações de Alertas
Obtém as configurações de alertas e alarmes do dispositivo.
Requisição HTTP
| Método | Caminho (Path) |
|---|---|
GET | /api/device/alertsettings/get |
Parâmetros de Consulta (Query)
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
access_token | string | true | O token de acesso. |
imei | string | true | IMEI de destino. |
Exemplo
Request URL:
GET https://api.brasilsatgps.com.br/api/device/alertsettings/get?access_token={ACCESS_TOKEN}&imei=358899123456789Estrutura de Retorno (Schema)
| Campo JSON | Tipo de Dado | Descrição |
|---|---|---|
record | Array | Lista de configurações de alertas. |
record[].alarmtype | int | ID do tipo de alerta. Para detalhes, consulte a Referência de Configuração de Alertas. |
record[].switch | int | Chave do alerta (1: Ligado, 0: Desligado). |
record[].threshold | string | Alarm 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"
}
]
}