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 {
240
240
method : 'GET' ,
241
241
path : `/cockpit/v1beta1/datasources` ,
242
242
urlParams : urlParams (
243
+ [ 'is_managed_by_scaleway' , request . isManagedByScaleway ] ,
243
244
[ 'order_by' , request . orderBy ] ,
244
245
[ 'page' , request . page ] ,
245
246
[
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export const unmarshalDatasource = (data: unknown): Datasource => {
77
77
78
78
return {
79
79
id : data . id ,
80
+ isManagedByScaleway : data . is_managed_by_scaleway ,
80
81
name : data . name ,
81
82
projectId : data . project_id ,
82
83
type : data . type ,
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ export interface Datasource {
119
119
url : string
120
120
/** Datasource type. */
121
121
type : DatasourceType
122
+ /**
123
+ * Specifies that the datasource receives data from Scaleway products and is
124
+ * managed by Scaleway.
125
+ */
126
+ isManagedByScaleway : boolean
122
127
}
123
128
124
129
/** Grafana dashboard. */
@@ -336,6 +341,8 @@ export type ListDatasourcesRequest = {
336
341
projectId ?: string
337
342
/** Filter by datasource types. */
338
343
types ?: DatasourceType [ ]
344
+ /** Filter by managed datasources. */
345
+ isManagedByScaleway ?: boolean
339
346
}
340
347
341
348
export interface ListDatasourcesResponse {
You can’t perform that action at this time.
0 commit comments