load-balancing-dns-traffic-by-datacenter

The following shows how to generate the load-balancing-dns-traffic-by-datacenter 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 datacenters.

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

MetricDescription
Data metrics
hitsDNS Requests.
Summary metrics
avg_hitsAverage DNS Requests.
max_hitsMaximum (Peak) DNS Requests.
min_hitsMinimum DNS Requests.
total_hitsTotal DNS Requests.

POST request

POST /reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4/report-data{?start,end,interval}

Sample: /reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4/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-by-datacenter/versions/4/report-data?start=2023-05-18&end=2023-05-22&interval=DAY

Query parameters

ParameterTypeSampleDescription
Required
startString2023-05-22T13: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.
endString2023-05-22T14: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: HOUR, DAY, FIVE_MINUTES.

JSON request members

MemberTypeDescription
objectIdsArraySpecifies the single fpdomain value you want to report on.
metricsArrayThe set of desired metrics. If omitted, the report includes all available metrics.

Request body:

{
    "objectIds": [
        "wwww.example.com"
    ],
    "metrics": [
        "avg_hits",
        "hits",
        "max_hits",
        "min_hits",
        "total_hits"
    ]
}

GET request

GET /reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4/report-data{?start,end,interval,objectIds,metrics}

Sample: /reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4/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

ParameterTypeSampleDescription
Required
startString2023-05-22T13: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.
endString2023-05-22T14: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: HOUR, DAY, FIVE_MINUTES.
Optional
objectIdsStringwww.example.comSpecifies the unique ID for the single fpdomain objectType you want to report on.
metricsStringavg_hits,hitsSpecifies 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-by-datacenter",
        "version": "4",
        "outputType": "HIERARCHICAL",
        "groupBy": [
            "startdatetime",
            "datacenter"
        ],
        "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": "datacenter"
            },
            {
                "name": "hits",
                "label": "DNS Requests"
            }
        ],
        "objectType": "fpdomain",
        "objectIds": [
            "www.example.com"
        ]
    },
    "data": [
        {
            "startdatetime": "2023-05-22T13:55:00Z",
            "data": [
                {
                    "datacenter": "Datacenter_1",
                    "hits": "3706"
                },
                {
                    "datacenter": "Datacenter_5",
                    "hits": "89"
                },
                {
                    "datacenter": "Datacenter_7",
                    "hits": "1440"
                },
                {
                    "datacenter": "Datacenter_11",
                    "hits": "4875"
                }
            ]
        },
        {
            "startdatetime": "2023-05-22T14:00:00Z",
            "data": [
                {
                    "datacenter": "Datacenter_1",
                    "hits": "1026"
                },
                {
                    "datacenter": "Datacenter_5",
                    "hits": "981"
                },
                {
                    "datacenter": "Datacenter_7",
                    "hits": "3966"
                },
                {
                    "datacenter": "Datacenter_11",
                    "hits": "3306"
                }
            ]
        },
        {
            "startdatetime": "2023-05-22T14:05:00Z",
            "data": [
                {
                    "datacenter": "Datacenter_1",
                    "hits": "1947"
                },
                {
                    "datacenter": "Datacenter_5",
                    "hits": "395"
                },
                {
                    "datacenter": "Datacenter_7",
                    "hits": "2718"
                },
                {
                    "datacenter": "Datacenter_11",
                    "hits": "1760"
                }
            ]
        },
        {
            "startdatetime": "2023-05-22T14:10:00Z",
            "data": [
                {
                    "datacenter": "Datacenter_1",
                    "hits": "1247"
                },
                {
                    "datacenter": "Datacenter_5",
                    "hits": "3796"
                },
                {
                    "datacenter": "Datacenter_7",
                    "hits": "4690"
                },
                {
                    "datacenter": "Datacenter_11",
                    "hits": "4204"
                }
            ]
        }
    ],
    "summaryStatistics": {
        "avg_hits": {
            "Datacenter_1": {
                "value": "454",
                "details": {}
            },
            "Datacenter_5": {
                "value": "4979",
                "details": {}
            },
            "Datacenter_7": {
                "value": "2213",
                "details": {}
            },
            "Datacenter_11": {
                "value": "1416",
                "details": {}
            }
        },
        "max_hits": {
            "Datacenter_1": {
                "value": "216",
                "details": {}
            },
            "Datacenter_5": {
                "value": "506",
                "details": {}
            },
            "Datacenter_7": {
                "value": "3330",
                "details": {}
            },
            "Datacenter_11": {
                "value": "3786",
                "details": {}
            }
        },
        "min_hits": {
            "Datacenter_1": {
                "value": "831",
                "details": {}
            },
            "Datacenter_5": {
                "value": "4995",
                "details": {}
            },
            "Datacenter_7": {
                "value": "4978",
                "details": {}
            },
            "Datacenter_11": {
                "value": "2506",
                "details": {}
            }
        },
        "total_hits": {
            "Datacenter_1": {
                "value": "3341",
                "details": {}
            },
            "Datacenter_5": {
                "value": "1721",
                "details": {}
            },
            "Datacenter_7": {
                "value": "2259",
                "details": {}
            },
            "Datacenter_11": {
                "value": "4088",
                "details": {}
            }
        }
    }
}

CSV response

Status 200 text/csv

Response Body:

#METADATA_START
name,load-balancing-dns-traffic-by-datacenter
version,4
source,load-balancing-dns-traffic-by-datacenter/versions/4
groupBy,startdatetime,datacenter
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,Datacenter_1,454
avg_hits,Datacenter_5,4979
avg_hits,Datacenter_7,2213
avg_hits,Datacenter_11,1416
max_hits,Datacenter_1,216
max_hits,Datacenter_5,506
max_hits,Datacenter_7,3330
max_hits,Datacenter_11,3786
min_hits,Datacenter_1,831
min_hits,Datacenter_5,4995
min_hits,Datacenter_7,4978
min_hits,Datacenter_11,2506
total_hits,Datacenter_1,3341
total_hits,Datacenter_5,1721
total_hits,Datacenter_7,2259
total_hits,Datacenter_11,4088
#SUMMARYSTATISTICS_END

#COLUMNS_START
startdatetime,datacenter,hits
#COLUMNS_END

#DATA_START
2023-05-22T13:55:00Z,Datacenter_1,3706
2023-05-22T13:55:00Z,Datacenter_5,89
2023-05-22T13:55:00Z,Datacenter_7,1440
2023-05-22T13:55:00Z,Datacenter_11,4875
2023-05-22T14:00:00Z,Datacenter_1,1026
2023-05-22T14:00:00Z,Datacenter_5,981
2023-05-22T14:00:00Z,Datacenter_7,3966
2023-05-22T14:00:00Z,Datacenter_11,3306
2023-05-22T14:05:00Z,Datacenter_1,1947
2023-05-22T14:05:00Z,Datacenter_5,395
2023-05-22T14:05:00Z,Datacenter_7,2718
2023-05-22T14:05:00Z,Datacenter_11,1760
2023-05-22T14:10:00Z,Datacenter_1,1247
2023-05-22T14:10:00Z,Datacenter_5,3796
2023-05-22T14:10:00Z,Datacenter_7,4690
2023-05-22T14:10:00Z,Datacenter_11,4204
#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-by-datacenter report as provided in this reference documentation, but available dynamically to your API client application.

GET /reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4

Status 200 application/json

Response body:

{
    "name": "load-balancing-dns-traffic-by-datacenter",
    "description": "Traffic for a Domain by all datacenters.",
    "businessObjectName": "fpdomain",
    "version": 4,
    "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",
        "datacenter"
    ],
    "intervals": [
        "HOUR",
        "DAY",
        "FIVE_MINUTES"
    ],
    "dataRetentionDays": 90,
    "links": [
        {
            "rel": "self",
            "href": "/reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4"
        },
        {
            "rel": "versions",
            "href": "/reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions"
        },
        {
            "rel": "all-reports",
            "href": "/reporting-api/v1/reports"
        },
        {
            "rel": "execute-report",
            "href": "/reporting-api/v1/reports/load-balancing-dns-traffic-by-datacenter/versions/4/report-data"
        }
    ]
}