ectraffic-by-time

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

MetricDescription
Data metrics
edgeBitsPerSecondThe edge bandwidth for given objects and filters.
edgeHitsPerSecondThe number of edge requests per second for given objects and filters.
originBitsPerSecondThe origin bandwidth for given objects and filters.
originHitsPerSecondThe number of origin requests per second for given objects and filters.
Summary metrics
edgeBitsPerSecondMaxThe peak edge bandwidth for given objects and filters.
edgeBytesTotalThe total volume of edge traffic for given objects and filters.
edgeHitsPerSecondMaxThe peak number of edge requests per second for given objects and filters.
edgeHitsTotalThe total number of edge requests for given objects and filters.
originBitsPerSecondMaxThe peak origin bandwidth for given objects and filters.
originBytesTotalThe total volume of origin traffic for given objects and filters.
originHitsPerSecondMaxThe peak number of origin requests per second for given objects and filters.
originHitsTotalThe total number of origin requests for given objects and filters.

POST request

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

Query parameters

ParameterTypeSampleDescription
Required
startString2020-06-26T13:40:00ZSpecifies 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.
endString2020-06-26T14:00:00ZSpecifies 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.
intervalEnumerationFIVE_MINUTESThe duration of each data record. Available values: MONTH, WEEK, DAY, HOUR, FIVE_MINUTES.

JSON request members

MemberTypeDescription
objectIdsArraySpecifies the set of cpcode values you want to report on.
objectIdsEnumerationAs an alternative to an array of ID values, specify all as a string for unfiltered data. Either way, objectIds is required.
metricsArrayThe 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 request

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

ParameterTypeSampleDescription
Required
startString2022-06-23T13:55:00ZSpecifies 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.
endString2022-06-23T14:15:00ZSpecifies 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.
intervalEnumerationFIVE_MINUTESThe duration of each data record. Available values: MONTH, WEEK, DAY, HOUR, FIVE_MINUTES.
Optional
allObjectIdsBooleantrueAs 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.
objectIdsString55232,‚Äč23433,‚Äč32433As 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.
metricsStringedgeBitsPerSecond,‚ÄčedgeBitsPerSecondMaxSpecifies 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.

JSON response

Status 200 application/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": {}
        }
    }
}

CSV response

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

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-api/v1/reports/ectraffic-by-time/versions/1"
        },
        {
            "rel": "versions",
            "href": "/reporting-api/v1/reports/ectraffic-by-time/versions"
        },
        {
            "rel": "all-reports",
            "href": "/reporting-api/v1/reports"
        },
        {
            "rel": "execute-report",
            "href": "/reporting-api/v1/reports/ectraffic-by-time/versions/1/report-data"
        }
    ]
}