Skip to content

[ML] Error cloning a distinct count job created in the Single Metric wizard #23272

@peteharverson

Description

@peteharverson

Kibana version: 7.0.0-alpha1

An error occurs when cloning a job created in the Single Metric wizard in which distinct count was selected as the aggregation.

On cloning the job from the Jobs List, the Single Metric wizard opens up, but the 'Aggregation' and 'Field' inputs are empty, and an error is diplayed in the browser console:

image

Suspect this is because for 'distinct count' aggregations the Single Metric wizard creates a job with an aggregation used in the data feed, and the analysis_config then set to use this aggregation in the form:

"analysis_config": {
    "bucket_span": "15m",
    "summary_count_field_name": "dc_uri",
    "detectors": [
      {
        "detector_description": "distinct_count (uri)",
        "function": "non_zero_count",
        "detector_index": 0
      }
    ],
    "influencers": []
  },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions