Skip to content
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

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Conversation

darin-nee
Copy link
Contributor

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

@Integralist Integralist added the enhancement New feature or request label Nov 8, 2023
Copy link
Collaborator

@Integralist Integralist left a 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
Copy link
Collaborator

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.

Copy link
Contributor Author

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
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching. Fixed.

darin-nee and others added 2 commits November 9, 2023 10:09
Co-authored-by: Mark McDonnell <Integralist@users.noreply.github.com>
Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@Integralist Integralist merged commit 34f7a26 into fastly:main Nov 10, 2023
@darin-nee darin-nee deleted the darin-nee/domain-inspector branch November 10, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants