Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dao): add ReSTv2 support to event and node DAOs
- Loading branch information
Benjamin Reed
committed
Jul 31, 2017
1 parent
5806aa6
commit c524493
Showing
10 changed files
with
617 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
82 changes: 82 additions & 0 deletions
82
test/rest/21.0.0/get/api/v2/nodes/81.ipinterfaces.127.0.0.1.services.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"count": 5, | ||
"offset": null, | ||
"service": [ | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 2, | ||
"name": "SNMP" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
}, | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 1, | ||
"name": "ICMP" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
}, | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 5, | ||
"name": "StrafePing" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
}, | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 3, | ||
"name": "OpenNMS-JVM" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
}, | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 4, | ||
"name": "SSH" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
} | ||
], | ||
"totalCount": 5 | ||
} |
52 changes: 52 additions & 0 deletions
52
test/rest/21.0.0/get/api/v2/nodes/81.ipinterfaces.172.20.1.110.services.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"count": 3, | ||
"offset": null, | ||
"service": [ | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 1, | ||
"name": "ICMP" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
}, | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 5, | ||
"name": "StrafePing" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
}, | ||
{ | ||
"applications": [], | ||
"down": false, | ||
"lastFail": null, | ||
"lastGood": null, | ||
"notify": null, | ||
"qualifier": null, | ||
"serviceType": { | ||
"id": 4, | ||
"name": "SSH" | ||
}, | ||
"source": null, | ||
"status": "A", | ||
"statusLong": "Managed" | ||
} | ||
], | ||
"totalCount": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"count": 2, | ||
"ipInterface": [ | ||
{ | ||
"hostName": "127.0.0.1", | ||
"id": "1957", | ||
"ifIndex": 1, | ||
"ipAddress": "127.0.0.1", | ||
"isDown": false, | ||
"isManaged": "M", | ||
"lastCapsdPoll": 1501532685099, | ||
"monitoredServiceCount": 5, | ||
"nodeId": 81, | ||
"snmpInterface": { | ||
"collect": false, | ||
"collectFlag": "N", | ||
"collectionUserSpecified": false, | ||
"id": 1959, | ||
"ifAdminStatus": 1, | ||
"ifAlias": "", | ||
"ifDescr": "lo0", | ||
"ifIndex": 1, | ||
"ifName": "lo0", | ||
"ifOperStatus": 1, | ||
"ifSpeed": 0, | ||
"ifType": 24, | ||
"lastCapsdPoll": 1501532685099, | ||
"lastSnmpPoll": null, | ||
"netMask": "255.0.0.0", | ||
"physAddr": null, | ||
"poll": false, | ||
"pollFlag": "N" | ||
}, | ||
"snmpPrimary": "P" | ||
}, | ||
{ | ||
"hostName": "172.20.1.110", | ||
"id": "2139", | ||
"ifIndex": 6, | ||
"ipAddress": "172.20.1.110", | ||
"isDown": false, | ||
"isManaged": "M", | ||
"lastCapsdPoll": 1501532685099, | ||
"monitoredServiceCount": 3, | ||
"nodeId": 81, | ||
"snmpInterface": { | ||
"collect": true, | ||
"collectFlag": "C", | ||
"collectionUserSpecified": false, | ||
"id": 2018, | ||
"ifAdminStatus": 1, | ||
"ifAlias": "", | ||
"ifDescr": "en0", | ||
"ifIndex": 6, | ||
"ifName": "en0", | ||
"ifOperStatus": 1, | ||
"ifSpeed": 304200000, | ||
"ifType": 6, | ||
"lastCapsdPoll": 1501532685099, | ||
"lastSnmpPoll": null, | ||
"netMask": "255.255.255.0", | ||
"physAddr": "000f241fa144", | ||
"poll": false, | ||
"pollFlag": "N" | ||
}, | ||
"snmpPrimary": "N" | ||
} | ||
], | ||
"offset": null, | ||
"totalCount": 2 | ||
} |
Oops, something went wrong.