Integration Exceptions

Preview a vendor estimation run

Returns how many exceptions and distinct queries a run would cover, and which exceptions cannot be counted because their query never parsed. Writes nothing.

post/v1/integrations/{integrationId}/exceptions/vendor-estimation-runs/preview

Request

  • Base URL
    https://docs.grepr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header GREPR-API-KEY
    • or OpenID Connect (https://grepr-prod.us.auth0.com/.well-known/openid-configuration)

Path parameters

integrationIdstring required

Integration id

Request body

scopeQuerystring

Vendor query limiting the estimate to part of the customer's traffic. Applied to both the matched count and the total. Leave empty for all logs.

windowEndstring date-time required

Absolute end of the window to count over; must be after the start and not in the future

windowStartstring date-time required

Absolute start of the window to count over

Example request

{
  "scopeQuery": "service:broker-* AND env:prod"
}

Response

Preview computed

distinctQueriesinteger required

Distinct countable predicates among those exceptions, and so the number of vendor calls the run would make. Smaller than the exception count wherever several exceptions carry the same query.

exceptionsinteger required

Exceptions the run would cover: every one the integration has imported

Example response

{
  "unparseable": [
    {
      "exceptionId": "0q841q0j81m2q:mon-123:DATADOG_MONITOR",
      "message": "unbalanced parenthesis at position 14"
    }
  ]
}

Changes

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