QueryWidgetDataPreview
    • PDF

    QueryWidgetDataPreview

    • PDF

    기사 요약

    개요

    간단하게 Metric 데이터와 함께 Preview Chart를 조회합니다.

    요청

    API URL

    URL: https://cw.apigw.fin-ntruss.com/cw_fea/real/cw/api/data/chart/preview
    Method: POST
    

    요청 헤더

    공통설정에 명시된 요청헤더가 필요합니다.

    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
    

    요청 바디

    ChartDataWidgetDto

    예시

    요청 예시

    POST /cw_fea/real/cw/api/data/chart/preview
    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:
    {
        "metricsInfo": [
            {
                "resourceId": "resourceId001",
                "resourceName": "resourceName001",
                "color": "#1f77b4",
                "displayName": "avg_write_cnt",
                "metric": "avg_write_cnt",
                "period": "Min5",
                "statistic": "COUNT",
                "prodKey": "xxxxxxxxxxxxxxxxxx",
                "productName": "System/VPC Server",
                "dimensions": {
                    "type": "svr",
                    "instanceNo": "resourceId001"
                }
            }
        ],
        "periodStart": 1589829600000,
        "periodEnd": 1589833200000
    }
    
    
    

    응답 예시

    [
      {
        "color": "#1f77b4",
        "data": [
          [
            1589829600000,
            7
          ],
          [
            1589829900000,
            7
          ],
          [
            1589830200000,
            7
          ],
          [
            1589830500000,
            6
          ],
          [
            1589830800000,
            7
          ],
          [
            1589831100000,
            7
          ],
          [
            1589831400000,
            6
          ],
          [
            1589831700000,
            6
          ],
          [
            1589832000000,
            7
          ],
          [
            1589832300000,
            7
          ],
          [
            1589832600000,
            6
          ],
          [
            1589832900000,
            7
          ]
        ],
        "dimensions": {
          "instanceNo": "resourceId001",
          "name": "resourceName001",
          "type": "svr"
        },
        "displayName": "avg_write_cnt",
        "metric": "avg_write_cnt",
        "period": "Min5",
        "prodKey": "xxxxxxxxxxxxxxxxxx",
        "statistic": "COUNT"
      }
    ]
    

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.