File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
packages/clients/src/api/cockpit/v1beta1 Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ export class API extends ParentAPI {
240240 method : 'GET' ,
241241 path : `/cockpit/v1beta1/datasources` ,
242242 urlParams : urlParams (
243+ [ 'is_managed_by_scaleway' , request . isManagedByScaleway ] ,
243244 [ 'order_by' , request . orderBy ] ,
244245 [ 'page' , request . page ] ,
245246 [
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export const unmarshalDatasource = (data: unknown): Datasource => {
7777
7878 return {
7979 id : data . id ,
80+ isManagedByScaleway : data . is_managed_by_scaleway ,
8081 name : data . name ,
8182 projectId : data . project_id ,
8283 type : data . type ,
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ export interface Datasource {
119119 url : string
120120 /** Datasource type. */
121121 type : DatasourceType
122+ /**
123+ * Specifies that the datasource receives data from Scaleway products and is
124+ * managed by Scaleway.
125+ */
126+ isManagedByScaleway : boolean
122127}
123128
124129/** Grafana dashboard. */
@@ -336,6 +341,8 @@ export type ListDatasourcesRequest = {
336341 projectId ?: string
337342 /** Filter by datasource types. */
338343 types ?: DatasourceType [ ]
344+ /** Filter by managed datasources. */
345+ isManagedByScaleway ?: boolean
339346}
340347
341348export interface ListDatasourcesResponse {
You can’t perform that action at this time.
0 commit comments