Skip to content

ElasticsearchMetricAggregationWithInlineScriptSettings🔗

Definition🔗

type ElasticsearchMetricAggregationWithInlineScriptSettings struct {
    Script *elasticsearch.InlineScript `json:"script,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode ElasticsearchMetricAggregationWithInlineScriptSettings from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (elasticsearchMetricAggregationWithInlineScriptSettings *ElasticsearchMetricAggregationWithInlineScriptSettings) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two ElasticsearchMetricAggregationWithInlineScriptSettings objects.

func (elasticsearchMetricAggregationWithInlineScriptSettings *ElasticsearchMetricAggregationWithInlineScriptSettings) Equals(other ElasticsearchMetricAggregationWithInlineScriptSettings) bool

Validate🔗

Validate checks all the validation constraints that may be defined on ElasticsearchMetricAggregationWithInlineScriptSettings fields for violations and returns them.

func (elasticsearchMetricAggregationWithInlineScriptSettings *ElasticsearchMetricAggregationWithInlineScriptSettings) Validate() error

See also🔗