Skip to content

Commit

Permalink
improve name of API Key for alerting
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Jul 14, 2020
1 parent fd7718b commit e5eb387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/alerts/server/alerts_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,6 @@ export class AlertsClient {
}

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

0 comments on commit e5eb387

Please sign in to comment.