# display datasink

The `display datasink` command displays data from a data sink.

The `outage_windows` option displays the windows where event outages were detected.

The `bad_events` option displays events that failed to meet the data-sink constraints.

## Syntax

{% code overflow="wrap" %}

```
display datasink <datasink name>[,sql_clause=<SQL clause>,limit=<number of rows>]
display datasink <datasink name>,outage_windows
display datasink <datasink name>,bad_events[,sql_clause=<SQL clause>,limit=<number of rows>]
```

{% endcode %}

## Parameters

| Parameter          | Description                                                     |
| ------------------ | --------------------------------------------------------------- |
| `<datasink name>`  | The name of the data sink                                       |
| `<SQL clause>`     | A SQL WHERE clause, usually on a timestamp column               |
| `<number of rows>` | The number of rows to display. Defaults to 10 if not specified. |

## Example

{% code overflow="wrap" %}

```
display datasink trip_datasink
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aizen-corp.gitbook.io/docs/model-building-commands/data-sink-commands/display-datasink.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
