Documentation
¶
Index ¶
- type Average
- type AverageType
- type BaseBucketAggregation
- type BaseBucketAggregationType
- type BaseMetricAggregation
- type BaseMetricAggregationType
- type BaseMovingAverageModelSettings
- type BaseMovingAverageModelSettingsModel
- type BasePipelineMetricAggregation
- type BasePipelineMetricAggregationType
- type BucketAggregation
- type BucketAggregationSettingsOrder
- type BucketAggregationType
- type BucketAggregationWithField
- type BucketAggregationWithFieldType
- type BucketAggsItem
- type BucketAggsSettingsOrder
- type BucketScript
- type BucketScriptType
- type Count
- type CountType
- type CumulativeSum
- type CumulativeSumType
- type DateHistogram
- type DateHistogramSettings
- type DateHistogramType
- type Derivative
- type DerivativeType
- type ElasticsearchDataQuery
- type ExtendedStat
- type ExtendedStatMetaType
- type ExtendedStatValue
- type ExtendedStats
- type ExtendedStatsType
- type Filter
- type Filters
- type FiltersSettings
- type FiltersType
- type GeoHashGrid
- type GeoHashGridSettings
- type GeoHashGridType
- type Histogram
- type HistogramSettings
- type HistogramType
- type Logs
- type LogsType
- type Max
- type MaxType
- type MetricAggregation
- type MetricAggregationSettings
- type MetricAggregationType
- type MetricAggregationWithField
- type MetricAggregationWithFieldType
- type MetricAggregationWithInlineScript
- type MetricAggregationWithInlineScriptType
- type MetricAggregationWithMissingSupport
- type MetricAggregationWithMissingSupportType
- type MetricAggregationWithSettings
- type MetricAggregationWithSettingsSettings
- type MetricsItem
- type MetricsSettings
- type Min
- type MinType
- type MovingAverage
- type MovingAverageEWMAModelSettings
- type MovingAverageEWMAModelSettingsModel
- type MovingAverageHoltModelSettings
- type MovingAverageHoltModelSettingsModel
- type MovingAverageHoltWintersModelSettings
- type MovingAverageHoltWintersModelSettingsModel
- type MovingAverageLinearModelSettings
- type MovingAverageLinearModelSettingsModel
- type MovingAverageModel
- type MovingAverageModelOption
- type MovingAverageModelOptionValue
- type MovingAverageSimpleModelSettings
- type MovingAverageSimpleModelSettingsModel
- type MovingAverageType
- type MovingFunction
- type MovingFunctionType
- type Nested
- type NestedType
- type Percentiles
- type PercentilesType
- type PipelineMetricAggregation
- type PipelineMetricAggregationSettings
- type PipelineMetricAggregationType
- type PipelineMetricAggregationWithMultipleBucketPaths
- type PipelineMetricAggregationWithMultipleBucketPathsType
- type PipelineVariable
- type Rate
- type RateType
- type RawData
- type RawDataType
- type RawDocument
- type RawDocumentType
- type SerialDiff
- type SerialDiffType
- type Sum
- type SumType
- type Terms
- type TermsOrder
- type TermsSettings
- type TermsSettingsOrder
- type TermsType
- type TopMetrics
- type TopMetricsType
- type UniqueCount
- type UniqueCountType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Average ¶
type Average struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type AverageType `json:"type"`
}
Average defines model for Average.
type AverageType ¶
type AverageType string
AverageType defines model for Average.Type.
const (
AverageTypeAvg AverageType = "avg"
)
Defines values for AverageType.
type BaseBucketAggregation ¶
type BaseBucketAggregation struct {
Id string `json:"id"`
Settings *interface{} `json:"settings,omitempty"`
Type BaseBucketAggregationType `json:"type"`
}
BaseBucketAggregation defines model for BaseBucketAggregation.
type BaseBucketAggregationType ¶
type BaseBucketAggregationType string
BaseBucketAggregationType defines model for BaseBucketAggregation.Type.
const ( BaseBucketAggregationTypeDateHistogram BaseBucketAggregationType = "date_histogram" BaseBucketAggregationTypeFilters BaseBucketAggregationType = "filters" BaseBucketAggregationTypeGeohashGrid BaseBucketAggregationType = "geohash_grid" BaseBucketAggregationTypeHistogram BaseBucketAggregationType = "histogram" BaseBucketAggregationTypeNested BaseBucketAggregationType = "nested" BaseBucketAggregationTypeTerms BaseBucketAggregationType = "terms" )
Defines values for BaseBucketAggregationType.
type BaseMetricAggregation ¶
type BaseMetricAggregation struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Type BaseMetricAggregationType `json:"type"`
}
BaseMetricAggregation defines model for BaseMetricAggregation.
type BaseMetricAggregationType ¶
type BaseMetricAggregationType string
BaseMetricAggregationType defines model for BaseMetricAggregation.Type.
const ( BaseMetricAggregationTypeAvg BaseMetricAggregationType = "avg" BaseMetricAggregationTypeBucketScript BaseMetricAggregationType = "bucket_script" BaseMetricAggregationTypeCardinality BaseMetricAggregationType = "cardinality" BaseMetricAggregationTypeCount BaseMetricAggregationType = "count" BaseMetricAggregationTypeCumulativeSum BaseMetricAggregationType = "cumulative_sum" BaseMetricAggregationTypeDerivative BaseMetricAggregationType = "derivative" BaseMetricAggregationTypeExtendedStats BaseMetricAggregationType = "extended_stats" BaseMetricAggregationTypeLogs BaseMetricAggregationType = "logs" BaseMetricAggregationTypeMax BaseMetricAggregationType = "max" BaseMetricAggregationTypeMin BaseMetricAggregationType = "min" BaseMetricAggregationTypeMovingAvg BaseMetricAggregationType = "moving_avg" BaseMetricAggregationTypeMovingFn BaseMetricAggregationType = "moving_fn" BaseMetricAggregationTypePercentiles BaseMetricAggregationType = "percentiles" BaseMetricAggregationTypeRate BaseMetricAggregationType = "rate" BaseMetricAggregationTypeRawData BaseMetricAggregationType = "raw_data" BaseMetricAggregationTypeRawDocument BaseMetricAggregationType = "raw_document" BaseMetricAggregationTypeSerialDiff BaseMetricAggregationType = "serial_diff" BaseMetricAggregationTypeSum BaseMetricAggregationType = "sum" BaseMetricAggregationTypeTopMetrics BaseMetricAggregationType = "top_metrics" )
Defines values for BaseMetricAggregationType.
type BaseMovingAverageModelSettings ¶
type BaseMovingAverageModelSettings struct {
Model BaseMovingAverageModelSettingsModel `json:"model"`
Predict string `json:"predict"`
Window string `json:"window"`
}
BaseMovingAverageModelSettings defines model for BaseMovingAverageModelSettings.
type BaseMovingAverageModelSettingsModel ¶
type BaseMovingAverageModelSettingsModel string
BaseMovingAverageModelSettingsModel defines model for BaseMovingAverageModelSettings.Model.
const ( BaseMovingAverageModelSettingsModelEwma BaseMovingAverageModelSettingsModel = "ewma" BaseMovingAverageModelSettingsModelHolt BaseMovingAverageModelSettingsModel = "holt" BaseMovingAverageModelSettingsModelHoltWinters BaseMovingAverageModelSettingsModel = "holt_winters" BaseMovingAverageModelSettingsModelLinear BaseMovingAverageModelSettingsModel = "linear" BaseMovingAverageModelSettingsModelSimple BaseMovingAverageModelSettingsModel = "simple" )
Defines values for BaseMovingAverageModelSettingsModel.
type BasePipelineMetricAggregation ¶
type BasePipelineMetricAggregation struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
Type BasePipelineMetricAggregationType `json:"type"`
}
BasePipelineMetricAggregation defines model for BasePipelineMetricAggregation.
type BasePipelineMetricAggregationType ¶
type BasePipelineMetricAggregationType string
BasePipelineMetricAggregationType defines model for BasePipelineMetricAggregation.Type.
const ( BasePipelineMetricAggregationTypeBucketScript BasePipelineMetricAggregationType = "bucket_script" BasePipelineMetricAggregationTypeCumulativeSum BasePipelineMetricAggregationType = "cumulative_sum" BasePipelineMetricAggregationTypeDerivative BasePipelineMetricAggregationType = "derivative" BasePipelineMetricAggregationTypeMovingAvg BasePipelineMetricAggregationType = "moving_avg" BasePipelineMetricAggregationTypeMovingFn BasePipelineMetricAggregationType = "moving_fn" BasePipelineMetricAggregationTypeSerialDiff BasePipelineMetricAggregationType = "serial_diff" )
Defines values for BasePipelineMetricAggregationType.
type BucketAggregation ¶
type BucketAggregation struct {
Field *string `json:"field,omitempty"`
Id *string `json:"id,omitempty"`
Settings *struct {
Filters []struct {
Label string `json:"label"`
Query string `json:"query"`
} `json:"filters,omitempty"`
Interval *string `json:"interval,omitempty"`
MinDocCount *string `json:"min_doc_count,omitempty"`
Missing *string `json:"missing,omitempty"`
Offset *string `json:"offset,omitempty"`
Order *BucketAggregationSettingsOrder `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Precision *string `json:"precision,omitempty"`
Size *string `json:"size,omitempty"`
TimeZone *string `json:"timeZone,omitempty"`
TrimEdges *string `json:"trimEdges,omitempty"`
} `json:"settings,omitempty"`
Type *interface{} `json:"type,omitempty"`
// contains filtered or unexported fields
}
BucketAggregation defines model for BucketAggregation.
type BucketAggregationSettingsOrder ¶
type BucketAggregationSettingsOrder string
BucketAggregationSettingsOrder defines model for BucketAggregation.Settings.Order.
const ( BucketAggregationSettingsOrderAsc BucketAggregationSettingsOrder = "asc" BucketAggregationSettingsOrderDesc BucketAggregationSettingsOrder = "desc" )
Defines values for BucketAggregationSettingsOrder.
type BucketAggregationType ¶
type BucketAggregationType string
BucketAggregationType defines model for BucketAggregationType.
const ( BucketAggregationTypeDateHistogram BucketAggregationType = "date_histogram" BucketAggregationTypeFilters BucketAggregationType = "filters" BucketAggregationTypeGeohashGrid BucketAggregationType = "geohash_grid" BucketAggregationTypeHistogram BucketAggregationType = "histogram" BucketAggregationTypeNested BucketAggregationType = "nested" BucketAggregationTypeTerms BucketAggregationType = "terms" )
Defines values for BucketAggregationType.
type BucketAggregationWithField ¶
type BucketAggregationWithField struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
Settings *interface{} `json:"settings,omitempty"`
Type BucketAggregationWithFieldType `json:"type"`
}
BucketAggregationWithField defines model for BucketAggregationWithField.
type BucketAggregationWithFieldType ¶
type BucketAggregationWithFieldType string
BucketAggregationWithFieldType defines model for BucketAggregationWithField.Type.
const ( BucketAggregationWithFieldTypeDateHistogram BucketAggregationWithFieldType = "date_histogram" BucketAggregationWithFieldTypeFilters BucketAggregationWithFieldType = "filters" BucketAggregationWithFieldTypeGeohashGrid BucketAggregationWithFieldType = "geohash_grid" BucketAggregationWithFieldTypeHistogram BucketAggregationWithFieldType = "histogram" BucketAggregationWithFieldTypeNested BucketAggregationWithFieldType = "nested" BucketAggregationWithFieldTypeTerms BucketAggregationWithFieldType = "terms" )
Defines values for BucketAggregationWithFieldType.
type BucketAggsItem ¶
type BucketAggsItem struct {
Field *string `json:"field,omitempty"`
Id *string `json:"id,omitempty"`
Settings *struct {
Filters []struct {
Label string `json:"label"`
Query string `json:"query"`
} `json:"filters,omitempty"`
Interval *string `json:"interval,omitempty"`
MinDocCount *string `json:"min_doc_count,omitempty"`
Missing *string `json:"missing,omitempty"`
Offset *string `json:"offset,omitempty"`
Order *BucketAggsSettingsOrder `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Precision *string `json:"precision,omitempty"`
Size *string `json:"size,omitempty"`
TimeZone *string `json:"timeZone,omitempty"`
TrimEdges *string `json:"trimEdges,omitempty"`
} `json:"settings,omitempty"`
Type *interface{} `json:"type,omitempty"`
// contains filtered or unexported fields
}
BucketAggsItem defines model for ElasticsearchDataQuery.bucketAggs.Item.
type BucketAggsSettingsOrder ¶
type BucketAggsSettingsOrder string
BucketAggsSettingsOrder defines model for ElasticsearchDataQuery.BucketAggs.Settings.Order.
const ( BucketAggsSettingsOrderAsc BucketAggsSettingsOrder = "asc" BucketAggsSettingsOrderDesc BucketAggsSettingsOrder = "desc" )
Defines values for BucketAggsSettingsOrder.
type BucketScript ¶
type BucketScript struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineVariables []struct {
Name string `json:"name"`
PipelineAgg string `json:"pipelineAgg"`
} `json:"pipelineVariables,omitempty"`
Settings *struct {
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type BucketScriptType `json:"type"`
}
BucketScript defines model for BucketScript.
type BucketScriptType ¶
type BucketScriptType string
BucketScriptType defines model for BucketScript.Type.
const (
BucketScriptTypeBucketScript BucketScriptType = "bucket_script"
)
Defines values for BucketScriptType.
type Count ¶
type Count struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Type CountType `json:"type"`
}
Count defines model for Count.
type CountType ¶
type CountType string
CountType defines model for Count.Type.
const (
CountTypeCount CountType = "count"
)
Defines values for CountType.
type CumulativeSum ¶
type CumulativeSum struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
Settings *struct {
Format *string `json:"format,omitempty"`
} `json:"settings,omitempty"`
Type CumulativeSumType `json:"type"`
}
CumulativeSum defines model for CumulativeSum.
type CumulativeSumType ¶
type CumulativeSumType string
CumulativeSumType defines model for CumulativeSum.Type.
const (
CumulativeSumTypeCumulativeSum CumulativeSumType = "cumulative_sum"
)
Defines values for CumulativeSumType.
type DateHistogram ¶
type DateHistogram struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
Settings *struct {
Interval *string `json:"interval,omitempty"`
MinDocCount *string `json:"min_doc_count,omitempty"`
Offset *string `json:"offset,omitempty"`
TimeZone *string `json:"timeZone,omitempty"`
TrimEdges *string `json:"trimEdges,omitempty"`
} `json:"settings,omitempty"`
Type DateHistogramType `json:"type"`
}
DateHistogram defines model for DateHistogram.
type DateHistogramSettings ¶
type DateHistogramSettings struct {
Interval *string `json:"interval,omitempty"`
MinDocCount *string `json:"min_doc_count,omitempty"`
Offset *string `json:"offset,omitempty"`
TimeZone *string `json:"timeZone,omitempty"`
TrimEdges *string `json:"trimEdges,omitempty"`
}
DateHistogramSettings defines model for DateHistogramSettings.
type DateHistogramType ¶
type DateHistogramType string
DateHistogramType defines model for DateHistogram.Type.
const (
DateHistogramTypeDateHistogram DateHistogramType = "date_histogram"
)
Defines values for DateHistogramType.
type Derivative ¶
type Derivative struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
Settings *struct {
Unit *string `json:"unit,omitempty"`
} `json:"settings,omitempty"`
Type DerivativeType `json:"type"`
}
Derivative defines model for Derivative.
type DerivativeType ¶
type DerivativeType string
DerivativeType defines model for Derivative.Type.
const (
DerivativeTypeDerivative DerivativeType = "derivative"
)
Defines values for DerivativeType.
type ElasticsearchDataQuery ¶
type ElasticsearchDataQuery struct {
// Alias pattern
Alias *string `json:"alias,omitempty"`
// List of bucket aggregations
BucketAggs []BucketAggsItem `json:"bucketAggs,omitempty"`
// For mixed data sources the selected datasource is on the query level.
// For non mixed scenarios this is undefined.
// TODO find a better way to do this ^ that's friendly to schema
// TODO this shouldn't be unknown but DataSourceRef | null
Datasource *interface{} `json:"datasource,omitempty"`
// Hide true if query is disabled (ie should not be returned to the dashboard)
// Note this does not always imply that the query should not be executed since
// the results from a hidden query may be used as the input to other queries (SSE etc)
Hide *bool `json:"hide,omitempty"`
// List of metric aggregations
Metrics []MetricsItem `json:"metrics,omitempty"`
// Lucene query
Query *string `json:"query,omitempty"`
// Specify the query flavor
// TODO make this required and give it a default
QueryType *string `json:"queryType,omitempty"`
// A unique identifier for the query within the list of targets.
// In server side expressions, the refId is used as a variable name to identify results.
// By default, the UI will assign A->Z; however setting meaningful names may be useful.
RefId string `json:"refId"`
// Name of time field
TimeField *string `json:"timeField,omitempty"`
}
ElasticsearchDataQuery defines model for ElasticsearchDataQuery.
type ExtendedStat ¶
type ExtendedStat struct {
Label string `json:"label"`
Value ExtendedStatValue `json:"value"`
}
ExtendedStat defines model for ExtendedStat.
type ExtendedStatMetaType ¶
type ExtendedStatMetaType string
ExtendedStatMetaType defines model for ExtendedStatMetaType.
const ( ExtendedStatMetaTypeAvg ExtendedStatMetaType = "avg" ExtendedStatMetaTypeCount ExtendedStatMetaType = "count" ExtendedStatMetaTypeMax ExtendedStatMetaType = "max" ExtendedStatMetaTypeMin ExtendedStatMetaType = "min" ExtendedStatMetaTypeStdDeviation ExtendedStatMetaType = "std_deviation" ExtendedStatMetaTypeStdDeviationBoundsLower ExtendedStatMetaType = "std_deviation_bounds_lower" ExtendedStatMetaTypeStdDeviationBoundsUpper ExtendedStatMetaType = "std_deviation_bounds_upper" ExtendedStatMetaTypeSum ExtendedStatMetaType = "sum" )
Defines values for ExtendedStatMetaType.
type ExtendedStatValue ¶
type ExtendedStatValue string
ExtendedStatValue defines model for ExtendedStat.Value.
const ( ExtendedStatValueAvg ExtendedStatValue = "avg" ExtendedStatValueCount ExtendedStatValue = "count" ExtendedStatValueMax ExtendedStatValue = "max" ExtendedStatValueMin ExtendedStatValue = "min" ExtendedStatValueStdDeviation ExtendedStatValue = "std_deviation" ExtendedStatValueStdDeviationBoundsLower ExtendedStatValue = "std_deviation_bounds_lower" ExtendedStatValueStdDeviationBoundsUpper ExtendedStatValue = "std_deviation_bounds_upper" ExtendedStatValueSum ExtendedStatValue = "sum" )
Defines values for ExtendedStatValue.
type ExtendedStats ¶
type ExtendedStats struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Meta map[string]interface{} `json:"meta,omitempty"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
Script *interface{} `json:"script,omitempty"`
Sigma *string `json:"sigma,omitempty"`
} `json:"settings,omitempty"`
Type ExtendedStatsType `json:"type"`
}
ExtendedStats defines model for ExtendedStats.
type ExtendedStatsType ¶
type ExtendedStatsType string
ExtendedStatsType defines model for ExtendedStats.Type.
const (
ExtendedStatsTypeExtendedStats ExtendedStatsType = "extended_stats"
)
Defines values for ExtendedStatsType.
type Filters ¶
type Filters struct {
Id string `json:"id"`
Settings *struct {
Filters []struct {
Label string `json:"label"`
Query string `json:"query"`
} `json:"filters,omitempty"`
} `json:"settings,omitempty"`
Type FiltersType `json:"type"`
}
Filters defines model for Filters.
type FiltersSettings ¶
type FiltersSettings struct {
Filters []struct {
Label string `json:"label"`
Query string `json:"query"`
} `json:"filters,omitempty"`
}
FiltersSettings defines model for FiltersSettings.
type FiltersType ¶
type FiltersType string
FiltersType defines model for Filters.Type.
const (
FiltersTypeFilters FiltersType = "filters"
)
Defines values for FiltersType.
type GeoHashGrid ¶
type GeoHashGrid struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
Settings *struct {
Precision *string `json:"precision,omitempty"`
} `json:"settings,omitempty"`
Type GeoHashGridType `json:"type"`
}
GeoHashGrid defines model for GeoHashGrid.
type GeoHashGridSettings ¶
type GeoHashGridSettings struct {
Precision *string `json:"precision,omitempty"`
}
GeoHashGridSettings defines model for GeoHashGridSettings.
type GeoHashGridType ¶
type GeoHashGridType string
GeoHashGridType defines model for GeoHashGrid.Type.
const (
GeoHashGridTypeGeohashGrid GeoHashGridType = "geohash_grid"
)
Defines values for GeoHashGridType.
type Histogram ¶
type Histogram struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
Settings *struct {
Interval *string `json:"interval,omitempty"`
MinDocCount *string `json:"min_doc_count,omitempty"`
} `json:"settings,omitempty"`
Type HistogramType `json:"type"`
}
Histogram defines model for Histogram.
type HistogramSettings ¶
type HistogramSettings struct {
Interval *string `json:"interval,omitempty"`
MinDocCount *string `json:"min_doc_count,omitempty"`
}
HistogramSettings defines model for HistogramSettings.
type HistogramType ¶
type HistogramType string
HistogramType defines model for Histogram.Type.
const (
HistogramTypeHistogram HistogramType = "histogram"
)
Defines values for HistogramType.
type Logs ¶
type Logs struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Limit *string `json:"limit,omitempty"`
} `json:"settings,omitempty"`
Type LogsType `json:"type"`
}
Logs defines model for Logs.
type LogsType ¶
type LogsType string
LogsType defines model for Logs.Type.
const (
LogsTypeLogs LogsType = "logs"
)
Defines values for LogsType.
type Max ¶
type Max struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type MaxType `json:"type"`
}
Max defines model for Max.
type MaxType ¶
type MaxType string
MaxType defines model for Max.Type.
const (
MaxTypeMax MaxType = "max"
)
Defines values for MaxType.
type MetricAggregation ¶
type MetricAggregation struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id *string `json:"id,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
PipelineVariables []struct {
Name string `json:"name"`
PipelineAgg string `json:"pipelineAgg"`
} `json:"pipelineVariables,omitempty"`
Settings *MetricAggregationSettings `json:"settings,omitempty"`
Type *interface{} `json:"type,omitempty"`
// contains filtered or unexported fields
}
MetricAggregation defines model for MetricAggregation.
type MetricAggregationSettings ¶
type MetricAggregationSettings struct {
Format *string `json:"format,omitempty"`
Lag *string `json:"lag,omitempty"`
Limit *string `json:"limit,omitempty"`
Metrics []string `json:"metrics,omitempty"`
Missing *string `json:"missing,omitempty"`
Mode *string `json:"mode,omitempty"`
Order *string `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Percents []string `json:"percents,omitempty"`
PrecisionThreshold *string `json:"precision_threshold,omitempty"`
Script *interface{} `json:"script,omitempty"`
Shift *string `json:"shift,omitempty"`
Sigma *string `json:"sigma,omitempty"`
Size *string `json:"size,omitempty"`
Unit *string `json:"unit,omitempty"`
Window *string `json:"window,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
MetricAggregationSettings defines model for MetricAggregation.Settings.
type MetricAggregationType ¶
type MetricAggregationType string
MetricAggregationType defines model for MetricAggregationType.
const ( MetricAggregationTypeAvg MetricAggregationType = "avg" MetricAggregationTypeBucketScript MetricAggregationType = "bucket_script" MetricAggregationTypeCardinality MetricAggregationType = "cardinality" MetricAggregationTypeCount MetricAggregationType = "count" MetricAggregationTypeCumulativeSum MetricAggregationType = "cumulative_sum" MetricAggregationTypeDerivative MetricAggregationType = "derivative" MetricAggregationTypeExtendedStats MetricAggregationType = "extended_stats" MetricAggregationTypeLogs MetricAggregationType = "logs" MetricAggregationTypeMax MetricAggregationType = "max" MetricAggregationTypeMin MetricAggregationType = "min" MetricAggregationTypeMovingAvg MetricAggregationType = "moving_avg" MetricAggregationTypeMovingFn MetricAggregationType = "moving_fn" MetricAggregationTypePercentiles MetricAggregationType = "percentiles" MetricAggregationTypeRate MetricAggregationType = "rate" MetricAggregationTypeRawData MetricAggregationType = "raw_data" MetricAggregationTypeRawDocument MetricAggregationType = "raw_document" MetricAggregationTypeSerialDiff MetricAggregationType = "serial_diff" MetricAggregationTypeSum MetricAggregationType = "sum" MetricAggregationTypeTopMetrics MetricAggregationType = "top_metrics" )
Defines values for MetricAggregationType.
type MetricAggregationWithField ¶
type MetricAggregationWithField struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Type MetricAggregationWithFieldType `json:"type"`
}
MetricAggregationWithField defines model for MetricAggregationWithField.
type MetricAggregationWithFieldType ¶
type MetricAggregationWithFieldType string
MetricAggregationWithFieldType defines model for MetricAggregationWithField.Type.
const ( MetricAggregationWithFieldTypeAvg MetricAggregationWithFieldType = "avg" MetricAggregationWithFieldTypeBucketScript MetricAggregationWithFieldType = "bucket_script" MetricAggregationWithFieldTypeCardinality MetricAggregationWithFieldType = "cardinality" MetricAggregationWithFieldTypeCount MetricAggregationWithFieldType = "count" MetricAggregationWithFieldTypeCumulativeSum MetricAggregationWithFieldType = "cumulative_sum" MetricAggregationWithFieldTypeDerivative MetricAggregationWithFieldType = "derivative" MetricAggregationWithFieldTypeExtendedStats MetricAggregationWithFieldType = "extended_stats" MetricAggregationWithFieldTypeLogs MetricAggregationWithFieldType = "logs" MetricAggregationWithFieldTypeMax MetricAggregationWithFieldType = "max" MetricAggregationWithFieldTypeMin MetricAggregationWithFieldType = "min" MetricAggregationWithFieldTypeMovingAvg MetricAggregationWithFieldType = "moving_avg" MetricAggregationWithFieldTypeMovingFn MetricAggregationWithFieldType = "moving_fn" MetricAggregationWithFieldTypePercentiles MetricAggregationWithFieldType = "percentiles" MetricAggregationWithFieldTypeRate MetricAggregationWithFieldType = "rate" MetricAggregationWithFieldTypeRawData MetricAggregationWithFieldType = "raw_data" MetricAggregationWithFieldTypeRawDocument MetricAggregationWithFieldType = "raw_document" MetricAggregationWithFieldTypeSerialDiff MetricAggregationWithFieldType = "serial_diff" MetricAggregationWithFieldTypeSum MetricAggregationWithFieldType = "sum" MetricAggregationWithFieldTypeTopMetrics MetricAggregationWithFieldType = "top_metrics" )
Defines values for MetricAggregationWithFieldType.
type MetricAggregationWithInlineScript ¶
type MetricAggregationWithInlineScript struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type MetricAggregationWithInlineScriptType `json:"type"`
}
MetricAggregationWithInlineScript defines model for MetricAggregationWithInlineScript.
type MetricAggregationWithInlineScriptType ¶
type MetricAggregationWithInlineScriptType string
MetricAggregationWithInlineScriptType defines model for MetricAggregationWithInlineScript.Type.
const ( MetricAggregationWithInlineScriptTypeAvg MetricAggregationWithInlineScriptType = "avg" MetricAggregationWithInlineScriptTypeBucketScript MetricAggregationWithInlineScriptType = "bucket_script" MetricAggregationWithInlineScriptTypeCardinality MetricAggregationWithInlineScriptType = "cardinality" MetricAggregationWithInlineScriptTypeCount MetricAggregationWithInlineScriptType = "count" MetricAggregationWithInlineScriptTypeCumulativeSum MetricAggregationWithInlineScriptType = "cumulative_sum" MetricAggregationWithInlineScriptTypeDerivative MetricAggregationWithInlineScriptType = "derivative" MetricAggregationWithInlineScriptTypeExtendedStats MetricAggregationWithInlineScriptType = "extended_stats" MetricAggregationWithInlineScriptTypeLogs MetricAggregationWithInlineScriptType = "logs" MetricAggregationWithInlineScriptTypeMax MetricAggregationWithInlineScriptType = "max" MetricAggregationWithInlineScriptTypeMin MetricAggregationWithInlineScriptType = "min" MetricAggregationWithInlineScriptTypeMovingAvg MetricAggregationWithInlineScriptType = "moving_avg" MetricAggregationWithInlineScriptTypeMovingFn MetricAggregationWithInlineScriptType = "moving_fn" MetricAggregationWithInlineScriptTypePercentiles MetricAggregationWithInlineScriptType = "percentiles" MetricAggregationWithInlineScriptTypeRate MetricAggregationWithInlineScriptType = "rate" MetricAggregationWithInlineScriptTypeRawData MetricAggregationWithInlineScriptType = "raw_data" MetricAggregationWithInlineScriptTypeRawDocument MetricAggregationWithInlineScriptType = "raw_document" MetricAggregationWithInlineScriptTypeSerialDiff MetricAggregationWithInlineScriptType = "serial_diff" MetricAggregationWithInlineScriptTypeSum MetricAggregationWithInlineScriptType = "sum" MetricAggregationWithInlineScriptTypeTopMetrics MetricAggregationWithInlineScriptType = "top_metrics" )
Defines values for MetricAggregationWithInlineScriptType.
type MetricAggregationWithMissingSupport ¶
type MetricAggregationWithMissingSupport struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
} `json:"settings,omitempty"`
Type MetricAggregationWithMissingSupportType `json:"type"`
}
MetricAggregationWithMissingSupport defines model for MetricAggregationWithMissingSupport.
type MetricAggregationWithMissingSupportType ¶
type MetricAggregationWithMissingSupportType string
MetricAggregationWithMissingSupportType defines model for MetricAggregationWithMissingSupport.Type.
const ( MetricAggregationWithMissingSupportTypeAvg MetricAggregationWithMissingSupportType = "avg" MetricAggregationWithMissingSupportTypeBucketScript MetricAggregationWithMissingSupportType = "bucket_script" MetricAggregationWithMissingSupportTypeCardinality MetricAggregationWithMissingSupportType = "cardinality" MetricAggregationWithMissingSupportTypeCount MetricAggregationWithMissingSupportType = "count" MetricAggregationWithMissingSupportTypeCumulativeSum MetricAggregationWithMissingSupportType = "cumulative_sum" MetricAggregationWithMissingSupportTypeDerivative MetricAggregationWithMissingSupportType = "derivative" MetricAggregationWithMissingSupportTypeExtendedStats MetricAggregationWithMissingSupportType = "extended_stats" MetricAggregationWithMissingSupportTypeLogs MetricAggregationWithMissingSupportType = "logs" MetricAggregationWithMissingSupportTypeMax MetricAggregationWithMissingSupportType = "max" MetricAggregationWithMissingSupportTypeMin MetricAggregationWithMissingSupportType = "min" MetricAggregationWithMissingSupportTypeMovingAvg MetricAggregationWithMissingSupportType = "moving_avg" MetricAggregationWithMissingSupportTypeMovingFn MetricAggregationWithMissingSupportType = "moving_fn" MetricAggregationWithMissingSupportTypePercentiles MetricAggregationWithMissingSupportType = "percentiles" MetricAggregationWithMissingSupportTypeRate MetricAggregationWithMissingSupportType = "rate" MetricAggregationWithMissingSupportTypeRawData MetricAggregationWithMissingSupportType = "raw_data" MetricAggregationWithMissingSupportTypeRawDocument MetricAggregationWithMissingSupportType = "raw_document" MetricAggregationWithMissingSupportTypeSerialDiff MetricAggregationWithMissingSupportType = "serial_diff" MetricAggregationWithMissingSupportTypeSum MetricAggregationWithMissingSupportType = "sum" MetricAggregationWithMissingSupportTypeTopMetrics MetricAggregationWithMissingSupportType = "top_metrics" )
Defines values for MetricAggregationWithMissingSupportType.
type MetricAggregationWithSettings ¶
type MetricAggregationWithSettings struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id *string `json:"id,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
PipelineVariables []struct {
Name string `json:"name"`
PipelineAgg string `json:"pipelineAgg"`
} `json:"pipelineVariables,omitempty"`
Settings *MetricAggregationWithSettingsSettings `json:"settings,omitempty"`
Type *interface{} `json:"type,omitempty"`
// contains filtered or unexported fields
}
MetricAggregationWithSettings defines model for MetricAggregationWithSettings.
type MetricAggregationWithSettingsSettings ¶
type MetricAggregationWithSettingsSettings struct {
Format *string `json:"format,omitempty"`
Lag *string `json:"lag,omitempty"`
Limit *string `json:"limit,omitempty"`
Metrics []string `json:"metrics,omitempty"`
Missing *string `json:"missing,omitempty"`
Mode *string `json:"mode,omitempty"`
Order *string `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Percents []string `json:"percents,omitempty"`
PrecisionThreshold *string `json:"precision_threshold,omitempty"`
Script *interface{} `json:"script,omitempty"`
Shift *string `json:"shift,omitempty"`
Sigma *string `json:"sigma,omitempty"`
Size *string `json:"size,omitempty"`
Unit *string `json:"unit,omitempty"`
Window *string `json:"window,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
MetricAggregationWithSettingsSettings defines model for MetricAggregationWithSettings.Settings.
type MetricsItem ¶
type MetricsItem struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id *string `json:"id,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
PipelineVariables []struct {
Name string `json:"name"`
PipelineAgg string `json:"pipelineAgg"`
} `json:"pipelineVariables,omitempty"`
Settings *MetricsSettings `json:"settings,omitempty"`
Type *interface{} `json:"type,omitempty"`
// contains filtered or unexported fields
}
MetricsItem defines model for ElasticsearchDataQuery.metrics.Item.
type MetricsSettings ¶
type MetricsSettings struct {
Format *string `json:"format,omitempty"`
Lag *string `json:"lag,omitempty"`
Limit *string `json:"limit,omitempty"`
Metrics []string `json:"metrics,omitempty"`
Missing *string `json:"missing,omitempty"`
Mode *string `json:"mode,omitempty"`
Order *string `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Percents []string `json:"percents,omitempty"`
PrecisionThreshold *string `json:"precision_threshold,omitempty"`
Script *interface{} `json:"script,omitempty"`
Shift *string `json:"shift,omitempty"`
Sigma *string `json:"sigma,omitempty"`
Size *string `json:"size,omitempty"`
Unit *string `json:"unit,omitempty"`
Window *string `json:"window,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
MetricsSettings defines model for ElasticsearchDataQuery.Metrics.Settings.
type Min ¶
type Min struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type MinType `json:"type"`
}
Min defines model for Min.
type MinType ¶
type MinType string
MinType defines model for Min.Type.
const (
MinTypeMin MinType = "min"
)
Defines values for MinType.
type MovingAverage ¶
type MovingAverage struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
Settings map[string]interface{} `json:"settings,omitempty"`
Type MovingAverageType `json:"type"`
}
#MovingAverage's settings are overridden in types.ts
type MovingAverageEWMAModelSettings ¶
type MovingAverageEWMAModelSettings struct {
Minimize bool `json:"minimize"`
Model MovingAverageEWMAModelSettingsModel `json:"model"`
Predict string `json:"predict"`
Settings *struct {
Alpha *string `json:"alpha,omitempty"`
} `json:"settings,omitempty"`
Window string `json:"window"`
}
MovingAverageEWMAModelSettings defines model for MovingAverageEWMAModelSettings.
type MovingAverageEWMAModelSettingsModel ¶
type MovingAverageEWMAModelSettingsModel string
MovingAverageEWMAModelSettingsModel defines model for MovingAverageEWMAModelSettings.Model.
const (
MovingAverageEWMAModelSettingsModelEwma MovingAverageEWMAModelSettingsModel = "ewma"
)
Defines values for MovingAverageEWMAModelSettingsModel.
type MovingAverageHoltModelSettings ¶
type MovingAverageHoltModelSettings struct {
Minimize bool `json:"minimize"`
Model MovingAverageHoltModelSettingsModel `json:"model"`
Predict string `json:"predict"`
Settings struct {
Alpha *string `json:"alpha,omitempty"`
Beta *string `json:"beta,omitempty"`
} `json:"settings"`
Window string `json:"window"`
}
MovingAverageHoltModelSettings defines model for MovingAverageHoltModelSettings.
type MovingAverageHoltModelSettingsModel ¶
type MovingAverageHoltModelSettingsModel string
MovingAverageHoltModelSettingsModel defines model for MovingAverageHoltModelSettings.Model.
const (
MovingAverageHoltModelSettingsModelHolt MovingAverageHoltModelSettingsModel = "holt"
)
Defines values for MovingAverageHoltModelSettingsModel.
type MovingAverageHoltWintersModelSettings ¶
type MovingAverageHoltWintersModelSettings struct {
Minimize bool `json:"minimize"`
Model MovingAverageHoltWintersModelSettingsModel `json:"model"`
Predict string `json:"predict"`
Settings struct {
Alpha *string `json:"alpha,omitempty"`
Beta *string `json:"beta,omitempty"`
Gamma *string `json:"gamma,omitempty"`
Pad *bool `json:"pad,omitempty"`
Period *string `json:"period,omitempty"`
} `json:"settings"`
Window string `json:"window"`
}
MovingAverageHoltWintersModelSettings defines model for MovingAverageHoltWintersModelSettings.
type MovingAverageHoltWintersModelSettingsModel ¶
type MovingAverageHoltWintersModelSettingsModel string
MovingAverageHoltWintersModelSettingsModel defines model for MovingAverageHoltWintersModelSettings.Model.
const (
MovingAverageHoltWintersModelSettingsModelHoltWinters MovingAverageHoltWintersModelSettingsModel = "holt_winters"
)
Defines values for MovingAverageHoltWintersModelSettingsModel.
type MovingAverageLinearModelSettings ¶
type MovingAverageLinearModelSettings struct {
Model MovingAverageLinearModelSettingsModel `json:"model"`
Predict string `json:"predict"`
Window string `json:"window"`
}
MovingAverageLinearModelSettings defines model for MovingAverageLinearModelSettings.
type MovingAverageLinearModelSettingsModel ¶
type MovingAverageLinearModelSettingsModel string
MovingAverageLinearModelSettingsModel defines model for MovingAverageLinearModelSettings.Model.
const (
MovingAverageLinearModelSettingsModelLinear MovingAverageLinearModelSettingsModel = "linear"
)
Defines values for MovingAverageLinearModelSettingsModel.
type MovingAverageModel ¶
type MovingAverageModel string
MovingAverageModel defines model for MovingAverageModel.
const ( MovingAverageModelEwma MovingAverageModel = "ewma" MovingAverageModelHolt MovingAverageModel = "holt" MovingAverageModelHoltWinters MovingAverageModel = "holt_winters" MovingAverageModelLinear MovingAverageModel = "linear" MovingAverageModelSimple MovingAverageModel = "simple" )
Defines values for MovingAverageModel.
type MovingAverageModelOption ¶
type MovingAverageModelOption struct {
Label string `json:"label"`
Value MovingAverageModelOptionValue `json:"value"`
}
MovingAverageModelOption defines model for MovingAverageModelOption.
type MovingAverageModelOptionValue ¶
type MovingAverageModelOptionValue string
MovingAverageModelOptionValue defines model for MovingAverageModelOption.Value.
const ( MovingAverageModelOptionValueEwma MovingAverageModelOptionValue = "ewma" MovingAverageModelOptionValueHolt MovingAverageModelOptionValue = "holt" MovingAverageModelOptionValueHoltWinters MovingAverageModelOptionValue = "holt_winters" MovingAverageModelOptionValueLinear MovingAverageModelOptionValue = "linear" MovingAverageModelOptionValueSimple MovingAverageModelOptionValue = "simple" )
Defines values for MovingAverageModelOptionValue.
type MovingAverageSimpleModelSettings ¶
type MovingAverageSimpleModelSettings struct {
Model MovingAverageSimpleModelSettingsModel `json:"model"`
Predict string `json:"predict"`
Window string `json:"window"`
}
MovingAverageSimpleModelSettings defines model for MovingAverageSimpleModelSettings.
type MovingAverageSimpleModelSettingsModel ¶
type MovingAverageSimpleModelSettingsModel string
MovingAverageSimpleModelSettingsModel defines model for MovingAverageSimpleModelSettings.Model.
const (
MovingAverageSimpleModelSettingsModelSimple MovingAverageSimpleModelSettingsModel = "simple"
)
Defines values for MovingAverageSimpleModelSettingsModel.
type MovingAverageType ¶
type MovingAverageType string
MovingAverageType defines model for MovingAverage.Type.
const (
MovingAverageTypeMovingAvg MovingAverageType = "moving_avg"
)
Defines values for MovingAverageType.
type MovingFunction ¶
type MovingFunction struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
Settings *struct {
Script *interface{} `json:"script,omitempty"`
Shift *string `json:"shift,omitempty"`
Window *string `json:"window,omitempty"`
} `json:"settings,omitempty"`
Type MovingFunctionType `json:"type"`
}
MovingFunction defines model for MovingFunction.
type MovingFunctionType ¶
type MovingFunctionType string
MovingFunctionType defines model for MovingFunction.Type.
const (
MovingFunctionTypeMovingFn MovingFunctionType = "moving_fn"
)
Defines values for MovingFunctionType.
type Nested ¶
type Nested struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
Settings map[string]interface{} `json:"settings,omitempty"`
Type NestedType `json:"type"`
}
Nested defines model for Nested.
type NestedType ¶
type NestedType string
NestedType defines model for Nested.Type.
const (
NestedTypeNested NestedType = "nested"
)
Defines values for NestedType.
type Percentiles ¶
type Percentiles struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
Percents []string `json:"percents,omitempty"`
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type PercentilesType `json:"type"`
}
Percentiles defines model for Percentiles.
type PercentilesType ¶
type PercentilesType string
PercentilesType defines model for Percentiles.Type.
const (
PercentilesTypePercentiles PercentilesType = "percentiles"
)
Defines values for PercentilesType.
type PipelineMetricAggregation ¶
type PipelineMetricAggregation struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id *string `json:"id,omitempty"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
PipelineVariables []struct {
Name string `json:"name"`
PipelineAgg string `json:"pipelineAgg"`
} `json:"pipelineVariables,omitempty"`
Settings *PipelineMetricAggregationSettings `json:"settings,omitempty"`
Type *interface{} `json:"type,omitempty"`
// contains filtered or unexported fields
}
PipelineMetricAggregation defines model for PipelineMetricAggregation.
type PipelineMetricAggregationSettings ¶
type PipelineMetricAggregationSettings struct {
Format *string `json:"format,omitempty"`
Script *interface{} `json:"script,omitempty"`
Unit *string `json:"unit,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PipelineMetricAggregationSettings defines model for PipelineMetricAggregation.Settings.
type PipelineMetricAggregationType ¶
type PipelineMetricAggregationType string
PipelineMetricAggregationType defines model for PipelineMetricAggregationType.
const ( PipelineMetricAggregationTypeBucketScript PipelineMetricAggregationType = "bucket_script" PipelineMetricAggregationTypeCumulativeSum PipelineMetricAggregationType = "cumulative_sum" PipelineMetricAggregationTypeDerivative PipelineMetricAggregationType = "derivative" PipelineMetricAggregationTypeMovingAvg PipelineMetricAggregationType = "moving_avg" PipelineMetricAggregationTypeMovingFn PipelineMetricAggregationType = "moving_fn" PipelineMetricAggregationTypeSerialDiff PipelineMetricAggregationType = "serial_diff" )
Defines values for PipelineMetricAggregationType.
type PipelineMetricAggregationWithMultipleBucketPaths ¶
type PipelineMetricAggregationWithMultipleBucketPaths struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineVariables []struct {
Name string `json:"name"`
PipelineAgg string `json:"pipelineAgg"`
} `json:"pipelineVariables,omitempty"`
Type PipelineMetricAggregationWithMultipleBucketPathsType `json:"type"`
}
PipelineMetricAggregationWithMultipleBucketPaths defines model for PipelineMetricAggregationWithMultipleBucketPaths.
type PipelineMetricAggregationWithMultipleBucketPathsType ¶
type PipelineMetricAggregationWithMultipleBucketPathsType string
PipelineMetricAggregationWithMultipleBucketPathsType defines model for PipelineMetricAggregationWithMultipleBucketPaths.Type.
const ( PipelineMetricAggregationWithMultipleBucketPathsTypeAvg PipelineMetricAggregationWithMultipleBucketPathsType = "avg" PipelineMetricAggregationWithMultipleBucketPathsTypeBucketScript PipelineMetricAggregationWithMultipleBucketPathsType = "bucket_script" PipelineMetricAggregationWithMultipleBucketPathsTypeCardinality PipelineMetricAggregationWithMultipleBucketPathsType = "cardinality" PipelineMetricAggregationWithMultipleBucketPathsTypeCount PipelineMetricAggregationWithMultipleBucketPathsType = "count" PipelineMetricAggregationWithMultipleBucketPathsTypeCumulativeSum PipelineMetricAggregationWithMultipleBucketPathsType = "cumulative_sum" PipelineMetricAggregationWithMultipleBucketPathsTypeDerivative PipelineMetricAggregationWithMultipleBucketPathsType = "derivative" PipelineMetricAggregationWithMultipleBucketPathsTypeExtendedStats PipelineMetricAggregationWithMultipleBucketPathsType = "extended_stats" PipelineMetricAggregationWithMultipleBucketPathsTypeLogs PipelineMetricAggregationWithMultipleBucketPathsType = "logs" PipelineMetricAggregationWithMultipleBucketPathsTypeMax PipelineMetricAggregationWithMultipleBucketPathsType = "max" PipelineMetricAggregationWithMultipleBucketPathsTypeMin PipelineMetricAggregationWithMultipleBucketPathsType = "min" PipelineMetricAggregationWithMultipleBucketPathsTypeMovingAvg PipelineMetricAggregationWithMultipleBucketPathsType = "moving_avg" PipelineMetricAggregationWithMultipleBucketPathsTypeMovingFn PipelineMetricAggregationWithMultipleBucketPathsType = "moving_fn" PipelineMetricAggregationWithMultipleBucketPathsTypePercentiles PipelineMetricAggregationWithMultipleBucketPathsType = "percentiles" PipelineMetricAggregationWithMultipleBucketPathsTypeRate PipelineMetricAggregationWithMultipleBucketPathsType = "rate" PipelineMetricAggregationWithMultipleBucketPathsTypeRawData PipelineMetricAggregationWithMultipleBucketPathsType = "raw_data" PipelineMetricAggregationWithMultipleBucketPathsTypeRawDocument PipelineMetricAggregationWithMultipleBucketPathsType = "raw_document" PipelineMetricAggregationWithMultipleBucketPathsTypeSerialDiff PipelineMetricAggregationWithMultipleBucketPathsType = "serial_diff" PipelineMetricAggregationWithMultipleBucketPathsTypeSum PipelineMetricAggregationWithMultipleBucketPathsType = "sum" PipelineMetricAggregationWithMultipleBucketPathsTypeTopMetrics PipelineMetricAggregationWithMultipleBucketPathsType = "top_metrics" )
Defines values for PipelineMetricAggregationWithMultipleBucketPathsType.
type PipelineVariable ¶
PipelineVariable defines model for PipelineVariable.
type Rate ¶
type Rate struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Mode *string `json:"mode,omitempty"`
Unit *string `json:"unit,omitempty"`
} `json:"settings,omitempty"`
Type RateType `json:"type"`
}
Rate defines model for Rate.
type RateType ¶
type RateType string
RateType defines model for Rate.Type.
const (
RateTypeRate RateType = "rate"
)
Defines values for RateType.
type RawData ¶
type RawData struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Size *string `json:"size,omitempty"`
} `json:"settings,omitempty"`
Type RawDataType `json:"type"`
}
RawData defines model for RawData.
type RawDataType ¶
type RawDataType string
RawDataType defines model for RawData.Type.
const (
RawDataTypeRawData RawDataType = "raw_data"
)
Defines values for RawDataType.
type RawDocument ¶
type RawDocument struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Size *string `json:"size,omitempty"`
} `json:"settings,omitempty"`
Type RawDocumentType `json:"type"`
}
RawDocument defines model for RawDocument.
type RawDocumentType ¶
type RawDocumentType string
RawDocumentType defines model for RawDocument.Type.
const (
RawDocumentTypeRawDocument RawDocumentType = "raw_document"
)
Defines values for RawDocumentType.
type SerialDiff ¶
type SerialDiff struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
PipelineAgg *string `json:"pipelineAgg,omitempty"`
Settings *struct {
Lag *string `json:"lag,omitempty"`
} `json:"settings,omitempty"`
Type SerialDiffType `json:"type"`
}
SerialDiff defines model for SerialDiff.
type SerialDiffType ¶
type SerialDiffType string
SerialDiffType defines model for SerialDiff.Type.
const (
SerialDiffTypeSerialDiff SerialDiffType = "serial_diff"
)
Defines values for SerialDiffType.
type Sum ¶
type Sum struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
Script *interface{} `json:"script,omitempty"`
} `json:"settings,omitempty"`
Type SumType `json:"type"`
}
Sum defines model for Sum.
type SumType ¶
type SumType string
SumType defines model for Sum.Type.
const (
SumTypeSum SumType = "sum"
)
Defines values for SumType.
type Terms ¶
type Terms struct {
Field *string `json:"field,omitempty"`
Id string `json:"id"`
Settings *struct {
MinDocCount *string `json:"min_doc_count,omitempty"`
Missing *string `json:"missing,omitempty"`
Order *TermsSettingsOrder `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Size *string `json:"size,omitempty"`
} `json:"settings,omitempty"`
Type TermsType `json:"type"`
}
Terms defines model for Terms.
type TermsOrder ¶
type TermsOrder string
TermsOrder defines model for TermsOrder.
const ( TermsOrderAsc TermsOrder = "asc" TermsOrderDesc TermsOrder = "desc" )
Defines values for TermsOrder.
type TermsSettings ¶
type TermsSettings struct {
MinDocCount *string `json:"min_doc_count,omitempty"`
Missing *string `json:"missing,omitempty"`
Order *TermsSettingsOrder `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
Size *string `json:"size,omitempty"`
}
TermsSettings defines model for TermsSettings.
type TermsSettingsOrder ¶
type TermsSettingsOrder string
TermsSettingsOrder defines model for Terms.Settings.Order.
const ( TermsSettingsOrderAsc TermsSettingsOrder = "asc" TermsSettingsOrderDesc TermsSettingsOrder = "desc" )
Defines values for TermsSettingsOrder.
type TermsType ¶
type TermsType string
TermsType defines model for Terms.Type.
const (
TermsTypeTerms TermsType = "terms"
)
Defines values for TermsType.
type TopMetrics ¶
type TopMetrics struct {
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Metrics []string `json:"metrics,omitempty"`
Order *string `json:"order,omitempty"`
OrderBy *string `json:"orderBy,omitempty"`
} `json:"settings,omitempty"`
Type TopMetricsType `json:"type"`
}
TopMetrics defines model for TopMetrics.
type TopMetricsType ¶
type TopMetricsType string
TopMetricsType defines model for TopMetrics.Type.
const (
TopMetricsTypeTopMetrics TopMetricsType = "top_metrics"
)
Defines values for TopMetricsType.
type UniqueCount ¶
type UniqueCount struct {
Field *string `json:"field,omitempty"`
Hide *bool `json:"hide,omitempty"`
Id string `json:"id"`
Settings *struct {
Missing *string `json:"missing,omitempty"`
PrecisionThreshold *string `json:"precision_threshold,omitempty"`
} `json:"settings,omitempty"`
Type UniqueCountType `json:"type"`
}
UniqueCount defines model for UniqueCount.
type UniqueCountType ¶
type UniqueCountType string
UniqueCountType defines model for UniqueCount.Type.
const (
UniqueCountTypeCardinality UniqueCountType = "cardinality"
)
Defines values for UniqueCountType.