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

Dashboard Queries

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
accessTokenstringequals, contains, startsWith, endsWith, in
panelIdnumberequals, gt, gte, lt, lte, in
fromstringequals, contains, startsWith, endsWith, in
tostringequals, contains, startsWith, endsWith, in
intervalMsnumberequals, gt, gte, lt, lte, in
maxDataPointsnumberequals, gt, gte, lt, lte, in
queriedAtdateequals, 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.

Health Status

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
versionstringequals, contains, startsWith, endsWith, in
commitstringequals, contains, startsWith, endsWith, in
databasestringequals, contains, startsWith, endsWith, in
enterpriseCommitstringequals, contains, startsWith, endsWith, in
licenseAvailablebooleanequals
checkedAtdateequals, 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.

Jwks Keys

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
usestringequals, contains, startsWith, endsWith, in
algorithmstringequals, contains, startsWith, endsWith, in
certificatesUrlstringequals, contains, startsWith, endsWith, in
fetchedAtdateequals, 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.

Logs

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
timeUnixNanostringequals, contains, startsWith, endsWith, in
severityTextstringequals, contains, startsWith, endsWith, in
severityNumbernumberequals, gt, gte, lt, lte, in
bodystringequals, contains, startsWith, endsWith, in
traceIdstringequals, contains, startsWith, endsWith, in
spanIdstringequals, contains, startsWith, endsWith, in
flagsnumberequals, gt, gte, lt, lte, in
scopestringequals, contains, startsWith, endsWith, in
scopeVersionstringequals, contains, startsWith, endsWith, in
droppedAttributesCountnumberequals, gt, gte, lt, lte, in
createdAtdateequals, 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.

Ring Status

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
contentstringequals, contains, startsWith, endsWith, in
contentTypestringequals, contains, startsWith, endsWith, in
statusCodenumberequals, gt, gte, lt, lte, in
fetchedAtdateequals, 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.

Saml Sessions

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

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
statusCodenumberequals, gt, gte, lt, lte, in
locationstringequals, contains, startsWith, endsWith, in
messagestringequals, contains, startsWith, endsWith, in
successfulbooleanequals
processedAtdateequals, 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.