Skip to content

Commit b6360b0

Browse files
authored
feat(cockpit): add default notion for datasources (#988)
1 parent cd1363e commit b6360b0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/clients/src/api/cockpit/v1beta1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ export const marshalCreateDatasourceRequest = (
380380
request: CreateDatasourceRequest,
381381
defaults: DefaultValues,
382382
): Record<string, unknown> => ({
383+
is_default: request.isDefault,
383384
name: request.name,
384385
project_id: request.projectId ?? defaults.defaultProjectId,
385386
type: request.type,

packages/clients/src/api/cockpit/v1beta1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ export type CreateDatasourceRequest = {
209209
name: string
210210
/** Datasource type. */
211211
type?: DatasourceType
212+
/** Specifies that the returned output is the default datasource per type. */
213+
isDefault: boolean
212214
}
213215

214216
/** Request to create a Grafana user. */

0 commit comments

Comments
 (0)