Skip to content

Commit e5eb387

Browse files
committed
improve name of API Key for alerting
1 parent fd7718b commit e5eb387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugins/alerts/server/alerts_client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,6 @@ export class AlertsClient {
713713
}
714714

715715
private generateAPIKeyName(alertTypeId: string, alertName: string) {
716-
return `alerting:${this.spaceId ?? ''}:${alertTypeId}:${_.snakeCase(alertName)}`;
716+
return _.truncate(`Alerting: ${alertTypeId}/${alertName}`, { length: 256 });
717717
}
718718
}

0 commit comments

Comments
 (0)