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:

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": []
},
Kibana version: 7.0.0-alpha1
An error occurs when cloning a job created in the Single Metric wizard in which
distinct countwas 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:
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_configthen set to use this aggregation in the form: