Skip to content

Commit

Permalink
[Uptime] adjust RAC RBAC and index settings (elastic#108200) (elastic…
Browse files Browse the repository at this point in the history
…#108752)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Dominique Clarke <[email protected]>
  • Loading branch information
kibanamachine and dominiqueclarke authored Aug 16, 2021
1 parent 40b1562 commit 2363c27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/kbn-rule-data-utils/src/alerts_as_data_rbac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const AlertConsumers = {
INFRASTRUCTURE: 'infrastructure',
OBSERVABILITY: 'observability',
SIEM: 'siem',
SYNTHETICS: 'synthetics',
UPTIME: 'uptime',
} as const;
export type AlertConsumers = typeof AlertConsumers[keyof typeof AlertConsumers];
export type STATUS_VALUES = 'open' | 'acknowledged' | 'closed' | 'in-progress'; // TODO: remove 'in-progress' after migration to 'acknowledged'
Expand All @@ -35,7 +35,7 @@ export const mapConsumerToIndexName: Record<AlertConsumers, string | string[]> =
infrastructure: '.alerts-observability.metrics',
observability: '.alerts-observability',
siem: ['.alerts-security.alerts', '.siem-signals'],
synthetics: '.alerts-observability-synthetics',
uptime: '.alerts-observability.uptime',
};
export type ValidFeatureId = keyof typeof mapConsumerToIndexName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const OBSERVABILITY_ALERT_CONSUMERS = [
AlertConsumers.APM,
AlertConsumers.LOGS,
AlertConsumers.INFRASTRUCTURE,
AlertConsumers.SYNTHETICS,
AlertConsumers.UPTIME,
];

function ObservabilityActions({
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/uptime/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export class Plugin implements PluginType {
const { ruleDataService } = plugins.ruleRegistry;

const ruleDataClient = ruleDataService.initializeIndex({
feature: 'synthetics',
registrationContext: 'observability.synthetics',
feature: 'uptime',
registrationContext: 'observability.uptime',
dataset: Dataset.alerts,
componentTemplateRefs: [],
componentTemplates: [
Expand Down

0 comments on commit 2363c27

Please sign in to comment.