@scaleway/sdk-cockpit 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -580,6 +580,7 @@ class RegionalAPI extends sdkClient.API {
|
|
|
580
580
|
method: "GET",
|
|
581
581
|
path: `/cockpit/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alerts`,
|
|
582
582
|
urlParams: sdkClient.urlParams(
|
|
583
|
+
["data_source_id", request.dataSourceId],
|
|
583
584
|
["is_enabled", request.isEnabled],
|
|
584
585
|
["is_preconfigured", request.isPreconfigured],
|
|
585
586
|
[
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -105,9 +105,9 @@ export declare class GlobalAPI extends ParentAPI {
|
|
|
105
105
|
getCurrentPlan: (request?: Readonly<GlobalApiGetCurrentPlanRequest>) => Promise<Plan>;
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
|
-
* Cockpit
|
|
108
|
+
* Cockpit API.
|
|
109
109
|
|
|
110
|
-
The Cockpit
|
|
110
|
+
The Cockpit API allows you to create data sources and Cockpit tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager.
|
|
111
111
|
*/
|
|
112
112
|
export declare class RegionalAPI extends ParentAPI {
|
|
113
113
|
/** Lists the available regions of the API. */
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -578,6 +578,7 @@ class RegionalAPI extends API {
|
|
|
578
578
|
method: "GET",
|
|
579
579
|
path: `/cockpit/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alerts`,
|
|
580
580
|
urlParams: urlParams(
|
|
581
|
+
["data_source_id", request.dataSourceId],
|
|
581
582
|
["is_enabled", request.isEnabled],
|
|
582
583
|
["is_preconfigured", request.isPreconfigured],
|
|
583
584
|
[
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ export interface Alert {
|
|
|
75
75
|
* Contains additional data for preconfigured alerts, such as the rule ID, display name, and description. Only present if the alert is preconfigured.
|
|
76
76
|
*/
|
|
77
77
|
preconfiguredData?: PreconfiguredAlertData;
|
|
78
|
+
/**
|
|
79
|
+
* ID of the data source containing the alert rule.
|
|
80
|
+
*/
|
|
81
|
+
dataSourceId: string;
|
|
78
82
|
}
|
|
79
83
|
/**
|
|
80
84
|
* Contact point.
|
|
@@ -875,6 +879,10 @@ export type RegionalApiListAlertsRequest = {
|
|
|
875
879
|
* Valid values to filter on are `inactive`, `pending` and `firing`. If omitted, no filtering is applied on alert states. Other filters may still apply.
|
|
876
880
|
*/
|
|
877
881
|
state?: AlertState;
|
|
882
|
+
/**
|
|
883
|
+
* If omitted, only alerts from the default scaleway data source will be listed.
|
|
884
|
+
*/
|
|
885
|
+
dataSourceId?: string;
|
|
878
886
|
};
|
|
879
887
|
/**
|
|
880
888
|
* List contact points.
|