mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
fixed typechecks
This commit is contained in:
parent
041243a66c
commit
6f6770fa4b
6 changed files with 11 additions and 0 deletions
|
@ -77,6 +77,7 @@ const rewriteBodyRes: RewriteResponseCase<FindResult<AlertTypeParams>> = ({
|
|||
executionStatus,
|
||||
actions,
|
||||
scheduledTaskId,
|
||||
legacyId,
|
||||
...rest
|
||||
}) => ({
|
||||
...rest,
|
||||
|
@ -86,6 +87,7 @@ const rewriteBodyRes: RewriteResponseCase<FindResult<AlertTypeParams>> = ({
|
|||
created_at: createdAt,
|
||||
updated_at: updatedAt,
|
||||
api_key_owner: apiKeyOwner,
|
||||
legacy_id: legacyId,
|
||||
notify_when: notifyWhen,
|
||||
mute_all: muteAll,
|
||||
muted_alert_ids: mutedInstanceIds,
|
||||
|
|
|
@ -40,6 +40,7 @@ describe('createAlertRoute', () => {
|
|||
bar: true,
|
||||
},
|
||||
throttle: '30s',
|
||||
legacyId: null,
|
||||
notifyWhen: 'onActionGroupChange',
|
||||
actions: [
|
||||
{
|
||||
|
|
|
@ -82,6 +82,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {
|
|||
consumer: 'alertsFixture',
|
||||
params: {},
|
||||
created_by: null,
|
||||
legacy_id: null,
|
||||
schedule: { interval: '1m' },
|
||||
scheduled_task_id: response.body.scheduled_task_id,
|
||||
updated_by: null,
|
||||
|
@ -318,6 +319,7 @@ export default function createAlertTests({ getService }: FtrProviderContext) {
|
|||
scheduledTaskId: response.body.scheduledTaskId,
|
||||
updatedBy: null,
|
||||
apiKeyOwner: null,
|
||||
legacyId: null,
|
||||
throttle: '1m',
|
||||
notifyWhen: 'onThrottleInterval',
|
||||
muteAll: false,
|
||||
|
|
|
@ -59,6 +59,7 @@ export default function createFindTests({ getService }: FtrProviderContext) {
|
|||
actions: [],
|
||||
params: {},
|
||||
created_by: null,
|
||||
legacy_id: null,
|
||||
api_key_owner: null,
|
||||
scheduled_task_id: match.scheduled_task_id,
|
||||
updated_by: null,
|
||||
|
@ -145,6 +146,7 @@ export default function createFindTests({ getService }: FtrProviderContext) {
|
|||
actions: [],
|
||||
params: {},
|
||||
createdBy: null,
|
||||
legacyId: null,
|
||||
apiKeyOwner: null,
|
||||
scheduledTaskId: match.scheduledTaskId,
|
||||
updatedBy: null,
|
||||
|
|
|
@ -43,6 +43,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
|
|||
actions: [],
|
||||
params: {},
|
||||
created_by: null,
|
||||
legacy_id: null,
|
||||
scheduled_task_id: response.body.scheduled_task_id,
|
||||
updated_by: null,
|
||||
api_key_owner: null,
|
||||
|
@ -108,6 +109,7 @@ export default function createGetTests({ getService }: FtrProviderContext) {
|
|||
actions: [],
|
||||
params: {},
|
||||
createdBy: null,
|
||||
legacyId: null,
|
||||
scheduledTaskId: response.body.scheduledTaskId,
|
||||
updatedBy: null,
|
||||
apiKeyOwner: null,
|
||||
|
|
|
@ -54,6 +54,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
|
|||
enabled: true,
|
||||
updated_by: null,
|
||||
api_key_owner: null,
|
||||
legacyId: null,
|
||||
mute_all: false,
|
||||
muted_alert_ids: [],
|
||||
notify_when: 'onThrottleInterval',
|
||||
|
@ -142,6 +143,7 @@ export default function createUpdateTests({ getService }: FtrProviderContext) {
|
|||
enabled: true,
|
||||
updatedBy: null,
|
||||
apiKeyOwner: null,
|
||||
legacyId: null,
|
||||
muteAll: false,
|
||||
mutedInstanceIds: [],
|
||||
notifyWhen: 'onThrottleInterval',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue