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

Add LastUsedAt function to unsued.Disk interface #15

Merged
merged 4 commits into from
May 19, 2022
Merged

Conversation

inkel
Copy link
Collaborator

@inkel inkel commented May 19, 2022

This method will report when was the last time an unused disk was used. Note that this information is only available for GCP. For AWS it's possible to check AWS CloudTrail for DetachVolume events. For Azure I haven't found yet no way to retrieve that information.

inkel added 4 commits May 17, 2022 16:59
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Currently hardcoded to 1 minute after creation. Might work on making
this configurable if needed.

Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
@inkel inkel added the enhancement New feature or request label May 19, 2022
@inkel inkel self-assigned this May 19, 2022
@inkel inkel merged commit 2881526 into main May 19, 2022
@inkel inkel deleted the featre/disk-last-used branch May 19, 2022 13:35
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.

None yet

1 participant