http API Endpoint
Region | Endpoint |
---|---|
Korea (Pangyo) Region | https://kr1-api-sysmon.cloud.toast.com |
Korea (Pyeongchon) Region | https://kr2-api-sysmon.cloud.toast.com |
United States Region | https://us1-api-sysmon.cloud.toast.com |
Japan Region | https://jp1-api-sysmon.cloud.toast.com |
[URL]
[GET,POST] /prometheus/{prometheus-api-endpoint}
Content-Type: application/json
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
curl "https://kr1-api-sysmon.cloud.toast.com/prometheus/api/v1/series?match[]=query&start=1621894796&end=1621905566" -v -H'X-TC-APP-KEY:appkey'
{
"status": "success",
"data": [
{
"__name__": "name",
"domainname": "(none)",
"instance": "instance",
"job": "job",
"machine": "x86_64",
"nodename": "nodename",
"openmetrics_id": "uuid",
"release": "3.10.0-1127.19.1.el7.x86_64",
"sysname": "Linux",
"version": "#1 SMP Tue Aug 25 17:23:54 UTC 2020"
},
{
"__name__": "name",
"domainname": "(none)",
"instance": "instance",
"job": "job",
"machine": "x86_64",
"nodename": "nodename",
"openmetrics_id": "uuid",
"release": "3.10.0-1127.18.2.el7.x86_64",
"sysname": "Linux",
"version": "#1 SMP Sun Jul 26 15:27:06 UTC 2020"
}
]
}
For more information, refer to Prometheus HTTP API
Method | endpoint |
---|---|
GET | /prometheus/api/v1/query |
POST | /prometheus/api/v1/query |
GET | /prometheus/api/v1/query_range |
POST | /prometheus/api/v1/query_range |
GET | /prometheus/api/v1/series |
POST | /prometheus/api/v1/series |
GET | /prometheus/api/v1/labels |
POST | /prometheus/api/v1/labels |
GET | /prometheus/api/v1/label/{label_name}/values |
GET | /prometheus/api/v1/metadata |
Response Code | Description |
---|---|
401 | Appkey was not entered or the entered Appkey is invalid. |
403 | An attempt was made to access an inaccessible project. |
[URL]
[GET] /v1.0/projects/{projectId}/jobs
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
X-SYSMON-REGION | regionCode | O | Enter the code of the region you want to query. (kr, kr2, jp, us) |
curl -i -X GET \
-H "X-TC-APP-KEY:appkey" \
-H "X-SYSMON-REGION:kr" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body[].jobId | Workspace ID |
body[].projectId | Project ID |
body[].jobName | Workspace name |
body[].metricsPath | Workspace URL path |
body[].description | Workspace description |
body[].lstModifier | Last modifier's UUID |
body[].lstModYmdt | Last modified date |
body[].reservedJobCd | Workspace creation type (if null, the user creates the workspace manually) |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":[
{
"jobId": "jobId",
"projectId": "projectId",
"jobName": "jobName",
"metricsPath": "/metricPath",
"description": "description",
"lstModifier": "lstModifier",
"lstModYmdt": "2021-08-17T10:32:09",
"reservedJobCd": null
}
]
}
[URL]
[POST] /v1.0/projects/{projectId}/jobs
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
X-SYSMON-REGION | regionCode | O | Enter the code of the region where you want to create a workspace. (kr, kr2, jp, us) |
Content-Type | content Type | O | application/json |
[Request Body]
Key | Value | Required | Note |
---|---|---|---|
jobName | Workspace name | O | |
metricsPath | Workspace URL path | O | |
description | Workspace description |
[Error Codes]
Response Code | resultCode | resultMessage | Description |
---|---|---|---|
200 | -40001 | ALREADY_EXIST | The entered value already exists. |
200 | -40002 | BAD_INPUT_VALUE | Invalid API input. |
200 | -50000 | INTERNAL_SERVER_ERROR | A server error has occurred. |
curl -i -X POST \
-H "X-TC-APP-KEY:appkey" \
-H "X-SYSMON-REGION:kr" \
-H "Content-Type:application/json" \
-d \
'{"jobName": "jobName",
"metricsPath": "/metricPath",
"description": "description"
} ' \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body.jobId | Created workspace ID |
body.projectId | Project ID |
body.jobName | Created workspace name |
body.metricsPath | Created Workspace URL Path |
body.description | Created workspace description |
body.lstModifier | Last modifier's UUID |
body.lstModYmdt | Last modified date |
body.reservedJobCd | Workspace creation type (if null, the user creates the workspace manually) |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":{
"jobId": "jobId",
"projectId": "projectId",
"jobName": "jobName",
"metricsPath": "/metricsPath",
"description": "description",
"lstModifier": null,
"lstModYmdt": "2021-08-17T10:30:06",
"reservedJobCd": null
}
}
[URL]
[GET] /v1.0/projects/{projectId}/jobs/{jobId}
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
curl -i -X GET \
-H "X-TC-APP-KEY:appkey" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs/{jobId}'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body.jobId | Workspace ID |
body.projectId | Project ID |
body.jobName | Workspace name |
body.metricsPath | Workspace URL path |
body.description | Workspace description |
body.lstModifier | Last modifier's UUID |
body.lstModYmdt | Last modified date |
body.reservedJobCd | Workspace creation type (if null, the user creates the workspace manually) |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":{
"jobId": "jobId",
"projectId": "projectId",
"jobName": "jobName",
"metricsPath": "/metricPath",
"description": "description",
"lstModifier": "lstModifier",
"lstModYmdt": "2021-08-17T10:32:09",
"reservedJobCd": null
}
}
[URL]
[PUT] /v1.0/projects/{projectId}/jobs/{jobId}
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
Content-Type | content Type | O | application/json |
[Request Body]
Key | Value | Required | Note |
---|---|---|---|
metricsPath | Workspace URL path | O | |
description | Workspace description |
[Error Codes]
Response Code | resultCode | resultMessage | Description |
---|---|---|---|
200 | -40002 | BAD_INPUT_VALUE | Invalid API input. |
200 | -40006 | NOT_FOUND_JOB | No jobId entered. |
200 | -40012 | SYSTEM_RESERVED_JOB | The default workspace cannot be modified. |
200 | -50000 | INTERNAL_SERVER_ERROR | A server error has occurred. |
curl -i -X PUT \
-H "X-TC-APP-KEY:appkey" \
-H "Content-Type:application/json" \
-d \
'{
"metricsPath": "/updatemetricsPath",
"description": "updatedescription"
} ' \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/aOpreudC/jobs/{jobId}'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body.jobId | Workspace ID |
body.projectId | Project ID |
body.jobName | Workspace name |
body.metricsPath | Modified workspace URL Path |
body.description | Modified workspace description |
body.lstModifier | Last modifier's UUID |
body.lstModYmdt | Last modified date |
body.reservedJobCd | Workspace creation type (if null, the user creates the workspace manually) |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":{
"jobId": "jobId",
"projectId": "projectId",
"jobName": "jobName",
"metricsPath": "/updatemetricsPath",
"description": "updatedescription",
"lstModifier": null,
"lstModYmdt": "2021-08-17T10:35:06",
"reservedJobCd": null
}
}
[URL]
[DELETE] /v1.0/projects/{projectId}/jobs/{jobId}
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
[Error Codes]
Response Code | resultCode | resultMessage | Description |
---|---|---|---|
200 | -40006 | NOT_FOUND_JOB | No jobId entered. |
200 | -40012 | SYSTEM_RESERVED_JOB | The default workspace cannot be deleted. |
200 | -50000 | INTERNAL_SERVER_ERROR | A server error has occurred. |
curl -i -X DELETE \
-H "X-TC-APP-KEY:appkey" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/aOpreudC/jobs/{jobId}'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body | Deleted workspace ID |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body": "jobId"
}
Response Code | Message | Description |
---|---|---|
401 | Appkey was not entered or the entered Appkey is invalid. | |
403 | An attempt was made to access an inaccessible Project. |
[URL]
[GET] /v1.0/projects/{projectId}/jobs/{jobId}/targets
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
curl -i -X GET \
-H "X-TC-APP-KEY:appkey" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs/{jobId}/targets
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body[].targetId | Collection target ID |
body[].jobId | Workspace ID |
body[].hostId | Collection target host ID |
body[].port | Collection target port number |
body[].resultCd | Collection target connection result code |
body[].failReason | Reason for failure to connect to a collection target |
body[].mntrnStatCd | Collection target monitoring status code |
body[].lstModifier | Last modifier's UUID |
body[].lstModYmdt | Last modified date |
body[].hostNm | Collection target name |
body[].svrIp | Collection target IP |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":[
{
"targetId": "targetId",
"jobId": "jobId",
"hostId": "hostId",
"port": 9100,
"resultCd": 0,
"failReason": null,
"mntrnStatCd": null,
"lstModifier": "lstModifier",
"lstModYmdt": "2021-08-17T11:06:29",
"hostNm": "hostNm",
"svrIp": "192.168.0.5"
}
]
}
[URL]
[GET] /v1.0/projects/{projectId}/servers
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
X-SYSMON-REGION | regionCode | O | Enter the code of the region you want to query. (kr, kr2, jp, us) |
curl -i -X GET \
-H "X-TC-APP-KEY:appkey" \
-H "X-SYSMON-REGION:kr" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/servers'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body[].hostId | Host ID |
body[].hostNm | Hostname |
body[].projectId | Project ID |
body[].svrIp | Server IP |
body[].instanceId | Instance ID |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":[
{
"hostId": "hostId",
"hostNm": "hostNm",
"svrIp": "192.168.0.5",
"projectId": "projectId",
"instanceId": "instanceId"
}
]
}
[URL]
[POST] /v1.0/projects/{projectId}/jobs/{jobId}/targets
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
Content-Type | content Type | O | application/json |
[Request Body]
Key | Value | Required | Note |
---|---|---|---|
hostId | Host ID to add as a collection target | O | Host ID retrieved by /v1.0/projects/{projectId}/servers. |
port | Collection target PORT | O |
[Error Codes]
Response Code | resultCode | resultMessage | Description |
---|---|---|---|
200 | -40002 | BAD_INPUT_VALUE | Invalid API input. |
200 | -40004 | INVALID_HOST_OR_PROJECT | The entered hostId or projectId is invalid. |
200 | -40006 | NOT_FOUND_JOB | No jobId entered. |
200 | -40012 | SYSTEM_RESERVED_JOB | It cannot be added to the default workspace. |
200 | -50000 | INTERNAL_SERVER_ERROR | A server error has occurred. |
curl -i -X POST \
-H "X-TC-APP-KEY:appkey" \
-H "Content-Type:application/json" \
-d \
'{"hostId": "host id",
"port": "post number"
} ' \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs/{jobId}'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body | Generated collection target ID |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body": "targetId"
}
[URL]
[GET] /v1.0/projects/{projectId}/jobs/{jobId}/targets/{targetId}
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
curl -i -X GET \
-H "X-TC-APP-KEY:appkey" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs/{jobId}/targets/{targetId}
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body.targetId | Collection target ID |
body.jobId | Workspace ID |
body.hostId | Collection target host ID |
body.port | Collection target port number |
body.resultCd | Collection target connection result code |
body.failReason | Reason for failure to connect to a collection target |
body.mntrnStatCd | Monitoring status code |
body.lstModifier | Last modifier's UUID |
body.lstModYmdt | Last modified date |
body.hostNm | Collection target name |
body.svrIp | Collection target IP |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body":{
"targetId": "targetId",
"jobId": "jobId",
"hostId": "hostId",
"port": 9100,
"resultCd": 0,
"failReason": null,
"mntrnStatCd": null,
"lstModifier": "lstModifier",
"lstModYmdt": "2021-08-17T11:06:29",
"hostNm": "hostNm",
"svrIp": "192.168.0.5"
}
}
[URL]
[DELETE] /v1.0/projects/{projectId}/jobs/{jobId}/targets/{targetId}
[Request Header]
Header name | Value | Required | Note |
---|---|---|---|
X-TC-APP-KEY | projectAppkey | O | You can check it from the URL & Appkey in the upper right corner of Monitoring > System Monitoring. |
[Error Codes]
Response Code | resultCode | resultMessage | Description |
---|---|---|---|
200 | -40006 | NOT_FOUND_JOB | No jobId entered. |
200 | -40007 | NOT_FOUND_TARGET | No targetId entered. |
200 | -40012 | SYSTEM_RESERVED_JOB | It cannot be deleted from the default workspace. |
200 | -50000 | INTERNAL_SERVER_ERROR | A server error has occurred. |
curl -i -X DELETE \
-H "X-TC-APP-KEY:appkey" \
'https://kr1-api-sysmon.cloud.toast.com/v1.0/projects/{projectId}/jobs/{jobId}/targets/{targetId}'
Key | Description |
---|---|
header.isSuccessful | Whether the API call was successful |
header.resultCode | API call result code |
header.resultMessage | API call result message |
body | Deleted collection target ID |
[Example]
{
"header":{
"isSuccessful": true,
"resultCode": 0,
"resultMessage": "SUCCESS"
},
"body": "targetId"
}