estimatedecresponse-by-time

The following shows how to generate the estimatedecresponse-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 estimated origin status and edge status data: number of completed HTTP origin or edge requests received for each HTTP status code range (0xx, 1xx, 2xx, 3xx, 4xx, 5xx) per second. Applies to traffic tracked by the 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: 4 days

Available metrics

MetricDescription
Data metrics
edgeRequests0xxPerSecondThe number of edge requests per second with 0xx status code.
edgeRequests1xxPerSecondThe number of edge requests per second with 1xx status code.
edgeRequests2xxPerSecondThe number of edge requests per second with 2xx status code.
edgeRequests3xxPerSecondThe number of edge requests per second with 3xx status code.
edgeRequests4xxPerSecondThe number of edge requests per second with 4xx status code.
edgeRequests5xxPerSecondThe number of edge requests per second with 5xx status code.
originRequests0xxPerSecondThe number of origin requests per second with 0xx status code.
originRequests1xxPerSecondThe number of origin requests per second with 1xx status code.
originRequests2xxPerSecondThe number of origin requests per second with 2xx status code.
originRequests3xxPerSecondThe number of origin requests per second with 3xx status code.
originRequests4xxPerSecondThe number of origin requests per second with 4xx status code.
originRequests5xxPerSecondThe number of origin requests per second with 5xx status code.

POST request

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

Sample: /reporting-api/v1/reports/estimatedecresponse-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": [
        "edgeRequests0xxPerSecond",
        "edgeRequests1xxPerSecond",
        "edgeRequests2xxPerSecond",
        "edgeRequests3xxPerSecond",
        "edgeRequests4xxPerSecond",
        "edgeRequests5xxPerSecond",
        "originRequests0xxPerSecond",
        "originRequests1xxPerSecond",
        "originRequests2xxPerSecond",
        "originRequests3xxPerSecond",
        "originRequests4xxPerSecond",
        "originRequests5xxPerSecond"
    ]
}

GET request

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

Sample: /reporting-api/v1/reports/estimatedecresponse-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​=edgeRequests0xxPerSecond%2CedgeRequests1xxPerSecond

Query parameters

ParameterTypeSampleDescription
Required
startString2020-06-26T13:40: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.
endString2020-06-26T14:00:00ZSpecifies if unavailable reports should be shown.
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.
metricsStringedgeRequests0xxPerSecond,​edgeRequests1xxPerSecondSpecifies 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": "estimatedecresponse-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": "edgeRequests0xxPerSecond",
                "label": "Edge Requests 0xx/Sec"
            },
            {
                "name": "edgeRequests1xxPerSecond",
                "label": "Edge Requests 1xx/Sec"
            },
            {
                "name": "edgeRequests2xxPerSecond",
                "label": "Edge Requests 2xx/Sec"
            },
            {
                "name": "edgeRequests3xxPerSecond",
                "label": "Edge Requests 3xx/Sec"
            },
            {
                "name": "edgeRequests4xxPerSecond",
                "label": "Edge Requests 4xx/Sec"
            },
            {
                "name": "edgeRequests5xxPerSecond",
                "label": "Edge Requests 5xx/Sec"
            },
            {
                "name": "originRequests0xxPerSecond",
                "label": "Origin Requests 0xx/Sec"
            },
            {
                "name": "originRequests1xxPerSecond",
                "label": "Origin Requests 1xx/Sec"
            },
            {
                "name": "originRequests2xxPerSecond",
                "label": "Origin Requests 2xx/Sec"
            },
            {
                "name": "originRequests3xxPerSecond",
                "label": "Origin Requests 3xx/Sec"
            },
            {
                "name": "originRequests4xxPerSecond",
                "label": "Origin Requests 4xx/Sec"
            },
            {
                "name": "originRequests5xxPerSecond",
                "label": "Origin Requests 5xx/Sec"
            }
        ],
        "objectType": "cpcode",
        "objectIds": [
            "55232",
            "23433",
            "32433"
        ]
    },
    "data": [
        {
            "startdatetime": "2020-06-26T13:40:00Z",
            "edgeRequests0xxPerSecond": "2539.484693",
            "edgeRequests1xxPerSecond": "2610.793282",
            "edgeRequests2xxPerSecond": "3779.792133",
            "edgeRequests3xxPerSecond": "2805.92106",
            "edgeRequests4xxPerSecond": "3913.28434",
            "edgeRequests5xxPerSecond": "4639.72302",
            "originRequests0xxPerSecond": "516.087412",
            "originRequests1xxPerSecond": "1857.513552",
            "originRequests2xxPerSecond": "182.304836",
            "originRequests3xxPerSecond": "1752.718838",
            "originRequests4xxPerSecond": "2195.090434",
            "originRequests5xxPerSecond": "4818.679898"
        },
        {
            "startdatetime": "2020-06-26T13:45:00Z",
            "edgeRequests0xxPerSecond": "4611.853025",
            "edgeRequests1xxPerSecond": "1963.488511",
            "edgeRequests2xxPerSecond": "2294.634035",
            "edgeRequests3xxPerSecond": "2295.757956",
            "edgeRequests4xxPerSecond": "60.328855",
            "edgeRequests5xxPerSecond": "4809.367302",
            "originRequests0xxPerSecond": "3903.391138",
            "originRequests1xxPerSecond": "275.948464",
            "originRequests2xxPerSecond": "193.241247",
            "originRequests3xxPerSecond": "3946.758443",
            "originRequests4xxPerSecond": "3735.217743",
            "originRequests5xxPerSecond": "18.229912"
        },
        {
            "startdatetime": "2020-06-26T13:50:00Z",
            "edgeRequests0xxPerSecond": "1811.242722",
            "edgeRequests1xxPerSecond": "796.933637",
            "edgeRequests2xxPerSecond": "1605.480674",
            "edgeRequests3xxPerSecond": "4142.937104",
            "edgeRequests4xxPerSecond": "4270.875095",
            "edgeRequests5xxPerSecond": "2827.121281",
            "originRequests0xxPerSecond": "4594.35902",
            "originRequests1xxPerSecond": "1274.971554",
            "originRequests2xxPerSecond": "3736.943152",
            "originRequests3xxPerSecond": "1988.663038",
            "originRequests4xxPerSecond": "2986.312042",
            "originRequests5xxPerSecond": "2104.803109"
        },
        {
            "startdatetime": "2020-06-26T13:55:00Z",
            "edgeRequests0xxPerSecond": "541.755341",
            "edgeRequests1xxPerSecond": "1350.493158",
            "edgeRequests2xxPerSecond": "3747.860842",
            "edgeRequests3xxPerSecond": "3461.814182",
            "edgeRequests4xxPerSecond": "1458.976181",
            "edgeRequests5xxPerSecond": "3405.427904",
            "originRequests0xxPerSecond": "3170.159771",
            "originRequests1xxPerSecond": "222.773354",
            "originRequests2xxPerSecond": "1748.913461",
            "originRequests3xxPerSecond": "977.186068",
            "originRequests4xxPerSecond": "2000.901421",
            "originRequests5xxPerSecond": "2048.649798"
        }
    ],
    "summaryStatistics": {}
}

CSV response

Status 200 text/csv

Response Body:

#METADATA_START
name,​estimatedecresponse-by-time
version,​1
source,​estimatedecresponse-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

#SUMMARYSTATISTICS_END

#COLUMNS_START
startdatetime,​edgeRequests0xxPerSecond,​edgeRequests1xxPerSecond,​edgeRequests2xxPerSecond,​edgeRequests3xxPerSecond,​edgeRequests4xxPerSecond,​edgeRequests5xxPerSecond,​originRequests0xxPerSecond,​originRequests1xxPerSecond,​originRequests2xxPerSecond,​originRequests3xxPerSecond,​originRequests4xxPerSecond,​originRequests5xxPerSecond
#COLUMNS_END

#DATA_START
2020-06-26T13:40:00Z,2539.484693,​2610.793282,​3779.792133,​2805.92106,​3913.28434,​4639.72302,​516.087412,​1857.513552,​182.304836,​1752.718838,​2195.090434,​4818.679898
2020-06-26T13:45:00Z,4611.853025,​1963.488511,​2294.634035,​2295.757956,​60.328855,​4809.367302,​3903.391138,​275.948464,​193.241247,​3946.758443,​3735.217743,​18.229912
2020-06-26T13:50:00Z,1811.242722,​796.933637,​1605.480674,​4142.937104,​4270.875095,​2827.121281,​4594.35902,​1274.971554,​3736.943152,​1988.663038,​2986.312042,​2104.803109
2020-06-26T13:55:00Z,541.755341,​1350.493158,​3747.860842,​3461.814182,​1458.976181,​3405.427904,​3170.159771,​222.773354,​1748.913461,​977.186068,​2000.901421,​2048.649798
#DATA_END

Get report details

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

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

Status 200 application/json

Response body:

{
    "name": "estimatedecresponse-by-time",
    "description": "The estimated origin status and edge status data: number of completed HTTP origin or edge requests received for each HTTP status code range (0xx, 1xx, 2xx, 3xx, 4xx, 5xx) per second. Applies to traffic tracked by the Event Center.",
    "businessObjectName": "cpcode",
    "version": 1,
    "status": "PUBLISHED",
    "deprecated": false,
    "timeBased": true,
    "outputType": "FLAT",
    "requiredRoles": [
        "None"
    ],
    "available": true,
    "metrics": [
        {
            "name": "edgeRequests0xxPerSecond",
            "description": "The number of edge requests per second with 0xx status code.",
            "label": "Edge Requests 0xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeRequests1xxPerSecond",
            "description": "The number of edge requests per second with 1xx status code.",
            "label": "Edge Requests 1xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeRequests2xxPerSecond",
            "description": "The number of edge requests per second with 2xx status code.",
            "label": "Edge Requests 2xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeRequests3xxPerSecond",
            "description": "The number of edge requests per second with 3xx status code.",
            "label": "Edge Requests 3xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeRequests4xxPerSecond",
            "description": "The number of edge requests per second with 4xx status code.",
            "label": "Edge Requests 4xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "edgeRequests5xxPerSecond",
            "description": "The number of edge requests per second with 5xx status code.",
            "label": "Edge Requests 5xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originRequests0xxPerSecond",
            "description": "The number of origin requests per second with 0xx status code.",
            "label": "Origin Requests 0xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originRequests1xxPerSecond",
            "description": "The number of origin requests per second with 1xx status code.",
            "label": "Origin Requests 1xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originRequests2xxPerSecond",
            "description": "The number of origin requests per second with 2xx status code.",
            "label": "Origin Requests 2xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originRequests3xxPerSecond",
            "description": "The number of origin requests per second with 3xx status code.",
            "label": "Origin Requests 3xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originRequests4xxPerSecond",
            "description": "The number of origin requests per second with 4xx status code.",
            "label": "Origin Requests 4xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        },
        {
            "name": "originRequests5xxPerSecond",
            "description": "The number of origin requests per second with 5xx status code.",
            "label": "Origin Requests 5xx/Sec",
            "unit": "COUNT_PER_SECOND",
            "summaryStatistic": false
        }
    ],
    "groupOutlyingValues": {
        "enabled": false
    },
    "groupBy": [
        "startdatetime"
    ],
    "intervals": [
        "MONTH",
        "WEEK",
        "DAY",
        "HOUR",
        "FIVE_MINUTES"
    ],
    "dataRetentionDays": 4,
    "links": [
        {
            "rel": "self",
            "href": "/reporting-api/v1/reports/estimatedecresponse-by-time/versions/1"
        },
        {
            "rel": "versions",
            "href": "/reporting-api/v1/reports/estimatedecresponse-by-time/versions"
        },
        {
            "rel": "all-reports",
            "href": "/reporting-api/v1/reports"
        },
        {
            "rel": "execute-report",
            "href": "/reporting-api/v1/reports/estimatedecresponse-by-time/versions/1/report-data"
        }
    ]
}