@junando/worker 0.16.0 → 0.16.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/handler.cjs +4 -1
- package/package.json +2 -2
package/dist/handler.cjs
CHANGED
|
@@ -74145,6 +74145,7 @@ function sanitizeEndpointPath(endpointPath) {
|
|
|
74145
74145
|
if (!endpointPath) return "unknown";
|
|
74146
74146
|
return endpointPath.replaceAll("`", "").slice(0, 200);
|
|
74147
74147
|
}
|
|
74148
|
+
const ROLLBACK_PROBABLE_CAUSE_MAX_LEN = 500;
|
|
74148
74149
|
var SlackNotifier = class {
|
|
74149
74150
|
botToken;
|
|
74150
74151
|
channel;
|
|
@@ -74260,7 +74261,8 @@ var SlackNotifier = class {
|
|
|
74260
74261
|
serviceName: cluster.serviceName,
|
|
74261
74262
|
endpointPath: cluster.endpointPath,
|
|
74262
74263
|
alertType: cluster.alertType,
|
|
74263
|
-
urgencyLevel: analysis.urgency_level
|
|
74264
|
+
urgencyLevel: analysis.urgency_level,
|
|
74265
|
+
probableCause: analysis.probable_cause.slice(0, ROLLBACK_PROBABLE_CAUSE_MAX_LEN)
|
|
74264
74266
|
}),
|
|
74265
74267
|
confirm: {
|
|
74266
74268
|
title: {
|
|
@@ -82083,6 +82085,7 @@ var NoopRollbackActionHandler = class {
|
|
|
82083
82085
|
endpointPath: request.endpointPath,
|
|
82084
82086
|
alertType: request.alertType,
|
|
82085
82087
|
urgencyLevel: request.urgencyLevel,
|
|
82088
|
+
probableCause: request.probableCause,
|
|
82086
82089
|
triggeredBy: request.triggeredBy,
|
|
82087
82090
|
correlationId: request.correlationId,
|
|
82088
82091
|
messageTs: request.messageTs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junando/worker",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "AWS Lambda SQS worker — processes alert events and dispatches notifications for Junando",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-sdk/client-ssm": "^3.1127.0",
|
|
23
23
|
"ioredis": "^6.0.0",
|
|
24
24
|
"zod": "^4.5.4",
|
|
25
|
-
"@junando/core": "0.16.
|
|
25
|
+
"@junando/core": "0.16.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/aws-lambda": "^8.10.163",
|