---
title: "List estimation-eligible datasets for an integration"
method: GET
path: "/v1/integrations/{integrationId}/exceptions/estimation-datasets"
tags: ["Integration Exceptions"]
---

# List estimation-eligible datasets for an integration

`GET /v1/integrations/{integrationId}/exceptions/estimation-datasets`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/integrations/{integrationId}/exceptions/estimation-datasets`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Returns datasets that are sinks of the integration's non-deleted pipelines, each with the pipelines that wire the integration to that dataset and the dataset's current estimation configuration (or null when not opted in). The estimation configuration is per-dataset and shared across every integration whose pipelines target the same dataset.

## Path parameters

- `integrationId` string, required

## Response `200`

Estimation dataset summaries retrieved

- EstimationDatasetSummary[]
  - `config` DatasetEstimationConfig
    - `createdAt` string, date-time
    - `datasetId` string
    - `logLimit` integer, required: Maximum number of log messages to scan per estimation run.
    - `lookbackDuration` string, ISO-8601, required: Time window of data to scan per estimation run. ISO-8601 duration format.
    - `organizationId` string
    - `query` union: Predicate applied to rows before analytical aggregation.
      - object
        - `queries` EventPredicate[], required: List of predicates that must all match for this predicate to match.
        - `type` 'and-predicate', required: A predicate that matches when every child predicate matches.
        - `query` string
      - object
        - `query` string, required: The datadog query used by the predicate. See https://docs.datadoghq.com/tracing/trace_explorer/query_syntax
        - `type` 'datadog-query', required: A predicate that checks if an event matches a datadog query.
      - object
        - `filterTags` object: The set of tags to query for. If unspecified, all tags are queried.
        - `metricNames` string[], required: The names of the metrics to query. Must not be empty.
        - `query` string, required
        - `type` 'metric-predicate', required: A predicate that checks if an event matches a metrics query.
      - object
        - `query` string, required: The New Relic query used by the predicate. See https://docs.newrelic.com/docs/logs/ui-data/query-syntax-logs/
        - `type` 'newrelic-query', required: A predicate that checks if an event matches a New Relic query.
      - object
        - `query` string, required: The Nrql query used by the predicate. See https://docs.newrelic.com/docs/nrql
        - `strict` boolean: Whether the query should be parsed in strict mode.
        - `type` 'nrql-query', required: A predicate that checks if an event matches an NRQL query.
    - `refreshPeriod` string, ISO-8601, required: How often to recalculate impact percentages. ISO-8601 duration format.
    - `updatedAt` string, date-time
  - `datasetId` string, required: Dataset this summary describes
  - `datasetName` string, required: Display name of the dataset
  - `pipelines` PipelineRef[], required
    - `id` string, required: Pipeline id
    - `name` string, required: Pipeline display name

## Other responses

- `401`: Unauthorized
- `404`: Not Found - Integration not found.

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
