Faults

Get fault counts

Returns the project's fault counts, grouped by environment and by resolved or ignored state. It takes the same q and time parameters as List faults, and counts the same faults.

get/projects/{project_id}/faults/summary

Request

Path parameters

project_idstring required
Example:Xk9mZp

Project ID

Query parameters

qstring

Search query, in the syntax of the web UI's error search, such as environment:production, is:resolved or class:ArgumentError. Prefix a filter with - to negate it. See Error search for the syntax and filters. Filters that need the search index return nothing when it holds no data for the project.

created_afternumber double

Only faults first seen after this Unix timestamp (seconds, not ISO 8601).

occurred_afternumber double

Only count faults that occurred after this Unix timestamp

occurred_beforenumber double

Only count faults that occurred before this Unix timestamp

Response

Success

Example response

{
  "data": {
    "total": 142,
    "environments": [
      {
        "environment": "production"
      }
    ]
  },
  "meta": {
    "request_id": "6f1c2b0e-8d4a-4f6e-9b2a-3c5d7e9f1a2b"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.