-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: domain inspector #483
feat: domain inspector #483
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just a couple of minor suggested edits and also seems like a couple of fields aren't being utilised (if you could check and confirm).
Thanks!
// GroupBy is the dimensions to return in the query. | ||
GroupBy []string | ||
// Limit is the limit of returned data | ||
Limit int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this being referenced or passed through anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
// End is a valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided downsample value. | ||
End time.Time | ||
// GroupBy is the dimensions to return in the query. | ||
GroupBy []string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this being referenced or passed through anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching. Fixed.
Co-authored-by: Mark McDonnell <Integralist@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
This adds support for getting historical per-domain metrics provided by Domain Inspector.
Fastly API docs: https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical/
Further details: https://docs.fastly.com/products/domain-inspector