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

Command icon 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

steven jones created an issue. See original summary.

steven jones’s picture

Status: Active » Reviewed & tested by the community

Tested on both D10 and D11 manually, and it seems to be working well.

  • steven jones committed cd67dd5c on 8.x-1.x
    feat: #3586627 Show account stats in admin status report
    
    By: steven...
steven jones’s picture

Status: Reviewed & tested by the community » Fixed

And it's in!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.