ectraffic-by-time report

The following shows how to generate the ectraffic-by-time report using either the Reporting API’s Generate a report POST operation or the Get a cacheable report GET operation. Details about each report’s supported products, metrics, filters, and available data intervals are also available dynamically by running the API’s Get a report type operation, also shown below. See also other available reports.

Report definition

The origin or edge traffic data, for use in Event Center.

This report allows you to configure the aggregation interval for each data record. Available interval values are: MONTH, WEEK, DAY, HOUR, FIVE_MINUTES.

Business object: cpcode

Data available for: 1 year

Available metrics

Metric Description
Data metrics
edgeBitsPerSecond The edge bandwidth for given objects and filters.
edgeHitsPerSecond The number of edge requests per second for given objects and filters.
originBitsPerSecond The origin bandwidth for given objects and filters.
originHitsPerSecond The number of origin requests per second for given objects and filters.
Summary metrics
edgeBitsPerSecondMax The peak edge bandwidth for given objects and filters.
edgeBytesTotal The total volume of edge traffic for given objects and filters.
edgeHitsPerSecondMax The peak number of edge requests per second for given objects and filters.
edgeHitsTotal The total number of edge requests for given objects and filters.
originBitsPerSecondMax The peak origin bandwidth for given objects and filters.
originBytesTotal The total volume of origin traffic for given objects and filters.
originHitsPerSecondMax The peak number of origin requests per second for given objects and filters.
originHitsTotal The total number of origin requests for given objects and filters.

Sample report

POST /reporting-api/v1/reports/ectraffic-by-time/versions/1/report-data{?start,end,interval}

Sample: /reporting-api/v1/reports/ectraffic-by-time/versions/1/report-data?start=2020-06-26T13%3A40%3A00Z&end=2020-06-26T14%3A00%3A00Z&interval=FIVE_MINUTES

Object type: Query

Download schema: report-request-schema.json

Query parameters

Parameter Type Sample Description
Required
start String 2020-06-26T13:40:00Z Specifies the start of the reported period as an ISO–8601 timestamp with optional time zone. The report includes data that matches the start value’s timestamp.
end String 2020-06-26T14:00:00Z Specifies the end of the reported period as an ISO–8601 timestamp with optional time zone. The report excludes any data that matches the end value’s timestamp.
interval Enumeration FIVE_MINUTES The duration of each data record. Available values: MONTH, WEEK, DAY, HOUR, FIVE_MINUTES.

JSON request members

Member Type Description
objectIds Array Specifies the set of cpcode values you want to report on.
objectIds Enumeration As an alternative to an array of ID values, specify all as a string for unfiltered data. Either way, objectIds is required.
metrics Array The set of desired metrics. If omitted, the report includes all available metrics.

Request body:

{
    "objectIds": [
        "55232",
        "23433",
        "32433"
    ],
    "metrics": [
        "edgeBitsPerSecond",
        "edgeBitsPerSecondMax",
        "edgeBytesTotal",
        "edgeHitsPerSecond",
        "edgeHitsPerSecondMax",
        "edgeHitsTotal",
        "originBitsPerSecond",
        "originBitsPerSecondMax",
        "originBytesTotal",
        "originHitsPerSecond",
        "originHitsPerSecondMax",
        "originHitsTotal"
    ]
}

GET /reporting-api/v1/reports/ectraffic-by-time/versions/1/report-data{?start,end,interval,objectIds,allObjectIds,metrics}

Sample: /reporting-api/v1/reports/ectraffic-by-time/versions/1/report-data?start=2020-06-26T13%3A40%3A00Z&end=2020-06-26T14%3A00%3A00Z&interval=FIVE_MINUTES&objectIds=55232,23433,32433&metrics=edgeBitsPerSecond%2CedgeBitsPerSecondMax

Query parameters

Parameter Type Sample Description
Required
start String 2020-06-26T13:40:00Z Specifies the end of the reported period as an ISO–8601 timestamp with optional time zone. The report excludes any data that matches the end value’s timestamp.
end String 2020-06-26T14:00:00Z Specifies if unavailable reports should be shown.
interval Enumeration FIVE_MINUTES The duration of each data record. Available values: MONTH, WEEK, DAY, HOUR, FIVE_MINUTES.
Optional
allObjectIds Boolean true As an alternative to objectIds, enabling this generates a report that includes all IDs available for the cpcode objectType. This parameter is ignored if the request also specifies a set of objectIds.
objectIds String 55232,23433,32433 As an alternative to allObjectIds, specifies the set of unique IDs for the cpcode objectType you want to report on, formatted as a comma-delimited list.
metrics String edgeBitsPerSecond,edgeBitsPerSecondMax Specifies a comma-separated list of metrics to include in the report, otherwise all metrics if omitted. The set of available metrics depends on the type of report. URL-encode the entire value in the GET request.

Status 200 application/json

Object type: Report

Download schema: report-response-schema.json

Response body:

{
    "metadata": {
        "name": "ectraffic-by-time",
        "version": "1",
        "outputType": "FLAT",
        "groupBy": [
            "startdatetime"
        ],
        "interval": "FIVE_MINUTES",
        "start": "2020-06-26T13:40:00Z",
        "end": "2020-06-26T14:00:00Z",
        "availableDataEnds": null,
        "suggestedRetryTime": null,
        "rowCount": 4,
        "filters": [],
        "columns": [
            {
                "name": "groupBy",
                "label": "startdatetime"
            },
            {
                "name": "edgeBitsPerSecond",
                "label": "Edge Bits/Sec"
            },
            {
                "name": "edgeHitsPerSecond",
                "label": "Edge Hits/Sec"
            },
            {
                "name": "originBitsPerSecond",
                "label": "Origin Bits/Sec"
            },
            {
                "name": "originHitsPerSecond",
                "label": "Origin Hits/Sec"
            }
        ],
        "objectType": "cpcode",
        "objectIds": [
            "55232",
            "23433",
            "32433"
        ]
    },
    "data": [
        {
            "startdatetime": "2020-06-26T13:40:00Z",
            "edgeBitsPerSecond": "899.995072",
            "edgeHitsPerSecond": "760.347198",
            "originBitsPerSecond": "4360.949133",
            "originHitsPerSecond": "2425.091275"
        },
        {
            "startdatetime": "2020-06-26T13:45:00Z",
            "edgeBitsPerSecond": "952.678441",
            "edgeHitsPerSecond": "297.186473",
            "originBitsPerSecond": "4098.344248",
            "originHitsPerSecond": "4694.878465"
        },
        {
            "startdatetime": "2020-06-26T13:50:00Z",
            "edgeBitsPerSecond": "1144.973217",
            "edgeHitsPerSecond": "3665.560593",
            "originBitsPerSecond": "1051.739011",
            "originHitsPerSecond": "1156.305503"
        },
        {
            "startdatetime": "2020-06-26T13:55:00Z",
            "edgeBitsPerSecond": "2166.204225",
            "edgeHitsPerSecond": "4544.50829",
            "originBitsPerSecond": "2901.885613",
            "originHitsPerSecond": "30.449204"
        }
    ],
    "summaryStatistics": {
        "edgeBitsPerSecondMax": {
            "value": "2107.455296",
            "details": {}
        },
        "edgeBytesTotal": {
            "value": "3498",
            "details": {}
        },
        "edgeHitsPerSecondMax": {
            "value": "4354.75083",
            "details": {}
        },
        "edgeHitsTotal": {
            "value": "749",
            "details": {}
        },
        "originBitsPerSecondMax": {
            "value": "4820.520043",
            "details": {}
        },
        "originBytesTotal": {
            "value": "2852",
            "details": {}
        },
        "originHitsPerSecondMax": {
            "value": "3323.229919",
            "details": {}
        },
        "originHitsTotal": {
            "value": "1760",
            "details": {}
        }
    }
}

Status 200 text/csv

Response Body:

#METADATA_START
name,ectraffic-by-time
version,1
source,ectraffic-by-time/versions/1
groupBy,startdatetime
start,2020-06-26T13:40:00Z
end,2020-06-26T14:00:00Z
interval,`FIVE_MINUTES`
availableDataEnds,
suggestedRetryTime,
rowCount,4
objectType,cpcode
objectIds,55232,23433,32433
#METADATA_END

#SUMMARYSTATISTICS_START
edgeBitsPerSecondMax,2107.455296
edgeBytesTotal,3498
edgeHitsPerSecondMax,4354.75083
edgeHitsTotal,749
originBitsPerSecondMax,4820.520043
originBytesTotal,2852
originHitsPerSecondMax,3323.229919
originHitsTotal,1760
#SUMMARYSTATISTICS_END

#COLUMNS_START
startdatetime,edgeBitsPerSecond,edgeHitsPerSecond,originBitsPerSecond,originHitsPerSecond
#COLUMNS_END

#DATA_START
2020-06-26T13:40:00Z,899.995072,760.347198,4360.949133,2425.091275
2020-06-26T13:45:00Z,952.678441,297.186473,4098.344248,4694.878465
2020-06-26T13:50:00Z,1144.973217,3665.560593,1051.739011,1156.305503
2020-06-26T13:55:00Z,2166.204225,4544.50829,2901.885613,30.449204
#DATA_END

Get report details

This sample Get a report type operation gets the same information you need to run the ectraffic-by-time report as provided in this reference documentation, but available dynamically to your API client application.

GET /reporting-api/v1/reports/ectraffic-by-time/versions/1

Status 200 application/json

Object type: ReportType

Download schema: data-row-schema.json

Response body:

{
    "name": "ectraffic-by-time",
    "description": "The origin or edge traffic data, for use in Event Center.",
    "businessObjectName": "cpcode",
    "version": 1,
    "status": "PUBLISHED",
    "deprecated": false,
    "timeBased": true,
    "outputType": "FLAT",
    "requiredRoles": [
        "None"
    ],
    "available": true,
    "metrics": [
        {
            "name": "edgeBitsPerSecond",
            "description": "The edge bandwidth for given objects and filters.",
            "label": "Edge Bits/Sec",
            "unit": "BIT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeBitsPerSecondMax",
            "description": "The peak edge bandwidth for given objects and filters.",
            "label": "Edge Bits/Sec Maximum",
            "unit": "BIT_PER_SECOND",
            "summaryStatistic": true
        },
        {
            "name": "edgeHitsPerSecond",
            "description": "The number of edge requests per second for given objects and filters.",
            "label": "Edge Hits/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeHitsPerSecondMax",
            "description": "The peak number of edge requests per second for given objects and filters.",
            "label": "Edge Hits/Sec Maximum",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": true
        },
        {
            "name": "edgeHitsTotal",
            "description": "The total number of edge requests for given objects and filters.",
            "label": "Edge Hits Total",
            "unit": "COUNT",
            "summaryStatistic": true
        },
        {
            "name": "originBitsPerSecond",
            "description": "The origin bandwidth for given objects and filters.",
            "label": "Origin Bits/Sec",
            "unit": "BIT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originBitsPerSecondMax",
            "description": "The peak origin bandwidth for given objects and filters.",
            "label": "Origin Bits/Sec Maximum",
            "unit": "BIT_PER_SECOND",
            "summaryStatistic": true
        },
        {
            "name": "originHitsPerSecond",
            "description": "The number of origin requests per second for given objects and filters.",
            "label": "Origin Hits/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originHitsPerSecondMax",
            "description": "The peak number of origin requests per second for given objects and filters.",
            "label": "Origin Hits/Sec Maximum",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": true
        },
        {
            "name": "originHitsTotal",
            "description": "The total number of origin requests for given objects and filters.",
            "label": "Origin Hits Total",
            "unit": "COUNT",
            "summaryStatistic": true
        },
        {
            "name": "edgeBytesTotal",
            "description": "The total volume of edge traffic for given objects and filters.",
            "label": "Edge Bytes Total",
            "unit": "BYTE",
            "summaryStatistic": true
        },
        {
            "name": "originBytesTotal",
            "description": "The total volume of origin traffic for given objects and filters.",
            "label": "Origin Bytes Total",
            "unit": "BYTE",
            "summaryStatistic": true
        }
    ],
    "groupOutlyingValues": {
        "enabled": false
    },
    "groupBy": [
        "startdatetime"
    ],
    "intervals": [
        "MONTH",
        "WEEK",
        "DAY",
        "HOUR",
        "FIVE_MINUTES"
    ],
    "dataRetentionDays": 366,
    "links": [
        {
            "rel": "self",
            "href": "/reporting-reports-executor-api/v1/reports/ectraffic-by-time/versions/1"
        },
        {
            "rel": "versions",
            "href": "/reporting-reports-executor-api/v1/reports/ectraffic-by-time/versions"
        },
        {
            "rel": "all-reports",
            "href": "/reporting-reports-executor-api/v1/reports"
        },
        {
            "rel": "execute-report",
            "href": "/reporting-reports-executor-api/v1/reports/ectraffic-by-time/versions/1/report-data"
        }
    ]
}