CreateMetricExport

Prev Next

Metric Export를 생성합니다.

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
POST /cw_fea/real/cw/api/metric-export

Cloud Insight API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud Insight 요청 헤더를 참조해 주십시오.

요청 바디 설명은 PostMetricExport를 참조해 주십시오.

요청 예시는 다음과 같습니다.

POST /cw_fea/real/cw/api/metric-export
Host: cw.apigw.fin-ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
x-ncp-dmn_cd: FIN

Payload:
{
    "name": "new-cloudinsight-test",
    "description": "with cloudinsight",
    "productKey": "1231231231231231231",
    "interval": "Min1",
    "metrics": [
        "avg_cpu_used_rto"
    ],
    "aggregation": "AVG",
    "destination": {
        "type": "OBS",
        "regionCode": "FKR",
        "resourceId": "my-bucket"
    }
}
HTTP

오류 없이 생성이 완료된 경우 HTTP code 200과 함께 해당 Metric Export의 id가 리턴됩니다.

999
Java