The actionstaken-by-cpcode report is being discontinued
This report is deprecated and will be deactivated on May 14, 2025. As an alternative, use DataStream 2.
The following shows how to generate the actionstaken-by-cpcode
report using either the Reporting API's Generate a report POST or the Get a cacheable report GET operations. 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, as shown in Get details. See also other available reports.
Report definition
Provides redirect, blocked and Akamai override hits.
You can configure the aggregation interval for each data record. Available interval
values are: FIVE_MINUTES
, HOUR
, DAY
, WEEK
, MONTH
.
Business object: cpcode
Data available for: 90 days
Required products: Enhanced Proxy Detection with GeoGuard
Available metrics
Metric | Description |
---|---|
Data metrics | |
blockedHits | Blocked Hits. |
redirectHits | Redirect Hits. |
akamaiOverride | Akamai Override. |
Available filters
Filter | Type | Description |
---|---|---|
Optional filters | ||
delivery_type_enhanced | Enumeration | Distinguishes secure from non-secure traffic. |
secure_standard : Secure standard traffic. | ||
non_secure : Non-secure traffic. | ||
secure_shared : Secure shared traffic. | ||
secure_premium : Secure premium traffic. | ||
ip_version | Enumeration | The IP for which the report is shown |
ipv4 : IP address in v4 format. | ||
ipv6 : IP address in v6 format. | ||
http_version | Enumeration | HTTP version. |
https1.1 | ||
http2 | ||
http3 | ||
http1.1 | ||
cpcode | String | Content Provider code. |
POST request
POST /reporting-api/v1/reports/actionstaken-by-cpcode/versions/1/report-data{?start,end,interval}
Sample: /reporting-api/v1/reports/actionstaken-by-cpcode/versions/1/report-data?start=2019-10-08T13%3A40%3A00Z&end=2019-10-08T14%3A00%3A00Z&interval=FIVE_MINUTES
Query parameters
Parameter | Type | Sample | Description |
---|---|---|---|
Required | |||
start | String | 2022-06-23T13:55: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 | 2022-06-23T14:15: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, Enumeration | Specifies the set of cpcode values you want to report on. 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. |
filters | Map of arrays | Specifies a set of custom filters, with each filter's name keying an array with each filter's set of values. |
Request body:
{
"objectIds": ["123456", "654321"],
"metrics": ["akamaiOverride"],
"filters": {
"ip_version": ["ipv4"]
}
}
GET request
GET /reporting-api/v1/reports/actionstaken-by-cpcode/versions/1/report-data{?start,end,interval,objectIds,allObjectIds,metrics,filters}
Sample: /reporting-api/v1/reports/actionstaken-by-cpcode/versions/1/report-data?start=2019-10-08T13%3A40%3A00Z&end=2019-10-08T14%3A00%3A00Z&interval=FIVE_MINUTES&objectIds=55232,23433,32433&metrics=edgeHitsPerSecond%2CedgeHitsPerSecondMax&filters=delivery_type%3Dsecure%2Cdelivery_type%3Dnon-secure%2Cip_version%3Dipv4%2Cip_version%3Dipv6
Query parameters
Parameter | Type | Sample | Description |
---|---|---|---|
Required | |||
start | String | 2022-06-23T13:55: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 | 2022-06-23T14:15: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: 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 | blockedHits,redirectHits | 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. |
filters | String | delivery_type=secure_premium,delivery_type=non-secure,ip_version=ipv4,ip_version=ipv6 | Specifies criteria to filter the report's data. The set of available filters depends on the type of report. Separate each filter name and value with an equals (= ) character, and separate various name/value pairs with commas (, ). To specify more than one filter value, repeat the filter name. See the accompanying example for guidance. URL-encode the entire value in the GET request. |
JSON response
Status 200 application/json
Response body:
{
"metadata": {
"name": "actionstaken-by-cpcode",
"version": "1",
"outputType": "FLAT",
"groupBy": [
"cpcode"
],
"interval": "FIVE_MINUTES",
"start": "2022-03-18T00:00:00Z",
"end": "2022-03-19T00:00:00Z",
"availableDataEnds": "2022-03-21T16:00:00Z",
"suggestedRetryTime": null,
"rowCount": 3,
"filters": [],
"columns": [
{
"name": "groupBy",
"label": "cpcode"
},
{
"name": "blockedHits",
"label": "Blocked Hits"
},
{
"name": "redirectHits",
"label": "Redirect Hits"
},
{
"name": "akamaiOverride",
"label": "Akamai Override Hits"
}
],
"objectType": "cpcode",
"objectIds": [
"123456",
"654321",
"987654"
]
},
"data": [
{
"cpcode": "123456",
"akamaiOverride": "0",
"blockedHits": "3",
"redirectHits": "4"
},
{
"cpcode": "654321",
"akamaiOverride": "0",
"blockedHits": "8",
"redirectHits": "7"
}
],
"summaryStatistics": {}
}
CSV response
Status 200 text/csv
Response Body:
#METADATA_START
name,actionstaken-by-cpcode
version,1
source,actionstaken-by-cpcode/versions/1
groupBy,cpcode
start,2022-03-18T00:00:00Z
end,2022-03-19T00:00:00Z
interval,FIVE_MINUTES
availableDataEnds,2022-03-21T16:00:00Z
suggestedRetryTime,
rowCount,3
objectType,cpcode
objectIds,123456,654321,987654
#METADATA_END
#SUMMARYSTATISTICS_START
#SUMMARYSTATISTICS_END
#COLUMNS_START
cpcode,blockedHits,redirectHits,akamaiOverride
#COLUMNS_END
#DATA_START
123456,0,3,4
654321,0,8,7
987654,0,0,0
#DATA_END
Get report details
This sample Get a report type operation gets the same information you need to run the hits-by-time
report as provided in this reference documentation, but available dynamically to your API client application.
GET /reporting-api/v1/reports/actionstaken-by-cpcode/versions/1
Status 200 application/json
Response body:
{
"name": "actionstaken-by-cpcode",
"businessObjectName": "cpcode",
"version": 1,
"status": "DEPRECATED,
"deprecated": true,
"internalOnly": false,
"timeBased": false,
"supportsPagination": false,
"outputType": "FLAT",
"requiredProducts": [
"Enhanced Proxy Detection with GeoGuard"
],
"requiredRoles": [
"Reports - All privileges",
"Reports - View only",
"OTA App User"
],
"available": true,
"metrics": [
{
"name": "blockedHits",
"label": "Blocked Hits",
"unit": "COUNT",
"summaryStatistic": false
},
{
"name": "redirectHits",
"label": "Redirect Hits",
"unit": "COUNT",
"summaryStatistic": false
},
{
"name": "akamaiOverride",
"label": "Akamai Override Hits",
"unit": "COUNT",
"summaryStatistic": false
}
],
"groupOutlyingValues": {
"enabled": false
},
"groupBy": [
"cpcode"
],
"filters": [
{
"name": "ip_version",
"type": "enum",
"values": [
{
"value": "ipv4"
},
{
"value": "ipv6"
}
],
"required": false
},
{
"name": "http_version",
"type": "enum",
"values": [
{
"value": "https1.1"
},
{
"value": "http2"
},
{
"value": "http3"
},
{
"value": "http1.1"
}
],
"required": false
},
{
"name": "delivery_type_enhanced",
"type": "enum",
"values": [
{
"value": "secure_shared"
},
{
"value": "secure_standard"
},
{
"value": "secure_premium"
},
{
"value": "non_secure"
}
],
"required": false
}
],
"intervals": [
"MONTH",
"WEEK",
"DAY",
"HOUR",
"FIVE_MINUTES"
],
"dataRetentionDays": 90,
"links": [
{
"rel": "self",
"href": "/reporting-api/v1/reports/actionstaken-by-cpcode/versions/1"
},
{
"rel": "versions",
"href": "/reporting-api/v1/reports/actionstaken-by-cpcode/versions"
},
{
"rel": "all-reports",
"href": "/reporting-api/v1/reports"
},
{
"rel": "execute-report",
"href": "/reporting-api/v1/reports/actionstaken-by-cpcode/versions/1/report-data"
}
]
}