-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding limit query parameter origin inspector (#568)
* Added limit query parameter to origin inspector * Change description of limit field or origin/domain inspector --------- Co-authored-by: Kevin P. Fleming <[email protected]>
- Loading branch information
1 parent
a84ac0d
commit 58e4f6e
Showing
4 changed files
with
57 additions
and
41 deletions.
There are no files selected for viewing
87 changes: 48 additions & 39 deletions
87
fastly/fixtures/origin_inspector/metrics_for_service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,50 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
User-Agent: | ||
- FastlyGo/6.0.1 (+github.com/fastly/go-fastly; go1.17.2) | ||
url: https://api.fastly.com/metrics/origins/services/kKJb5bOFI47uHeBVluGfX1?cursor=&datacenter=LHR%2CJFK&downsample=day&end=1644796800&group_by=host&host=host01&metric=responses%2Cstatus_2xx®ion=europe%2Cusa&start=1644624000 | ||
method: GET | ||
response: | ||
body: | | ||
{"data":[{"dimensions":{"host":"host01"},"values":[{"responses":26795476,"status_2xx":26750746,"timestamp":1644624000},{"responses":27071107,"status_2xx":27026758,"timestamp":1644710400}]}],"meta":{"start":"2022-02-12T00:00:00Z","end":"2022-02-14T00:00:00Z","downsample":"day","metric":"responses,status_2xx","limit":100,"next_cursor":"","sort":"host","group_by":"host","filters":{"datacenters":"LHR,JFK","hosts":"host01","regions":"europe,usa"}},"status":"success"} | ||
headers: | ||
Accept-Ranges: | ||
- bytes | ||
Content-Length: | ||
- "471" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Tue, 15 Feb 2022 11:09:41 GMT | ||
Status: | ||
- 200 OK | ||
Strict-Transport-Security: | ||
- max-age=31536000 | ||
Vary: | ||
- Accept-Encoding | ||
Via: | ||
- 1.1 varnish, 1.1 varnish | ||
X-Cache: | ||
- MISS, MISS | ||
X-Cache-Hits: | ||
- 0, 0 | ||
X-Served-By: | ||
- cache-control-slwdc9037-CONTROL-SLWDC, cache-lon4281-LON | ||
X-Timer: | ||
- S1644923381.893816,VS0,VE147 | ||
status: 200 OK | ||
code: 200 | ||
duration: "" | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
User-Agent: | ||
- FastlyGo/9.11.0 (+github.com/fastly/go-fastly; go1.22.2) | ||
url: https://api.fastly.com/metrics/origins/services/kKJb5bOFI47uHeBVluGfX1?cursor=&datacenter=LHR%2CJFK&downsample=day&end=1732579200&group_by=host&host=host01&limit=150&metric=responses%2Cstatus_2xx®ion=europe%2Cusa&start=1732406400 | ||
method: GET | ||
response: | ||
body: | | ||
{"data":[],"meta":{"start":"2024-11-24T00:00:00Z","end":"2024-11-26T00:00:00Z","downsample":"day","metric":"responses,status_2xx","limit":150,"next_cursor":"","sort":"host","group_by":"host","filters":{"datacenters":"LHR,JFK","hosts":"host01","regions":"europe,usa"}},"status":"success"} | ||
headers: | ||
Accept-Ranges: | ||
- bytes | ||
Age: | ||
- "0" | ||
Cache-Control: | ||
- no-store | ||
Content-Length: | ||
- "288" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Tue, 26 Nov 2024 20:19:08 GMT | ||
Pragma: | ||
- no-cache | ||
Server: | ||
- control-gateway | ||
Status: | ||
- 200 OK | ||
Strict-Transport-Security: | ||
- max-age=31536000 | ||
Vary: | ||
- Accept-Encoding | ||
Via: | ||
- 1.1 varnish, 1.1 varnish | ||
X-Cache: | ||
- MISS, MISS | ||
X-Cache-Hits: | ||
- 0, 0 | ||
X-Served-By: | ||
- cache-chi-kigq8000107-CHI, cache-yul1970076-YUL | ||
X-Timer: | ||
- S1732652349.659616,VS0,VE223 | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters