Skip to content

Commit

Permalink
Use fetchClustersRange (#87882)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
chrisronline and kibanamachine authored Jan 12, 2021
1 parent 86d53b6 commit 04d4d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/monitoring/server/alerts/base_alert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class BaseAlert {
? {
timestamp: {
format: 'epoch_millis',
gte: limit - this.alertOptions.fetchClustersRange,
gte: +new Date() - limit - this.alertOptions.fetchClustersRange,
},
}
: undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class MissingMonitoringDataAlert extends BaseAlert {
id: ALERT_MISSING_MONITORING_DATA,
name: ALERT_DETAILS[ALERT_MISSING_MONITORING_DATA].label,
accessorKey: 'gapDuration',
fetchClustersRange: LIMIT_BUFFER,
defaultParams: {
duration: '15m',
limit: '1d',
Expand All @@ -62,7 +63,6 @@ export class MissingMonitoringDataAlert extends BaseAlert {
],
});
}

protected async fetchData(
params: CommonAlertParams,
callCluster: any,
Expand Down

0 comments on commit 04d4d85

Please sign in to comment.