Dns analytics report (#121)
* Add DNS Analytics report endpoint Add DNS Analytics report endpoint Add DNS Analytics report endpoint * Remove useless response error test * Add tests for DNS analytics report class methods * Implement methods for listing grouped by time metrics report
This commit is contained in:
committed by
GitHub
parent
06de5b0c04
commit
ffc3989607
31
tests/Fixtures/Endpoints/getDNSAnalyticsReportByTime.json
Normal file
31
tests/Fixtures/Endpoints/getDNSAnalyticsReportByTime.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"result": {
|
||||
"rows": 2,
|
||||
"data": [
|
||||
{
|
||||
"metrics": [[911, 993]]
|
||||
}
|
||||
],
|
||||
"data_lag": 0,
|
||||
"min": {},
|
||||
"max": {},
|
||||
"totals": {
|
||||
"queryCount": 455312
|
||||
},
|
||||
"time_intervals": [
|
||||
["2020-02-10T11:19:00Z", "2020-02-10T11:19:59Z"],
|
||||
["2020-02-10T11:20:00Z", "2020-02-10T11:20:59Z"]
|
||||
],
|
||||
"query": {
|
||||
"dimensions": [],
|
||||
"metrics": ["queryCount"],
|
||||
"since": "2020-02-01T00:00:00Z",
|
||||
"until": "2020-02-28T23:59:59Z",
|
||||
"time_delta": "minute",
|
||||
"limit": 2
|
||||
}
|
||||
},
|
||||
"success": true,
|
||||
"errors": [],
|
||||
"messages": []
|
||||
}
|
||||
34
tests/Fixtures/Endpoints/getDNSAnalyticsReportTable.json
Normal file
34
tests/Fixtures/Endpoints/getDNSAnalyticsReportTable.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"result": {
|
||||
"rows": 1,
|
||||
"data": [
|
||||
{
|
||||
"dimensions": ["thrdld.sld.tld", "TXT", "NOERROR"],
|
||||
"metrics": [2]
|
||||
}
|
||||
],
|
||||
"data_lag": 0,
|
||||
"min": {},
|
||||
"max": {},
|
||||
"totals": {
|
||||
"queryCount": 2
|
||||
},
|
||||
"query": {
|
||||
"dimensions": ["queryName", "queryType", "responseCode"],
|
||||
"metrics": ["queryCount"],
|
||||
"filters": "responseCode==NOERROR AND queryType==TXT",
|
||||
"sort": [
|
||||
{
|
||||
"Id": "queryCount",
|
||||
"Desc": true
|
||||
}
|
||||
],
|
||||
"since": "2020-02-01T00:00:00Z",
|
||||
"until": "2020-02-28T23:59:59Z",
|
||||
"limit": 10000
|
||||
}
|
||||
},
|
||||
"success": true,
|
||||
"errors": [],
|
||||
"messages": []
|
||||
}
|
||||
Reference in New Issue
Block a user