Problem/Motivation
It would be quite nice if we could keep an eye on Kraken.io accounts from the status reports page, specifically, showing things like the amount of usage left on the account.
Proposed resolution
We should loop over all the imageapi optimize pipelines, and look for Kraken plugins and their configurations, pull off the API credentials, and then do some requests to get the status of the different accounts:
https://kraken.io/docs/user-status
Then I think we need to do some work to group the results and work out what the various statuses should be etc. These probably need tying to Pipelines and API keys, and grouping by API key?
I suppose we should flag things like low % of quota left, account not active etc.
Remaining tasks
Code it up, and get it working.
User interface changes
Additional reports on the admin/reports/status page.
API changes
None, maybe.
Data model changes
None.
Issue fork kraken-3586627
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
steven jones commentedTested on both D10 and D11 manually, and it seems to be working well.
Comment #5
steven jones commentedAnd it's in!