diff --git a/packages_generated/cockpit/src/v1/api.gen.ts b/packages_generated/cockpit/src/v1/api.gen.ts index 842ef899f..fd7bff8c5 100644 --- a/packages_generated/cockpit/src/v1/api.gen.ts +++ b/packages_generated/cockpit/src/v1/api.gen.ts @@ -801,6 +801,7 @@ If you need to receive alerts for other receivers, you can create additional con method: 'GET', path: `/cockpit/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/alerts`, urlParams: urlParams( + ['data_source_id', request.dataSourceId], ['is_enabled', request.isEnabled], ['is_preconfigured', request.isPreconfigured], [ diff --git a/packages_generated/cockpit/src/v1/marshalling.gen.ts b/packages_generated/cockpit/src/v1/marshalling.gen.ts index 06d27e651..5567a1127 100644 --- a/packages_generated/cockpit/src/v1/marshalling.gen.ts +++ b/packages_generated/cockpit/src/v1/marshalling.gen.ts @@ -294,6 +294,7 @@ const unmarshalAlert = (data: unknown): Alert => { return { annotations: data.annotations, + dataSourceId: data.data_source_id, duration: data.duration, enabled: data.enabled, name: data.name, diff --git a/packages_generated/cockpit/src/v1/types.gen.ts b/packages_generated/cockpit/src/v1/types.gen.ts index 677085d47..b710c117f 100644 --- a/packages_generated/cockpit/src/v1/types.gen.ts +++ b/packages_generated/cockpit/src/v1/types.gen.ts @@ -116,6 +116,10 @@ export interface Alert { * Contains additional data for preconfigured alerts, such as the rule ID, display name, and description. Only present if the alert is preconfigured. */ preconfiguredData?: PreconfiguredAlertData + /** + * ID of the data source containing the alert rule. + */ + dataSourceId: string } /** @@ -964,6 +968,10 @@ export type RegionalApiListAlertsRequest = { * Valid values to filter on are `inactive`, `pending` and `firing`. If omitted, no filtering is applied on alert states. Other filters may still apply. */ state?: AlertState + /** + * If omitted, only alerts from the default scaleway data source will be listed. + */ + dataSourceId?: string } /**