- Print
- PDF
Get monitoring
- Print
- PDF
Available in Classic and VPC
Get the details of a monitoring service.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | /api/v1/scenarios/{scenarioId} |
Request headers
For information about the headers common to all Web service Monitoring System APIs, see Web service Monitoring System request headers.
Request path parameters
You can use the following path parameters with your request:
Field | Type | Required | Description |
---|---|---|---|
scenarioId | Integer | Required | Scenario ID
|
Request example
The request example is as follows:
curl --location --request GET 'https://wms.apigw.ntruss.com/api/v1/scenarios/{scenarioId}' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
Response
This section describes the response format.
Response body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
scenarioId | Integer | - | Scenario ID |
name | String | - | Monitoring service name |
monitoringType | String | - | Monitoring type
|
serviceType | String | - | Monitoring service type
|
interval | Integer | - | Monitoring execution interval (minute)
|
requestTimeout | Integer | - | Monitoring request wait time (millisecond)
|
runTimeout | Integer | - | Monitoring scenario execution wait time (millisecond)
|
serviceYn | Boolean | - | Monitoring status
|
methodType | String | - | Monitoring request type
|
url | String | - | Web service URL address
|
lastMonitoringTime | Long | - | Last monitoring collection time
|
successCount | Integer | - | Number of normal monitoring results
|
errorCount | Integer | - | Number of errors in monitoring results
|
avgLoadTime | Integer | - | Average page load time (millisecond) |
avgRunTime | Integer | - | Average scenario execution time (millisecond) |
locations | Array | - | Country where the monitoring measurement agent is located |
alarms | Object | - | Notification configuration information |
alarms.scenarioId | Integer | - | Notification scenario ID |
alarms.name | String | - | Notification name |
alarms.threshold | Integer | - | Notification threshold (case) |
alarms.interval | Integer | - | Notification delivery interval (hour) |
alarms.period | Integer | - | Notification threshold measurement time (minute) |
alarms.useYn | Boolean | - | Whether to use notifications
|
alarms.creator | Integer | - | Notification creator
|
alarms.templateId | Integer | - | Notification template ID |
alarms.smsEmailConfigs | Array | - | SMS/EMAIL configuration information |
alarms.webhooks | Array | - | Webhook configuration information |
locations
The following describes locations
.
Field | Type | Required | Description |
---|---|---|---|
code | String | - | Country code
|
name | String | - | Country name
|
smsEmailConfigs
The following describes smsEmailConfigs
.
Field | Type | Required | Description |
---|---|---|---|
managerName | String | - | Notification recipient admin name |
managerNo | Integer | - | Notification recipient admin number |
cellPhoneNo | Integer | - | Notification recipient phone number |
memberNo | Integer | - | Notification recipient number |
emailAddress | String | - | Notification recipient email address |
informType | String | - | Notification method
|
webhooks
The following describes webhooks
.
Field | Type | Required | Description |
---|---|---|---|
id | Integer | - | Webhook ID |
name | String | - | Webhook name |
url | String | - | Webhook URL |
memberNo | Integer | - | Webhook target
|
createdDate | Integer | - | Webhook creation date
|
updatedDate | Integer | - | Webhook modification date
|
Response status codes
For information about the HTTP status codes common to all Web service Monitoring System APIs, see Web service Monitoring System response status codes.
Response example
The response example is as follows:
{
"scenarioId": 7488,
"name": "test_ncloud",
"monitoringType": "SCENARIO",
"serviceType": "PC",
"interval": 1,
"requestTimeout": 5000,
"runTimeout": 30000,
"serviceYn": true,
"methodType": "GET",
"url": "https://www.ncloud.com",
"lastMonitoringTime": 1728579720000,
"successCount": 38,
"errorCount": 0,
"avgLoadTime": 2961,
"avgRunTime": 4070,
"locations": [
{
"code": "KR",
"name": "Korea"
}
],
"alarms": {
"scenarioId": 7488,
"name": "Default",
"threshold": 3,
"interval": 1,
"period": 3,
"useYn": true,
"creator": "*******",
"templateId": 14355,
"smsEmailConfigs": [
{
"managerName": "Gildong Hong",
"managerNo": 88139,
"cellPhoneNo": "010********",
"memberNo": 88139,
"emailAddress": "gildong.hong@*****.com",
"informType": "EMAIL"
}
],
"webhooks": [
{
"id": 113,
"name": "wh_ncloud",
"url": "https://www.ncloud.com",
"memberNo": *******,
"createdDate": 1728579753484,
"updatedDate": 1728579753484
}
]
}
}