QueryTopsChart
    • PDF

    QueryTopsChart

    • PDF

    Article Summary

    Overview

    Available in the VPC environment.

    Inquire NTM's Top-N chart.

    Request

    API URL

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

    Request header

    The request header specified in the common setting is required.

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

    Request body

    keyessentialTypeConstraintsDescription
    trafficTypeYTrafficTypeINTERNET,PRIVATETraffic
    groupingTypeYGroupingTypeSerVER,COUNTRY,CITY,REGION,AS,VPC,SUBNET,PET
    vpcMetricTypeYVpcMetricTypeBYTES_MAX,BYTES_SUM,PACKTES_MAX,PACKTES_MAX,PACKTES_SUMtraffic collected information
    directionTypeYVpcDirectionTypeIN,OUT,ALLtraffic direction
    periodYPeriodTypeDAY,HOUR,MINUTE,THIRTY_MINUTE,FIFTEEN_MINUTEUnit time
    limitYIntegerMax: 3000Maximum number of lines
    startTimeYLongMillisecondMeasurement Start Time
    endTimeYLongMillisecondMeasurement End Time
    asNoNStringCarrier Number
    cityCodeNStringCityCode
    countryCodeNStringCountryCode
    instanceNoNStringInstanceNo
    regionNoNStringRegionNo
    typeCodeNStringTypeCode
    vpcNoNStringVPC Number
    subnetNoNStringSubnet Number
    • BYTES_SUM: The average of traffic total for 1 minute
    • BYTES_MAX: Traffic maximum value for 1 minute.

    Answer

    Response body

    keyTypeConstraintsDescription
    topValuesList[TopValue]

    TopValue

    keyTypeConstraintsDescription
    noStringGrouping type number
    nameStringGrouping type's name
    valueIntegerunit: bpsTraffic sum
    inValueIntegerunit: bpsInbound traffic sum
    outValueIntegerunit: bpsOutcount traffic sum

    Example

    Request example

    POST /vpc/traffic/chart/tops
    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}
    x-ncp-mbr_no: {your member number}
    {
    	"vpcMetricType": "BYTES_MAX",
    	"directionType": "ALL",
    	"trafficType": "INTERNET",
    	"period": "MINUTE",
    	"groupingType": "REGION",
    	"startTime": 1644231420000,
    	"endTime": 1644235020000,
    	"limit": 10
    }
    

    Response example

    HTTP code 200 and topN chart are inquired if the inquiry is completed without errors.

    {
    	"topValues": [
    		{
    			"no": "1",
    			"name": "Korea",
    			"value": 41997,
    			"inValue": 41997,
    			"outValue": 0
    		}
    	]
    }
    

    Was this article helpful?

    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.