Commit 93eaa137 authored by Kevin Yung's avatar Kevin Yung
Browse files

Quelques rectification sur la comparaison des states des gateways +...

Quelques rectification sur la comparaison des states des gateways + implémentation de la nouveauté dans le code existant + début de test pour le changement de la page html
parent ceea3006
{"jwt":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjaGlycHN0YWNrLWFwcGxpY2F0aW9uLXNlcnZlciIsImV4cCI6MTYxNTIzMDg4MywiaXNzIjoiY2hpcnBzdGFjay1hcHBsaWNhdGlvbi1zZXJ2ZXIiLCJuYmYiOjE2MTUxNDQ0ODMsInN1YiI6InVzZXIiLCJ1c2VybmFtZSI6IkNoaXJwc3RhY2tNb25pdG9yaW5nIn0.yff6EstehfhHybePN1kiQqUgl6oTHytw855DHGwN5x8"}
\ No newline at end of file
{"jwt":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjaGlycHN0YWNrLWFwcGxpY2F0aW9uLXNlcnZlciIsImV4cCI6MTYxNTM4NTYwNCwiaXNzIjoiY2hpcnBzdGFjay1hcHBsaWNhdGlvbi1zZXJ2ZXIiLCJuYmYiOjE2MTUyOTkyMDQsInN1YiI6InVzZXIiLCJ1c2VybmFtZSI6IkNoaXJwc3RhY2tNb25pdG9yaW5nIn0.kN3SzNxo7Eo5a7c7oN2hv6s0-0YPvI1xmfuP_rxYNfI"}
\ No newline at end of file
#!/bin/bash
replacement="<li><a href='https://lns.campusiot.imag.fr/#/organizations/6/gateways/7276ff0039030716'>7276ff0039030716</a>: KER_FEMTO_030716_P307 - (org 6) - 2021-03-07T19:14:43.804084Z+CHANGED</li>"
id_to_replace="7276ff0039030716"
sed -i '$id_to_replace/c $replacement' test.html
#sed -i 's/^/\t\t/' <filename>
\ No newline at end of file
......@@ -84,3 +84,5 @@ do
echo "get details for $g"
./get_gateway.sh $TOKEN $g
done
./get_id_gatewaysChange.sh
#!/bin/bash
TODAY="2021-03-02"
#TODAY="2021-03-02"
TODAY="$(date +"%Y-%m-%d")"
#On stock les ids des gateways d'aujourd'hui
ids=$(jq --raw-output ".result[] | .id" test_json1.json)
ids=$(jq --raw-output ".result[] | .id" .gateways.json)
id=()
i=0
for ID in $ids
......@@ -13,7 +14,7 @@ do
done
#On stock les dates de dernière activité des gateways d'aujourd'hui
dates=$(jq --raw-output ".result[] | .lastSeenAt" test_json1.json)
dates=$(jq --raw-output ".result[] | .lastSeenAt" .gateways.json)
date=()
date=($dates)
state=()
......@@ -49,7 +50,7 @@ do
done
#On stock les ids des gateways d'hier
ids_2=$(jq --raw-output ".result[] | .id" test_json2.json)
ids_2=$(jq --raw-output ".result[] | .id" lastGatewaysStates.json)
id_2=()
i=0
for ID in $ids_2
......@@ -59,7 +60,7 @@ do
done
#On stock les states des gateways d'hier
full_state=$(jq --raw-output ".result[] | .lastState" test_json2.json)
full_state=$(jq --raw-output ".result[] | .lastState" lastGatewaysStates.json)
states_2=()
j=0
for s in $full_state
......@@ -87,14 +88,14 @@ done
#On met à jour les states des gateways pour le prochain jour
echo "{
\"totalCount\": \"${#id[@]}\",
\"result\": [" > test.txt
\"result\": [" > lastGatewaysStates.json
for (( i=0; i<$((${#id[@]}-1)); i++ ))
do
echo " {
\"id\": \"${id[$i]}\",
\"lastState\": \"${state[$i]}\"
}," >> test.txt
}," >> lastGatewaysStates.json
done
echo " {
......@@ -102,7 +103,7 @@ echo " {
\"lastState\": \"${state[$((${#id[@]}-1))]}\"
}
]
}" >> test.txt
}" >> lastGatewaysStates.json
......@@ -110,13 +111,13 @@ echo " {
#jq --raw-output -f gateways_to_html.jq test_json1.json | grep "0000024b0805031a"
#jq --raw-output -f gateways_to_html.jq .gateways.json | grep "0000024b0805031a"
#jq --raw-output ".result" test_json1.json
#jq -c ".result | sort_by(.lastSeenAt, .id) | reverse []" test_json1.json
#jq --raw-output ".result" .gateways.json
#jq -c ".result | sort_by(.lastSeenAt, .id) | reverse []" .gateways.json
#data=()
#objects=()
#id=()
......
<html><head><title>CampusIoT LNS :: Gateways</title></head><body style="font-family:verdana;"><h1>CampusIoT LNS :: Gateways</h1>
<p>generated at
2021-03-07 20:14:44 CET
-
2021-03-07 19:14:44 GMT
</p>
<h2>Active gateways</h2>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/6/gateways/7276ff0039030724'>7276ff0039030724</a>: KER_FEMTO_030724_P124 - (org 6) - 2021-03-07T19:14:43.999206Z</li>
t <li><a href='https://lns.campusiot.imag.fr/#/organizations/6/gateways/7276ff0039030716'>7276ff0039030716</a>: KER_FEMTO_030716_P307 - (org 6) - 2021-03-07T19:14:43.804084Z+CHANGED</li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/6/gateways/0000024b0805031a'>0000024b0805031a</a>: KER_107_POLYTECH - (org 6) - 2021-03-07T19:14:35.502922Z</li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/6/gateways/7276ff0039030871'>7276ff0039030871</a>: KER_FEMTO_030871_NP - (org 6) - 2021-03-07T19:14:32.213986Z</li>
<h2>Passive gateways</h2>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/080027ffff052e4a'>080027ffff052e4a</a>: LRWAN2_2E4A - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015b18'>0080e1ffff015b18</a>: LRWAN2_5B18 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015abf'>0080e1ffff015abf</a>: LRWAN3_5ABF_EU433 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff0153f1'>0080e1ffff0153f1</a>: LRWAN2_0153F1_KEKA - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff0153d7'>0080e1ffff0153d7</a>: LRWAN2_153D7_SONZOGNI - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff0153cc'>0080e1ffff0153cc</a>: LRWAN2_53CC - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff01525e'>0080e1ffff01525e</a>: LRWAN2_525E - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015257'>0080e1ffff015257</a>: LRWAN2_5257_ROFFET_ROBERT - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015256'>0080e1ffff015256</a>: LRWAN2_5256 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015253'>0080e1ffff015253</a>: LRWAN2_5253 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015252'>0080e1ffff015252</a>: LRWAN2_5252 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015244'>0080e1ffff015244</a>: LRWAN2_5244 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015242'>0080e1ffff015242</a>: LRWAN2_5242_HUMBERT - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015241'>0080e1ffff015241</a>: LRWAN2_5241 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff015240'>0080e1ffff015240</a>: LRWAN2_5240 - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff01523e'>0080e1ffff01523e</a>: LRWAN2_523E_VIVIANI - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff01523c'>0080e1ffff01523c</a>: LRWAN2_523C_THOMAS_HERVE - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff014feb'>0080e1ffff014feb</a>: LRWAN2_4FEB_ROTIVAL - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff014fe1'>0080e1ffff014fe1</a>: LRWAN2_4FE1_ROFFET_ROBERT - (org 5) - </li>
<li><a href='https://lns.campusiot.imag.fr/#/organizations/5/gateways/0080e1ffff011234'>0080e1ffff011234</a>: LRWAN2_1234 - (org 5) - </li>
</body></html>
\ No newline at end of file
{
"totalCount": "24",
"result": [
{
"id": "0000024b0805031a",
"name": "KER_107_POLYTECH",
"description": "LoRaServer Bridge",
"createdAt": "2020-08-12T12:49:20.213116Z",
"updatedAt": "2021-03-02T13:20:05.351603Z",
"firstSeenAt": "2020-11-30T14:33:34.452376Z",
"lastSeenAt": "2021-03-02T13:20:05.349596Z",
"organizationID": "6",
"networkServerID": "1",
"location": {
"latitude": 45.18439,
"longitude": 5.75338,
"altitude": 237,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "7276ff0039030716",
"name": "KER_FEMTO_030716_P307",
"description": "Kerlink Wirnet iFemtoCell LoRaWAN Academy\nhttps://www.kerlink.fr/produit/wirnet-ifemtocell/\n\neth0 70:76:FF:02:07:7A\nwlan0 98:84:E3:BF:C7:D2\nIP 129.88.104.13\n",
"createdAt": "2020-10-09T10:37:41.392857Z",
"updatedAt": "2021-03-02T13:20:04.423209Z",
"firstSeenAt": "2021-01-30T14:06:43.965996Z",
"lastSeenAt": "2021-03-02T13:20:04.421429Z",
"organizationID": "6",
"networkServerID": "1",
"location": {
"latitude": 45.18439622301354,
"longitude": 5.753231048583985,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "7276ff0039030724",
"name": "KER_FEMTO_030724_P124",
"description": "Femto Kerlink - Semtech LoRa Academy\neth0 70:76:ff:02:07:88\nwlan0 F0:C7:7F:C9:DB:E7\nIP 129.88.104.12",
"createdAt": "2020-10-09T10:31:29.150691Z",
"updatedAt": "2021-03-02T13:20:04.360040Z",
"firstSeenAt": "2021-01-30T13:42:31.657870Z",
"lastSeenAt": "2021-03-02T13:20:04.355108Z",
"organizationID": "6",
"networkServerID": "1",
"location": {
"latitude": 45.18424498325449,
"longitude": 5.75310230255127,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "7276ff0039030871",
"name": "KER_FEMTO_030871_NP",
"description": "Kerlink Wirnet iFemtoCell LoRaWAN Academy https://www.kerlink.fr/produit/wirnet-ifemtocell/\n\neth0 70:76:FF:02:08:D4\nwlan0 98:84:E3:48:88:A2",
"createdAt": "2020-10-09T10:38:35.279330Z",
"updatedAt": "2021-03-02T13:19:53.434134Z",
"firstSeenAt": "2020-10-21T09:50:03.963231Z",
"lastSeenAt": "2021-03-02T13:19:53.431742Z",
"organizationID": "6",
"networkServerID": "1",
"location": {
"latitude": 45.19740133918228,
"longitude": 5.833740234375001,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff0153f1",
"name": "LRWAN2_0153F1_KEKA",
"description": "Enver KEKA/ Thibaud HUMBERT\nLocalisation : Proche CHAVANT (Enver) / Gare Grenoble (Alsace-Lorraine)\n",
"createdAt": "2021-02-23T16:42:29.229621Z",
"updatedAt": "2021-02-23T16:42:29.229621Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18545489007673,
"longitude": 5.731258188609468,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff011234",
"name": "LRWAN2_1234",
"description": "Gateway de Machin et de Bidule",
"createdAt": "2020-10-12T14:18:03.422439Z",
"updatedAt": "2021-02-01T16:18:10.914756Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18433572715811,
"longitude": 5.753402709960938,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff0153d7",
"name": "LRWAN2_153D7_SONZOGNI",
"description": "PM2M SONZOGNI",
"createdAt": "2021-02-23T16:33:58.381466Z",
"updatedAt": "2021-02-23T16:33:58.381466Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.19280830183293,
"longitude": 5.731676768131312,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "080027ffff052e4a",
"name": "LRWAN2_2E4A",
"description": "Gateway LoRaWAN2 d'Alexandre SALMON et Thomas FRION",
"createdAt": "2020-10-25T15:26:33.683397Z",
"updatedAt": "2020-10-25T16:00:41.686580Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.7226831,
"longitude": 5.9242678,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff014fe1",
"name": "LRWAN2_4FE1_ROFFET_ROBERT",
"description": "Gateway Antoine ROFFET / Francois ROBERT\n",
"createdAt": "2020-10-26T09:13:50.490139Z",
"updatedAt": "2021-02-23T13:15:09.330789Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.19050597326729,
"longitude": 5.753958682541712,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff014feb",
"name": "LRWAN2_4FEB",
"description": "Gateway de Tristan MAINGUET",
"createdAt": "2020-12-06T13:05:02.270055Z",
"updatedAt": "2020-12-06T13:07:09.312290Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.182740125763594,
"longitude": 5.730657577514649,
"altitude": 238,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff01523c",
"name": "LRWAN2_523C_THOMAS_HERVE",
"description": "Gateway de Xiang SUN et Haoran ZHANG",
"createdAt": "2020-12-06T13:16:36.678108Z",
"updatedAt": "2021-02-23T13:31:04.306534Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.180297483446495,
"longitude": 5.744208097457887,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff01523e",
"name": "LRWAN2_523E_VIVIANI",
"description": "Nicolas Viviani / Antoine Rotival\n",
"createdAt": "2021-01-08T08:29:03.697667Z",
"updatedAt": "2021-02-23T16:35:48.543451Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.46783598133375,
"longitude": 4.474431487704341,
"altitude": 400,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015240",
"name": "LRWAN2_5240",
"description": "Addr Ethernet 00 80 e1 01 52 40",
"createdAt": "2021-02-01T14:27:24.122997Z",
"updatedAt": "2021-02-01T14:27:24.122997Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18424498325449,
"longitude": 5.753574371337891,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015241",
"name": "LRWAN2_5241",
"description": "Gateway de florian jacquin ",
"createdAt": "2020-12-04T11:39:16.707206Z",
"updatedAt": "2020-12-04T11:39:16.707206Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 0,
"longitude": 0,
"altitude": -2,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015242",
"name": "LRWAN2_5242_HUMBERT",
"description": "Enver KEKA/ Thibaud HUMBERT\nLocalisation : Proche CHAVANT (Enver) / Gare Grenoble (Alsace-Lorraine)\n\n",
"createdAt": "2020-10-23T12:41:31.643182Z",
"updatedAt": "2021-02-23T16:40:38.076401Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.189144947063426,
"longitude": 5.721686275766365,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015244",
"name": "LRWAN2_5244",
"description": "Gateway de Dima ASSI et Houda EL AJI pour le projet WSN de INFO5/Polytech Grenoble",
"createdAt": "2020-12-24T15:03:33.158942Z",
"updatedAt": "2020-12-24T18:47:07.168703Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18502008277258,
"longitude": 5.746954679489137,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015252",
"name": "LRWAN2_5252",
"description": "gateway de valentin blumert",
"createdAt": "2021-01-08T09:04:37.357613Z",
"updatedAt": "2021-01-08T09:04:37.357613Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18633205644303,
"longitude": 5.705938785678001,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015253",
"name": "LRWAN2_5253",
"description": "Gateway pour le projet IoT LIANG Jichen",
"createdAt": "2020-12-06T14:12:19.996004Z",
"updatedAt": "2021-01-08T10:07:07.385911Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.1834546,
"longitude": 5.742217,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015256",
"name": "LRWAN2_5256",
"description": "Gateway Hugo RIBARD",
"createdAt": "2020-12-04T09:59:38.252876Z",
"updatedAt": "2020-12-04T09:59:38.252876Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.188097,
"longitude": 5.7514791999999995,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015257",
"name": "LRWAN2_5257_ROFFET_ROBERT",
"description": "Gateway PM2M ROFFET ROBERT",
"createdAt": "2021-01-08T10:37:34.317049Z",
"updatedAt": "2021-02-23T13:28:57.531612Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18130329003343,
"longitude": 5.762570500373841,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff01525e",
"name": "LRWAN2_525E",
"description": "Gateway de Flavien Mougeot et Gabriel Jaffres\n",
"createdAt": "2020-10-12T13:44:25.942475Z",
"updatedAt": "2021-01-08T10:34:06.708452Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18436597509387,
"longitude": 5.7533597946167,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff0153cc",
"name": "LRWAN2_53CC",
"description": "[IESE5] Gateway Benoit BARRE ",
"createdAt": "2021-01-08T09:30:40.541929Z",
"updatedAt": "2021-01-08T09:30:40.541929Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.1881042,
"longitude": 5.7737408,
"altitude": 0,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015b18",
"name": "LRWAN2_5B18",
"description": "Gateway de Tony MAHIEUX",
"createdAt": "2020-12-06T13:10:48.842075Z",
"updatedAt": "2020-12-06T13:10:48.842075Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18916763110019,
"longitude": 5.727138519287109,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
},
{
"id": "0080e1ffff015abf",
"name": "LRWAN3_5ABF_EU433",
"description": "LRWAN3\nMac Addr Ethernet 00 80 e1 01 5a bf",
"createdAt": "2021-02-01T14:29:41.185058Z",
"updatedAt": "2021-02-01T14:29:41.185058Z",
"firstSeenAt": null,
"lastSeenAt": null,
"organizationID": "5",
"networkServerID": "1",
"location": {
"latitude": 45.18424498325449,
"longitude": 5.753574371337891,
"altitude": 220,
"source": "UNKNOWN",
"accuracy": 0
}
}
]
}
\ No newline at end of file
{
"totalCount": "24",
"result": [
{
"id": "0000024b0805031a",
"lastState": "active"
},
{
"id": "7276ff0039030716",
"lastState": "passive"
},
{
"id": "7276ff0039030724",
"lastState": "active"
},
{
"id": "7276ff0039030871",
"lastState": "active"
},
{
"id": "0080e1ffff0153f1",
"lastState": "passive"
},
{
"id": "0080e1ffff011234",
"lastState": "active"
},
{
"id": "0080e1ffff0153d7",
"lastState": "passive"
},
{
"id": "080027ffff052e4a",