# `Stripe.Services.Sigma.ScheduledQueryRunService`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/services/sigma/scheduled_query_run_service.ex#L2)

ScheduledQueryRun

If you have [scheduled a Sigma query](https://docs.stripe.com/sigma/scheduled-queries), you'll
receive a `sigma.scheduled_query_run.created` webhook each time the query
runs. The webhook contains a `ScheduledQueryRun` object, which you can use to
retrieve the query results.

# `list`

```elixir
@spec list(Stripe.Client.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

List all scheduled query runs

Returns a list of scheduled query runs.

# `retrieve`

```elixir
@spec retrieve(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Retrieve a scheduled query run

Retrieves the details of an scheduled query run.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
