Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Logs UI] Support partitioned jobs in the log entry rate results API #46459

Closed
weltenwort opened this issue Sep 24, 2019 · 1 comment · Fixed by #46751
Closed

[Logs UI] Support partitioned jobs in the log entry rate results API #46459

weltenwort opened this issue Sep 24, 2019 · 1 comment · Fixed by #46751
Assignees
Labels
Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services

Comments

@weltenwort
Copy link
Member

weltenwort commented Sep 24, 2019

Summary

The log rate analysis results API implemented in #42057 should be adapted to support returning the results of partitioned jobs.

Acceptance criteria

  • The below response has been validated to be compatible with the requirements of the UI and the result data provided by the ML jobs.
  • The response of the /api/infra/log_analysis/results/log_entry_rate route implements the following interface:
interface GetLogEntryRateSuccessResponse {
  data: {
    // length of a bucket in milliseconds
    bucketDuration: number;
    // a sequence of non-overlapping time buckets in ascending order
    histogramBuckets: Array<{
      // a set of data sets that analysis has been partitioned into
      dataSets: Array<{
        // the number of underlying buckets used in the analysis
        analysisBucketCount: number;
        // a set of anomalies found within this bucket and data set
        anomalies: Array<{
          // the number of log entries actually found
          actualLogEntryRate: number;
          // a relative measure of the anomalousness
          anomalyScore: number;
          // duration of the anomaly in milliseconds
          duration: number;
          // start of the anomaly as an epoch timestamp in milliseconds
          startTime: number;
          // the number of log entries typically found according to the model
          typicalLogEntryRate: number;
        }>
        // the average actual log entry rate
        averageActualLogEntryRate: number;
        // the data set id
        dataSetId: string;
      }>;
      // start of the bucket as an epoch timestamp in milliseconds
      startTime: number;
    }>;
  };
}
@weltenwort weltenwort added Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Sep 24, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-logs-ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants