GetDashboardWidgetImage
    • PDF

    GetDashboardWidgetImage

    • PDF

    Article Summary

    概要

    VPC環境で利用できます。

    Dashboardと Widgetを指定し、その Dashboard Widgetの Dataを PNGファイル形式でダウンロードします(画像サイズ: 800*600)。

    リクエスト

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/chart/dashboard/{dashboardId}/widgets/{widgetId}?startTime={startTime}&endTime={endTime}
    Method: GET
    

    リクエストヘッダ

    共通設定に明示されたリクエストヘッダが必要です。

    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    リクエストパラメータ

    パラメータ名パラメータの種類要否タイプ制約事項説明
    dashboardIdpathYStringダウンロードする Widgetが含まれた Dashboard ID
    widgetIdpathYStringダウンロードする Widget ID
    startTimequeryYLongダッシュボード表記開始時間 in milliseconds
    endTimequeryYLongダッシュボード表記終了時間 in milliseconds
    widgetResolutionModequeryNStringAUTO, HIGH, default: AUTO照会間隔(Interval)設定オプション。
    AUTO の場合はコンソールダッシュボードと同じ照会間隔で照会し、HIGHの場合はコンソールダッシュボードと異なる照会間隔でデータをより詳細に照会

    リクエスト例

    GET /cw_fea/real/cw/api/chart/dashboard/df_457958429047263232/widgets/avg_cpu_used_rto__457958429047263232?startTime=1650261600000&endTime=1650358800000
    Host: cw.apigw.ntruss.com
    x-ncp-apigw-signature-v2: {generated signature}
    x-ncp-apigw-timestamp: {current timestamp}
    x-ncp-iam-access-key: {your iam access key}
    

    レスポンス例

    エラーなく照会が完了すると HTTP code 200が返され、拡張子が.pngの output fileを指定すると、その file名で Widget画像がダウンロードされます。
    image.png


    この記事は役に立ちましたか?

    What's Next
    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.