The following shows how to generate the load-balancing-dns-traffic-datacenter-all-properties
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
Traffic for a Domain by all properties.
This report allows you to configure the aggregation interval for each data record. Available interval
values are: HOUR
, DAY
, FIVE_MINUTES
.
Business object: fpdomain
Data available for: 90 days
Available metrics
Metric | Description | |
---|---|---|
Data metrics | ||
hits | DNS Requests. | |
Summary metrics | ||
avg_hits | Average DNS Requests. | |
max_hits | Maximum (Peak) DNS Requests. | |
min_hits | Minimum DNS Requests. | |
total_hits | Total DNS Requests. |
POST request
POST /reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2/report-data{?start,end,interval}
Sample: /reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2/report-data?start=2023-05-22T13%3A55%3A00Z&end=2023-05-22T14%3A15%3A00Z&interval=FIVE_MINUTES
For other granularity, you need to adjust start and end dates:
Sample with longer interval: /reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2/report-data?start=2023-05-18&end=2023-05-22&interval=DAY
Query parameters
Parameter | Type | Sample | Description |
---|---|---|---|
Required | |||
start | String | 2023-05-22T13: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 | 2023-05-22T14: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: HOUR , DAY , FIVE_MINUTES . |
JSON request members
Member | Type | Description |
---|---|---|
objectIds | Array | Specifies the single fpdomain value you want to report on. |
metrics | Array | The set of desired metrics. If omitted, the report includes all available metrics. |
Request body:
{
"objectIds": [
"www.example.com"
],
"metrics": [
"avg_hits",
"hits",
"max_hits",
"min_hits",
"total_hits"
]
}
GET request
GET /reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2/report-data{?start,end,interval,objectIds,metrics}
Sample: /reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2/report-data?start=2023-05-22T13%3A55%3A00Z&end=2023-05-22T14%3A15%3A00Z&interval=FIVE_MINUTES&objectIds=www.example.com&metrics=avg_hits%2Chits
Query parameters
Parameter | Type | Sample | Description |
---|---|---|---|
Required | |||
start | String | 2023-05-22T13: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 | 2023-05-22T14: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: HOUR , DAY , FIVE_MINUTES . |
Optional | |||
objectIds | String | 55232 | Specifies the unique ID for the single fpdomain objectType you want to report on. |
metrics | String | avg_hits,hits | 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. |
JSON response
Status 200 application/json
Response body:
{
"metadata": {
"name": "load-balancing-dns-traffic-datacenter-all-properties",
"version": "2",
"outputType": "HIERARCHICAL",
"groupBy": [
"startdatetime",
"property"
],
"interval": "FIVE_MINUTES",
"start": "2023-05-22T13:55:00Z",
"end": "2023-05-22T14:15:00Z",
"availableDataEnds": null,
"suggestedRetryTime": null,
"rowCount": 4,
"filters": [],
"columns": [
{
"name": "groupBy",
"label": "startdatetime"
},
{
"name": "groupBy",
"label": "property"
},
{
"name": "hits",
"label": "DNS Requests"
}
],
"objectType": "fpdomain",
"objectIds": [
"www.example.com"
]
},
"data": [
{
"startdatetime": "2023-05-22T13:55:00Z",
"data": [
{
"property": "Property_1",
"hits": "348"
},
{
"property": "Property_12",
"hits": "482"
},
{
"property": "Property_20",
"hits": "2195"
},
{
"property": "Property_35",
"hits": "2459"
}
]
},
{
"startdatetime": "2023-05-22T14:00:00Z",
"data": [
{
"property": "Property_1",
"hits": "880"
},
{
"property": "Property_12",
"hits": "2881"
},
{
"property": "Property_20",
"hits": "3539"
},
{
"property": "Property_35",
"hits": "3217"
}
]
},
{
"startdatetime": "2023-05-22T14:05:00Z",
"data": [
{
"property": "Property_1",
"hits": "3469"
},
{
"property": "Property_12",
"hits": "3253"
},
{
"property": "Property_20",
"hits": "478"
},
{
"property": "Property_35",
"hits": "2350"
}
]
},
{
"startdatetime": "2023-05-22T14:10:00Z",
"data": [
{
"property": "Property_1",
"hits": "2862"
},
{
"property": "Property_12",
"hits": "4309"
},
{
"property": "Property_20",
"hits": "1467"
},
{
"property": "Property_35",
"hits": "1442"
}
]
}
],
"summaryStatistics": {
"avg_hits": {
"Property_1": {
"value": "1492",
"details": {}
},
"Property_12": {
"value": "1284",
"details": {}
},
"Property_20": {
"value": "524",
"details": {}
},
"Property_35": {
"value": "612",
"details": {}
}
},
"max_hits": {
"Property_1": {
"value": "3953",
"details": {}
},
"Property_12": {
"value": "3318",
"details": {}
},
"Property_20": {
"value": "3550",
"details": {}
},
"Property_35": {
"value": "1576",
"details": {}
}
},
"min_hits": {
"Property_1": {
"value": "4774",
"details": {}
},
"Property_12": {
"value": "1529",
"details": {}
},
"Property_20": {
"value": "436",
"details": {}
},
"Property_35": {
"value": "431",
"details": {}
}
},
"total_hits": {
"Property_1": {
"value": "859",
"details": {}
},
"Property_12": {
"value": "4685",
"details": {}
},
"Property_20": {
"value": "4715",
"details": {}
},
"Property_35": {
"value": "952",
"details": {}
}
}
}
}
CSV response
Status 200 text/csv
Response Body:
#METADATA_START
name,load-balancing-dns-traffic-datacenter-all-properties
version,2
source,load-balancing-dns-traffic-datacenter-all-properties/versions/2
groupBy,startdatetime,property
start,2023-05-22T13:55:00Z
end,2023-05-22T14:15:00Z
interval,`FIVE_MINUTES`
availableDataEnds,
suggestedRetryTime,
rowCount,4
objectType,fpdomain
objectIds,www.example.com
#METADATA_END
#SUMMARYSTATISTICS_START
avg_hits,Property_1,1492
avg_hits,Property_12,1284
avg_hits,Property_20,524
avg_hits,Property_35,612
max_hits,Property_1,3953
max_hits,Property_12,3318
max_hits,Property_20,3550
max_hits,Property_35,1576
min_hits,Property_1,4774
min_hits,Property_12,1529
min_hits,Property_20,436
min_hits,Property_35,431
total_hits,Property_1,859
total_hits,Property_12,4685
total_hits,Property_20,4715
total_hits,Property_35,952
#SUMMARYSTATISTICS_END
#COLUMNS_START
startdatetime,property,hits
#COLUMNS_END
#DATA_START
2023-05-22T13:55:00Z,Property_1,348
2023-05-22T13:55:00Z,Property_12,482
2023-05-22T13:55:00Z,Property_20,2195
2023-05-22T13:55:00Z,Property_35,2459
2023-05-22T14:00:00Z,Property_1,880
2023-05-22T14:00:00Z,Property_12,2881
2023-05-22T14:00:00Z,Property_20,3539
2023-05-22T14:00:00Z,Property_35,3217
2023-05-22T14:05:00Z,Property_1,3469
2023-05-22T14:05:00Z,Property_12,3253
2023-05-22T14:05:00Z,Property_20,478
2023-05-22T14:05:00Z,Property_35,2350
2023-05-22T14:10:00Z,Property_1,2862
2023-05-22T14:10:00Z,Property_12,4309
2023-05-22T14:10:00Z,Property_20,1467
2023-05-22T14:10:00Z,Property_35,1442
#DATA_END
Get report details
This sample Get a report type operation gets the same information you need to run the load-balancing-dns-traffic-datacenter-all-properties
report as provided in this reference documentation, but available dynamically to your API client application.
GET /reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2
Status 200 application/json
Response body:
{
"name": "load-balancing-dns-traffic-datacenter-all-properties",
"description": "Traffic for a Domain by all properties.",
"businessObjectName": "fpdomain",
"version": 2,
"status": "PUBLISHED",
"deprecated": false,
"timeBased": true,
"supportsPagination": false,
"outputType": "HIERARCHICAL",
"available": true,
"metrics": [
{
"name": "avg_hits",
"description": "Average DNS Requests.",
"label": "Average DNS Requests",
"unit": "COUNT",
"summaryStatistic": true
},
{
"name": "hits",
"description": "DNS Requests.",
"label": "DNS Requests",
"unit": "COUNT",
"summaryStatistic": false
},
{
"name": "max_hits",
"description": "Maximum (Peak) DNS Requests.",
"label": "Maximum DNS Requests",
"unit": "COUNT",
"summaryStatistic": true
},
{
"name": "min_hits",
"description": "Minimum DNS Requests.",
"label": "Minimum DNS Requests",
"unit": "COUNT",
"summaryStatistic": true
},
{
"name": "total_hits",
"description": "Total DNS Requests.",
"label": "Total DNS Requests",
"unit": "COUNT",
"summaryStatistic": true
}
],
"groupOutlyingValues": {
"enabled": false
},
"groupBy": [
"startdatetime",
"property"
],
"intervals": [
"HOUR",
"DAY",
"FIVE_MINUTES"
],
"dataRetentionDays": 90,
"links": [
{
"rel": "self",
"href": "/reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2"
},
{
"rel": "versions",
"href": "/reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions"
},
{
"rel": "all-reports",
"href": "/reporting-api/v1/reports"
},
{
"rel": "execute-report",
"href": "/reporting-api/v1/reports/load-balancing-dns-traffic-datacenter-all-properties/versions/2/report-data"
}
]
}