QueryLineChart
    • PDF

    QueryLineChart

    • PDF

    Article Summary

    概要

    VPC環境で利用可能です。

    NTMのラインアートを照会します。

    リクエスト

    API URL

    URL: https://vpc-ntm.apigw.ntruss.com/chart/v1/vpc/traffic/chart/lines
    Method: POST
    

    リクエストヘッダー

    共通設定に明示された要求ヘッダーが必要です。

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

    リクエストボディー

    key必須可否タイプ製薬社向説明
    trafficTypeYTrafficTypeINTERNET, PRIVATEtrafficの種類
    groupingTypeYGroupingTypeSERVER, COUNTRY, CITY, REGION, AS, VPC, SUBNET, TYPEgroupingの種類
    vpcMetricTypeYVpcMetricTypeBYTES_MAX, BYTES_SUM, PACKTES_MAX, PACKTES_SUMtrafficの収集情報
    directionTypeYVpcDirectionTypeIN, OUT, ALLtrafficの方向
    periodYPeriodTypeDAY, HOUR, MINUTE, THIRTY_MINUTE, FIFTEEN_MINUTE単位時間
    startTimeYLongMillisecond測定開始時間
    endTimeYLongMillisecond測定終了時間
    asNoNString
    cityCodeNString都市コード
    countryCodeNString国コード
    instanceNoNStringインスタンス番号
    regionNoNString
    typeCodeNStringタイプコード
    vpcNoNStringVPC番号
    subnetNoNStringSubnetの番号
    limitYIntegerdefault:10、最大:3000最大line数
    • BYTES_SUM: 1分間traffic総合の平均
    • BYTES_MAX: 1分間 traffic 最大値

    応答ボディー

    keyタイプ製薬社向説明
    topValuesList[VpcLineChart]

    VpcLineChart

    keyタイプ製薬社向説明
    noStringGrouping typeの番号
    nameStringGrouping typeの名
    timeValueList[TimeValue]時間別traffic値
    inTimeValueList[TimeValue]時間別inbound traffic値
    outTimeValueList[TimeValue]時間別outbound traffic値
    totalLineStatisticList[TimeValue]Trafficの統計情報
    inLineStatisticList[TimeValue]Inbound trafficの統計情報
    outLineStatisticList[TimeValue]Outbound trafficの統計情報

    TimeValue

    keyタイプ製薬社向説明
    timeInteger時間
    valueFloat段位:bpsTraffic値

    VpcLineStatistic

    keyタイプ製薬社向説明
    sumFloat段位:bpsTraffic 総計
    avgFloat段位:bpsTraffic 平均
    minFloat段位:bpsTraffic 最小値
    maxFloat段位:bpsTraffic 最大値
    lastFloat段位:bpsTraffic 最終値

    例示

    リクエスト例

    POST /vpc/traffic/chart/lines
    Host: vpc-ntm.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}
    {
    	"trafficType": "PRIVATE",
    	"groupingType": "REGION",
    	"vpcMetricType": "BYTES_MAX",
    	"directionType": "ALL",
    	"period": "FIFTEEN_MINUTE",
    	"startTime": 1644205260000,
    	"endTime": 1644226860000,
    	"asNo": "",
    	"cityCode": "",
    	"countryCode": "",
    	"instanceNo": "",
    	"regionNo": "",
    	"typeCode": "",
    	"vpcNo": ""
    }
    

    応答例

    エラーなく照会が完了した場合、HTTP code 200とline chartが照会されます。

    "charts": [
    		{
    			"name": "Korea",
    			"no": "1",
    			"timeValue": [
    				{
    					"time": 1644205500000,
    					"value": 0.0
    				},
    				{
    					"time": 1644206400000,
    					"value": 17172.0
    				}
    			],
    			"inTimeValue": [
    				{
    					"time": 1644205500000,
    					"value": 0.0
    				},
    				{
    					"time": 1644206400000,
    					"value": 0.0
    				}
    			],
    			"outTimeValue": [
    				{
    					"time": 1644205500000,
    					"value": 0.0
    				},
    				{
    					"time": 1644206400000,
    					"value": 17172.0
    				}
    			],
    			"inLineStatistic": {
    				"sum": 0.0,
    				"avg": 0.0,
    				"min": 0.0,
    				"max": 0.0,
    				"last": 0.0
    			},
    			"outLineStatistic": {
    				"sum": 94446.0,
    				"avg": 3935.25,
    				"min": 0.0,
    				"max": 17172.0,
    				"last": 0.0
    			},
    			"totalLineStatistic": {
    				"sum": 94446.0,
    				"avg": 3935.25,
    				"min": 0.0,
    				"max": 17172.0,
    				"last": 0.0
    			}
    		}
    	]
    }
    

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

    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.