The following shows how to generate the load-balancing-dns-traffic-property-all-datacenters-demand-summary
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
Summary of Demand for a Property by DataCenter.
Business object: fpdomain
Data available for: 90 days
Available metrics
Metric | Description |
---|---|
Data metrics | |
actualLoad | Percentage of traffic actually sent for each Traffic Target. |
alive | Target Alive = 1 or Target Down = 0. |
hits | The number of requests for the associated URL. |
requestedLoad | Percentage of traffic requested for each Traffic Target. |
trafficTarget | The Traffic Target. |
POST request
POST /reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3/report-data{?start,end}
Sample: /reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3/report-data?start=2020-05-01T00%3A00%3A00Z&end=2020-06-01T00%3A00%3A00Z
Query parameters
Parameter | Type | Sample | Description |
---|---|---|---|
Required | |||
start | String | 2020-05-01T00:00: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 | 2020-06-01T00:00: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. |
JSON request members
Member | Type | Description |
---|---|---|
objectIds | Array | Specifies the set of fpdomain values you want to report on. |
objectIds | Enumeration | 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. |
Request body:
{
"objectIds": [
"55232",
"23433",
"32433"
],
"metrics": [
"actualLoad",
"alive",
"hits",
"requestedLoad",
"trafficTarget"
]
}
GET request
GET /reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3/report-data{?start,end,objectIds,allObjectIds,metrics}
Sample: /reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3/report-data?start=2020-05-01T00%3A00%3A00Z&end=2020-06-01T00%3A00%3A00Z&objectIds=55232,23433,32433&metrics=actualLoad%2Calive
Query parameters
Parameter | Type | Sample | Description |
---|---|---|---|
Required | |||
start | String | 2020-05-01T00:00: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. |
end | String | 2020-06-01T00:00:00Z | Specifies if unavailable reports should be shown. |
Optional | |||
allObjectIds | Boolean | true | As an alternative to objectIds , enabling this generates a report that includes all IDs available for the fpdomain 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 fpdomain objectType you want to report on, formatted as a comma-delimited list. |
metrics | String | actualLoad,alive | 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-property-all-datacenters-demand-summary",
"version": "3",
"outputType": "FLAT",
"groupBy": [
"trafficTarget"
],
"start": "2020-05-01T00:00:00Z",
"end": "2020-06-01T00:00:00Z",
"availableDataEnds": null,
"suggestedRetryTime": null,
"rowCount": 4,
"filters": [],
"columns": [
{
"name": "groupBy",
"label": "trafficTarget"
},
{
"name": "actualLoad",
"label": "Actual Load Percentage"
},
{
"name": "alive",
"label": "Alive"
},
{
"name": "hits",
"label": "DNS Requests"
},
{
"name": "requestedLoad",
"label": "Requested Load"
},
{
"name": "trafficTarget",
"label": "Traffic Target"
}
],
"objectType": "fpdomain",
"objectIds": [
"55232",
"23433",
"32433"
]
},
"data": [
{
"trafficTarget": 56273456,
"actualLoad": 21,
"alive": "Up",
"hits": "123",
"requestedLoad": 21
},
{
"trafficTarget": 54273611,
"actualLoad": 3.15,
"alive": "Up",
"hits": "1223",
"requestedLoad": 3.15
},
{
"trafficTarget": "Other",
"actualLoad": "Other",
"alive": "Other",
"hits": "Other",
"requestedLoad": "Other"
},
{
"trafficTarget": 922300,
"actualLoad": 82,
"alive": "Up",
"hits": "812",
"requestedLoad": 82
}
],
"summaryStatistics": {}
}
CSV response
Status 200 text/csv
Response Body:
#METADATA_START
name,load-balancing-dns-traffic-property-all-datacenters-demand-summary
version,3
source,load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3
groupBy,trafficTarget
start,2020-05-01T00:00:00Z
end,2020-06-01T00:00:00Z
availableDataEnds,
suggestedRetryTime,
rowCount,4
objectType,fpdomain
objectIds,55232,23433,32433
#METADATA_END
#SUMMARYSTATISTICS_START
#SUMMARYSTATISTICS_END
#COLUMNS_START
trafficTarget,actualLoad,alive,hits,requestedLoad,trafficTarget
#COLUMNS_END
#DATA_START
56273456,21,Up,123,21
54273611,3.15,Up,1223,3.15
Other,Other,Other,Other,Other
922300,82,Up,812,82
#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-property-all-datacenters-demand-summary
report as provided in this reference documentation, but available dynamically to your API client application.
GET /reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3
Status 200 application/json
Response body:
{
"name": "load-balancing-dns-traffic-property-all-datacenters-demand-summary",
"description": "Summary of Demand for a Property by DataCenter.",
"businessObjectName": "fpdomain",
"version": 3,
"status": "PUBLISHED",
"deprecated": false,
"timeBased": false,
"outputType": "FLAT",
"available": true,
"metrics": [
{
"name": "actualLoad",
"description": "Percentage of traffic actually sent for each Traffic Target.",
"label": "Actual Load Percentage",
"unit": "STRING",
"summaryStatistic": false
},
{
"name": "alive",
"description": "Target Alive = 1 or Target Down = 0.",
"label": "Alive",
"unit": "STRING",
"summaryStatistic": false
},
{
"name": "hits",
"description": "The number of requests for the associated URL.",
"label": "DNS Requests",
"unit": "STRING",
"summaryStatistic": false
},
{
"name": "requestedLoad",
"description": "Percentage of traffic requested for each Traffic Target.",
"label": "Requested Load",
"unit": "STRING",
"summaryStatistic": false
},
{
"name": "trafficTarget",
"description": "The Traffic Target.",
"label": "Traffic Target",
"unit": "STRING",
"summaryStatistic": false
}
],
"groupOutlyingValues": {
"enabled": false
},
"groupBy": [
"trafficTarget"
],
"intervals": [
"HOUR",
"DAY",
"FIVE_MINUTES"
],
"dataRetentionDays": 90,
"links": [
{
"rel": "self",
"href": "/reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3"
},
{
"rel": "versions",
"href": "/reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions"
},
{
"rel": "all-reports",
"href": "/reporting-api/v1/reports"
},
{
"rel": "execute-report",
"href": "/reporting-api/v1/reports/load-balancing-dns-traffic-property-all-datacenters-demand-summary/versions/3/report-data"
}
]
}