Skip to content

Commit

Permalink
Revert some archive changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Jul 4, 2022
1 parent 4d5b443 commit d1f7e24
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 168 deletions.
107 changes: 28 additions & 79 deletions x-pack/test/functional/es_archives/alerts/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,12 @@
"consumer":"siem",
"params":{
"author":[

],
"description":"enabled 7.16.1 query rule",
"ruleId":"064e3fed-6328-416b-bb85-c08265088f41",
"falsePositives":[

],
"from":"now-36000060s",
"immutable":false,
Expand All @@ -691,14 +693,18 @@
"maxSignals":100,
"riskScore":21,
"riskScoreMapping":[

],
"severity":"low",
"severityMapping":[

],
"threat":[

],
"to":"now",
"references":[

],
"version":4,
"exceptionsList":[
Expand All @@ -718,13 +724,15 @@
],
"query":"*:*",
"filters":[

]
},
"schedule":{
"interval":"1m"
},
"enabled":true,
"actions":[

],
"throttle":null,
"apiKeyOwner":"3270256467",
Expand All @@ -734,6 +742,7 @@
"createdAt":"2022-02-16T01:24:02.121Z",
"muteAll":true,
"mutedInstanceIds":[

],
"scheduledTaskId":"2030ade0-8ec7-11ec-a700-5524407a7653"
},
Expand All @@ -760,10 +769,12 @@
"consumer":"siem",
"params":{
"author":[

],
"description":"disabled 7.16.1 query rule",
"ruleId":"364e3fed-6328-416b-bb85-c08265088f41",
"falsePositives":[

],
"from":"now-36000060s",
"immutable":false,
Expand All @@ -775,14 +786,18 @@
"maxSignals":100,
"riskScore":21,
"riskScoreMapping":[

],
"severity":"low",
"severityMapping":[

],
"threat":[

],
"to":"now",
"references":[

],
"version":4,
"exceptionsList":[
Expand All @@ -802,13 +817,15 @@
],
"query":"*:*",
"filters":[

]
},
"schedule":{
"interval":"1m"
},
"enabled":true,
"actions":[

],
"throttle":null,
"apiKeyOwner":"3270256467",
Expand All @@ -818,6 +835,7 @@
"createdAt":"2022-02-16T01:25:02.121Z",
"muteAll":true,
"mutedInstanceIds":[

],
"scheduledTaskId":null
},
Expand Down Expand Up @@ -938,9 +956,11 @@
"immutable":true,
"ruleId":"bf9638eb-7d3c-4f40-83d7-8c40a7c80f2e",
"author":[

],
"description":"remove interns tags mock rule",
"falsePositives":[

],
"from":"now-36000060s",
"license":"",
Expand All @@ -951,14 +971,18 @@
"maxSignals":100,
"riskScore":21,
"riskScoreMapping":[

],
"severity":"low",
"severityMapping":[

],
"threat":[

],
"to":"now",
"references":[

],
"version":4,
"exceptionsList":[
Expand All @@ -978,13 +1002,15 @@
],
"query":"*:*",
"filters":[

]
},
"schedule":{
"interval":"1m"
},
"enabled":true,
"actions":[

],
"throttle":null,
"apiKeyOwner":null,
Expand All @@ -994,6 +1020,7 @@
"createdAt":"2021-07-27T20:42:55.896Z",
"muteAll":false,
"mutedInstanceIds":[

],
"scheduledTaskId":null,
"tags":[
Expand All @@ -1009,86 +1036,8 @@
},
"updated_at":"2021-08-13T23:00:11.985Z",
"references":[

]
}
}
}

{
"type": "doc",
"value": {
"id": "alert:bdfce750-fba0-11ec-9157-2f379249da99",
"index": ".kibana_1",
"source": {
"alert": {
"name": "Test rule with snoozeEndTime",
"enabled": true,
"consumer": "alerts",
"tags": [],
"throttle": null,
"params": {
"aggType": "count",
"termSize": 5,
"thresholdComparator": ">",
"timeWindowSize": 5,
"timeWindowUnit": "d",
"groupBy": "all",
"threshold": [0],
"index": [".test-test-test"],
"timeField": "@timestamp"
},
"schedule": {
"interval": "1m"
},
"actions": [],
"alertTypeId": ".index-threshold",
"notifyWhen": "onActiveAlert",
"apiKeyOwner": "elastic",
"apiKey": "3RxLHwjIipxz4cGSVzAl711AQylKFzBcobdALVbJ4r8b4nGsLhv5OGdcS/OZuTJqli21hZGfc/3DDmGCC+uviMYif92+yVUFza/k5rUv7OrZWP0UaycKhQLLqJRXqYlVFOz4VfprGHbKC8fLgBvbidmGnpvoTdBkkP0NICtnwZOwqcjoqHCHY2LsXg7MYR+SXI8RaGcafXd+0Q==",
"legacyId": null,
"createdBy": "elastic",
"updatedBy": "elastic",
"createdAt": "2022-07-04T13:53:54.686Z",
"updatedAt": "2022-07-04T13:53:54.686Z",
"snoozeEndTime": null,
"muteAll": false,
"mutedInstanceIds": [],
"executionStatus": {
"status": "ok",
"lastExecutionDate": "2022-07-04T13:53:58.350Z",
"error": null,
"warning": null,
"lastDuration": 51
},
"monitoring": {
"execution": {
"history": [
{
"duration": 51,
"success": true,
"timestamp": 1656942838402
}
],
"calculated_metrics": {
"success_ratio": 1,
"p99": 51,
"p50": 51,
"p95": 51
}
}
},
"meta": {
"versionApiKeyLastmodified": "8.2.1"
},
"scheduledTaskId": "bdfce750-fba0-11ec-9157-2f379249da99"
},
"type": "alert",
"references": [],
"namespaces": ["default"],
"migrationVersion": {
"alert": "8.2.0"
},
"updated_at": "2022-07-04T13:53:58.403Z"
}
}
}
89 changes: 0 additions & 89 deletions x-pack/test/functional/es_archives/alerts/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@
},
"type": "text"
},
"notifyWhen": {
"type": "keyword"
},
"params": {
"enabled": false,
"type": "object"
Expand All @@ -167,9 +164,6 @@
"scheduledTaskId": {
"type": "keyword"
},
"snoozeEndTime": {
"type": "keyword"
},
"tags": {
"type": "keyword"
},
Expand All @@ -178,89 +172,6 @@
},
"updatedBy": {
"type": "keyword"
},
"updatedAt": {
"type": "date"
},
"executionStatus": {
"properties": {
"numberOfTriggeredActions": {
"type": "long"
},
"status": {
"type": "keyword"
},
"lastExecutionDate": {
"type": "date"
},
"lastDuration": {
"type": "long"
},
"error": {
"properties": {
"reason": {
"type": "keyword"
},
"message": {
"type": "keyword"
}
}
},
"warning": {
"properties": {
"reason": {
"type": "keyword"
},
"message": {
"type": "keyword"
}
}
}
}
},
"monitoring": {
"properties": {
"execution": {
"properties": {
"history": {
"properties": {
"duration": {
"type": "long"
},
"success": {
"type": "boolean"
},
"timestamp": {
"type": "date"
}
}
},
"calculated_metrics": {
"properties": {
"p50": {
"type": "long"
},
"p95": {
"type": "long"
},
"p99": {
"type": "long"
},
"success_ratio": {
"type": "float"
}
}
}
}
}
}
},
"meta": {
"properties": {
"versionApiKeyLastmodified": {
"type": "keyword"
}
}
}
}
},
Expand Down

0 comments on commit d1f7e24

Please sign in to comment.