> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> Grafana local sync: searchable entities, `.search()` filters, and operators.

The Grafana plugin syncs data locally. Use `corsair.grafana.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

<Info>
  **New to Corsair?** See [database operations](/concepts/database), [data synchronization](/concepts/integrations), and [multi-tenancy](/concepts/multi-tenancy).
</Info>

## Dashboard Queries

Path: `grafana.db.dashboardQueries.search`

```ts theme={null}
const rows = await corsair.grafana.db.dashboardQueries.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `accessToken` | `string` | equals, contains, startsWith, endsWith, in |
| `panelId` | `number` | equals, gt, gte, lt, lte, in |
| `from` | `string` | equals, contains, startsWith, endsWith, in |
| `to` | `string` | equals, contains, startsWith, endsWith, in |
| `intervalMs` | `number` | equals, gt, gte, lt, lte, in |
| `maxDataPoints` | `number` | equals, gt, gte, lt, lte, in |
| `queriedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Health Status

Path: `grafana.db.healthStatus.search`

```ts theme={null}
const rows = await corsair.grafana.db.healthStatus.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `version` | `string` | equals, contains, startsWith, endsWith, in |
| `commit` | `string` | equals, contains, startsWith, endsWith, in |
| `database` | `string` | equals, contains, startsWith, endsWith, in |
| `enterpriseCommit` | `string` | equals, contains, startsWith, endsWith, in |
| `licenseAvailable` | `boolean` | equals |
| `checkedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Jwks Keys

Path: `grafana.db.jwksKeys.search`

```ts theme={null}
const rows = await corsair.grafana.db.jwksKeys.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `use` | `string` | equals, contains, startsWith, endsWith, in |
| `algorithm` | `string` | equals, contains, startsWith, endsWith, in |
| `certificatesUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `fetchedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Logs

Path: `grafana.db.logs.search`

```ts theme={null}
const rows = await corsair.grafana.db.logs.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `timeUnixNano` | `string` | equals, contains, startsWith, endsWith, in |
| `severityText` | `string` | equals, contains, startsWith, endsWith, in |
| `severityNumber` | `number` | equals, gt, gte, lt, lte, in |
| `body` | `string` | equals, contains, startsWith, endsWith, in |
| `traceId` | `string` | equals, contains, startsWith, endsWith, in |
| `spanId` | `string` | equals, contains, startsWith, endsWith, in |
| `flags` | `number` | equals, gt, gte, lt, lte, in |
| `scope` | `string` | equals, contains, startsWith, endsWith, in |
| `scopeVersion` | `string` | equals, contains, startsWith, endsWith, in |
| `droppedAttributesCount` | `number` | equals, gt, gte, lt, lte, in |
| `createdAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Ring Status

Path: `grafana.db.ringStatus.search`

```ts theme={null}
const rows = await corsair.grafana.db.ringStatus.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `content` | `string` | equals, contains, startsWith, endsWith, in |
| `contentType` | `string` | equals, contains, startsWith, endsWith, in |
| `statusCode` | `number` | equals, gt, gte, lt, lte, in |
| `fetchedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***

## Saml Sessions

Path: `grafana.db.samlSessions.search`

```ts theme={null}
const rows = await corsair.grafana.db.samlSessions.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `statusCode` | `number` | equals, gt, gte, lt, lte, in |
| `location` | `string` | equals, contains, startsWith, endsWith, in |
| `message` | `string` | equals, contains, startsWith, endsWith, in |
| `successful` | `boolean` | equals |
| `processedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](/concepts/database).*

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.