Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New gauge metric: fastly_rt_token_expiration
Returns the expires_at timestamp of the
FASTLY_API_TOKEN
.This addresses part of #146.
If the the metric is not in the blocklist, it will create a a
TokenRecorder
that has two methods:Gatherer()
andSet()
api.fastly.com/tokens/self
and sets the expiration timestamp (if it exists)token_id
and theuser_id
to help in finding the token in the Fastly UI.Sample: