Read Monitor group list
No Parameters
Key |
Type |
Value |
---|---|---|
results |
Array |
Monitor group list
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/monitor
Content-Type: application/json
{ "results": [ { "id": null, "name": null, "member": 3 }, { "id": 1535, "name":" Monitor1", "member": 2 } ] }
Add Monitor group
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
name |
String |
Monitor group name (1 - 40 characters) (required) |
201
Key |
Type |
Value |
---|---|---|
id |
int |
ID of the Monitor group |
name |
String |
Monitor group name |
reports |
Array |
Reporting mail address list |
sa |
Array |
Assigned service adaptor list
|
POST https://*.sacm.jp/public-api/v1/user/tsa99990001/monitor
Content-Type: application/json
{ "name": "Monitor1" }
Content-Type: application/json
{ "id": 1, "name": "Monitor1", "reports": [ null, null, null, null, null ], "sa": [ ] }
Up to 5 Monitor groups can be added
Read Monitor group details
No Parameters
Key |
Type |
Value |
---|---|---|
id |
int |
ID of the Monitor group |
name |
String |
Monitor group name |
reports |
Array |
Reporting mail address list |
sa |
Array |
Assigned service adaptor list
|
GET https://*.sacm.jp/public-api/v1/user/tsa99990001/monitor/1
Content-Type: application/json
{ "id": 1, "name": "Monitor1", "reports": [ sample@example.com, sample@example.co.jp, null, null, null ], "sa": [ { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder1" }, "template": { "id": 1, "name": "Template1" }, "monitor": { "id": 1, "name": "Monitor1" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null } ] }
Update Monitor group details
Content-Type: application/json
Key |
Type |
Value |
---|---|---|
name |
String |
Monitor group name (1 - 40 characters) (option) |
reports |
Array |
Reporting mail address list (must be 5 each) (option)
|
sa |
Array |
List of assigned service adaptors (option)
|
Key |
Type |
Value |
---|---|---|
id |
int |
ID of the Monitor group |
name |
String |
Monitor group name |
reports |
Array |
Reporting mail address list
|
sa |
Array |
Assigned service adaptor list
|
PUT https://*.sacm.jp/public-api/v1/user/tsa99990001/monitor/1
Content-Type: application/json
{ "name": "Monitor2", "reports": [ { "address": "sample@example.com" }, { "address": "sample@example.co.jp" }, null, null, null ], "sa": [ { "code": "tss99990001" }, { "code": "tss99990002" } ] }
Content-Type: application/json
{ "id": 1, "name": "Monitor1", "reports": [ { "address": "sample@example.com" }, { "address": "sample@example.co.jp" }, null, null, null ], "sa": [ { "code": "tss99990001", "name": "Service adapter 001", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-1234-5678", "up": true, "configState": "pushready", "group": { "id": 1, "name": "Folder1" }, "template": { "id": 1, "name": "Template1" }, "monitor": { "id": 1, "name": "Monitor2" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null }, { "code": "tss99990002", "name": "Service adapter 002", "description": "MEMO", "distributionId": "0001-0000-0101-0000-0000-0000-5678-1234", "up": true, "configState": "pushready", "group": { "id": 2, "name": "Folder2" }, "template": { "id": 2, "name": "Template2" }, "monitor": { "id": 1, "name": "Monitor2" }, "date": { "lastPushReady": "2012/06/05 16:00:09", "lastHeartbeatReport": "2012/05/11 17:10:02", "lastPulled": "2012/05/11 17:06:22", "firstPulled": "2012/04/11 17:07:00" }, "type": 0, "mode": null } ] }
Delete Monitor group
No Parameters
204
Content-Type: text/plain
No Body
DELETE https://*.sacm.jp/public-api/v1/user/tsa99990001/monitor/1
Content-Type: text/plain
No Body