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

Monitoring and reporting job #59

Open
jkutner opened this issue Apr 14, 2021 · 0 comments
Open

Monitoring and reporting job #59

jkutner opened this issue Apr 14, 2021 · 0 comments

Comments

@jkutner
Copy link
Member

jkutner commented Apr 14, 2021

We need to create a Rake task in the lib/tasks/ directory that reads the information in the database and generates a summary or roll-up of the data.

The file should be call lib/tasks/report.rake.

The task should be run like this:

$ rake report 
{
  "updated_at": "2021-04-14",
  "namespaces": {
    "count": 20
  },
  "buildpacks": {
    "count": 150
  }
}

Future work

When the task runs with the --db flag, it will update a new summary table in the database instead of outputting JSON. The summary table will be created with a Rail migration and accessed with a new model class. We will also implement a controller and route to expose the data (i.e. rails generate scaffold).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant