@scaleway/sdk-cockpit 1.2.0 → 1.3.1
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
|
@@ -570,7 +570,7 @@ class RegionalAPI extends sdkClient.API {
|
|
|
570
570
|
path: `/cockpit/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-manager/contact-points/delete`
|
|
571
571
|
});
|
|
572
572
|
/**
|
|
573
|
-
* List alerts. List preconfigured and/or custom alerts for the specified Project.
|
|
573
|
+
* List alerts. List preconfigured and/or custom alerts for the specified Project and data source.
|
|
574
574
|
*
|
|
575
575
|
* @param request - The request {@link RegionalApiListAlertsRequest}
|
|
576
576
|
* @returns A Promise of ListAlertsResponse
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ export declare class RegionalAPI extends ParentAPI {
|
|
|
252
252
|
*/
|
|
253
253
|
deleteContactPoint: (request?: Readonly<RegionalApiDeleteContactPointRequest>) => Promise<void>;
|
|
254
254
|
/**
|
|
255
|
-
* List alerts. List preconfigured and/or custom alerts for the specified Project.
|
|
255
|
+
* List alerts. List preconfigured and/or custom alerts for the specified Project and data source.
|
|
256
256
|
*
|
|
257
257
|
* @param request - The request {@link RegionalApiListAlertsRequest}
|
|
258
258
|
* @returns A Promise of ListAlertsResponse
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -568,7 +568,7 @@ class RegionalAPI extends API {
|
|
|
568
568
|
path: `/cockpit/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/alert-manager/contact-points/delete`
|
|
569
569
|
});
|
|
570
570
|
/**
|
|
571
|
-
* List alerts. List preconfigured and/or custom alerts for the specified Project.
|
|
571
|
+
* List alerts. List preconfigured and/or custom alerts for the specified Project and data source.
|
|
572
572
|
*
|
|
573
573
|
* @param request - The request {@link RegionalApiListAlertsRequest}
|
|
574
574
|
* @returns A Promise of ListAlertsResponse
|
|
@@ -182,7 +182,9 @@ const unmarshalPreconfiguredAlertData = (data) => {
|
|
|
182
182
|
return {
|
|
183
183
|
displayDescription: data.display_description,
|
|
184
184
|
displayName: data.display_name,
|
|
185
|
-
preconfiguredRuleId: data.preconfigured_rule_id
|
|
185
|
+
preconfiguredRuleId: data.preconfigured_rule_id,
|
|
186
|
+
productFamily: data.product_family,
|
|
187
|
+
productName: data.product_name
|
|
186
188
|
};
|
|
187
189
|
};
|
|
188
190
|
const unmarshalAlert = (data) => {
|
|
@@ -180,7 +180,9 @@ const unmarshalPreconfiguredAlertData = (data) => {
|
|
|
180
180
|
return {
|
|
181
181
|
displayDescription: data.display_description,
|
|
182
182
|
displayName: data.display_name,
|
|
183
|
-
preconfiguredRuleId: data.preconfigured_rule_id
|
|
183
|
+
preconfiguredRuleId: data.preconfigured_rule_id,
|
|
184
|
+
productFamily: data.product_family,
|
|
185
|
+
productName: data.product_name
|
|
184
186
|
};
|
|
185
187
|
};
|
|
186
188
|
const unmarshalAlert = (data) => {
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export interface PreconfiguredAlertData {
|
|
|
26
26
|
* Human readable description of the alert.
|
|
27
27
|
*/
|
|
28
28
|
displayDescription: string;
|
|
29
|
+
/**
|
|
30
|
+
* Product associated with the alert.
|
|
31
|
+
*/
|
|
32
|
+
productName: string;
|
|
33
|
+
/**
|
|
34
|
+
* Family of the product associated with the alert.
|
|
35
|
+
*/
|
|
36
|
+
productFamily: string;
|
|
29
37
|
}
|
|
30
38
|
export interface ContactPointEmail {
|
|
31
39
|
to: string;
|
|
@@ -880,7 +888,7 @@ export type RegionalApiListAlertsRequest = {
|
|
|
880
888
|
*/
|
|
881
889
|
state?: AlertState;
|
|
882
890
|
/**
|
|
883
|
-
* If omitted, only alerts from the default
|
|
891
|
+
* If omitted, only alerts from the default Scaleway metrics data source will be listed.
|
|
884
892
|
*/
|
|
885
893
|
dataSourceId?: string;
|
|
886
894
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-cockpit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Scaleway SDK cockpit",
|
|
5
|
-
"
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.1",
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.2.
|
|
36
|
+
"@scaleway/sdk-client": "^1.2.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.2.
|
|
39
|
+
"@scaleway/sdk-client": "^1.2.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|