Skip to content

Automate metrics and reports through the API #12017

Open
@9alexx3

Description

@9alexx3

Is your feature request related to a problem? Please describe

Given the idea of my Slack post, I'll give more context on this enhancement.

Describe the solution you'd like
To comply with my country's cybersecurity regulations, a monthly metrics report on findings management needs to be sent to the relevant administration.

From the UI (classic), there is a “Metrics” section (/metrics/simple) which is just what I need because you can visualize total/open/closed findings. The problem is that I can't automate this metric from the API because there is no option.

Image

Additional context
Add any other context, screenshots, sketch, code snippet, etc. about the feature request here.

My idea is to implement this metric through the API.

As a workaround, I have a python3 script which creates a session to the UI, logs in, gets the CSRFToken, queries the /metric/simple, downloads the HTML and the CSS (minimum to be viewable) is added to the <head> of the HTML.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions