Fetch detailed statistics on SCM billable minutes consumed by Jit scanners.

This endpoint allows you to access the billable minutes used by various scanning jobs. You can group the results by different categories such as job names, developers, or assets.

Important: Data availability starts from August 18, 2024, and is available up to 1 year in the past, even if the provided start date is more than a year ago.

  • For Github - the billable minutes are always rounded up to the nearest minute (e.g. 20 seconds scan will be considered as 1 minute).

  • For Gitlab - the billable minutes are calculated based on the actual time spent on the scan.

When grouping by developers (by_developer=true), you can also count the number of unique developers who have interacted with the platform through Pull Requests (PRs) or Merge Requests (MRs).

Requires the following permission:
jit.generalMetrics.read

Log in to see full request history
Query Params
string

The start date for the query, in the format YYYY-MM-DD, Defaults to 1 month ago if not specified, You can query up to 1 year in the past.

string

The end date for the query, in the format YYYY-MM-DD, Defaults to Now if not specified.

string

Comma separated list of group categories to filter by, e.g., first_scan, pr.

All groups are returned if not specified.

boolean
Defaults to false

Whether to further group by the name of the job, e.g., secret-detection, software-bill-of-materials, etc.

boolean
Defaults to false

Whether to further group by the developer name. N/A if not applicable (e.g., for scheduled jobs).

boolean
Defaults to false

Whether to further group by asset. It will be grouped by asset_id.

boolean
Defaults to false

Whether to exclude users with names containing [bot], -bot, or bot.

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json