Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Oct 11, 2022
1 parent 5223d55 commit b01f85f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const createInventoryMetricThresholdExecutor = (libs: InfraBackendLibs) =
fields: {
[ALERT_REASON]: reason,
[ALERT_RULE_PARAMETERS]: params as any, // the type assumes the object is already flattened when writing the same way as when reading https://github.com/elastic/kibana/blob/main/x-pack/plugins/rule_registry/common/field_map/runtime_type_from_fieldmap.ts#L60
...additionalContext
...additionalContext,
},
});

Expand Down Expand Up @@ -185,7 +185,7 @@ export const createInventoryMetricThresholdExecutor = (libs: InfraBackendLibs) =
if (reason) {
const actionGroupId =
nextState === AlertStates.WARNING ? WARNING_ACTIONS.id : FIRED_ACTIONS.id;

const additionalContext = results && results.length > 0 ? results[0][group].context : null;

const alert = alertFactory(group, reason, additionalContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ interface BucketKey {
node: string;
}

type AdditionalContext = {
interface AdditionalContext {
[x: string]: any;
};
}

type Response = Record<
string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-0', groupId: 'group-0' },
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -140,7 +140,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-0', groupId: 'group-0' },
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -180,7 +180,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
'host-1': {
metric: 'rx',
Expand All @@ -201,7 +201,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -237,7 +237,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
'host-1': {
metric: 'rx',
Expand All @@ -258,7 +258,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -295,7 +295,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
'host-1': {
metric: 'rx',
Expand All @@ -316,7 +316,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -369,7 +369,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-0', groupId: 'group-0' },
tags: undefined,
}
},
},
'host-1': {
metric: 'custom',
Expand Down Expand Up @@ -397,7 +397,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-1', groupId: 'group-0' },
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -446,7 +446,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-0', groupId: 'group-0' },
tags: undefined,
}
},
},
'host-1': {
metric: 'custom',
Expand Down Expand Up @@ -474,7 +474,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-1', groupId: 'group-0' },
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -514,7 +514,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-0', groupId: 'group-0' },
tags: undefined,
}
},
},
'host-1': {
metric: 'logRate',
Expand All @@ -535,7 +535,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-1', groupId: 'group-0' },
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -572,7 +572,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-0', groupId: 'group-0' },
tags: undefined,
}
},
},
'host-1': {
metric: 'logRate',
Expand All @@ -593,7 +593,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: { eventId: 'event-1', groupId: 'group-0' },
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -634,7 +634,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
'ed01e3a3-4787-42f6-b73e-ac9e97294e9d': {
metric: 'rx',
Expand All @@ -655,7 +655,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
});
});
Expand Down Expand Up @@ -693,7 +693,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
'ed01e3a3-4787-42f6-b73e-ac9e97294e9d': {
metric: 'rx',
Expand All @@ -714,7 +714,7 @@ export default function ({ getService }: FtrProviderContext) {
orchestrator: undefined,
labels: undefined,
tags: undefined,
}
},
},
});
});
Expand Down

0 comments on commit b01f85f

Please sign in to comment.