MovingAverageOrDerivativeOrCumulativeSumOrBucketScript🔗
Definition🔗
type MovingAverageOrDerivativeOrCumulativeSumOrBucketScript struct {
MovingAverage *elasticsearch.MovingAverage `json:"MovingAverage,omitempty"`
Derivative *elasticsearch.Derivative `json:"Derivative,omitempty"`
CumulativeSum *elasticsearch.CumulativeSum `json:"CumulativeSum,omitempty"`
BucketScript *elasticsearch.BucketScript `json:"BucketScript,omitempty"`
}
Methods🔗
MarshalJSON🔗
MarshalJSON implements a custom JSON marshalling logic to encode MovingAverageOrDerivativeOrCumulativeSumOrBucketScript
as JSON.
func (movingAverageOrDerivativeOrCumulativeSumOrBucketScript *MovingAverageOrDerivativeOrCumulativeSumOrBucketScript) MarshalJSON() ([]byte, error)
UnmarshalJSON🔗
UnmarshalJSON implements a custom JSON unmarshalling logic to decode MovingAverageOrDerivativeOrCumulativeSumOrBucketScript
from JSON.
func (movingAverageOrDerivativeOrCumulativeSumOrBucketScript *MovingAverageOrDerivativeOrCumulativeSumOrBucketScript) UnmarshalJSON(raw []byte) error
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode MovingAverageOrDerivativeOrCumulativeSumOrBucketScript
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 (movingAverageOrDerivativeOrCumulativeSumOrBucketScript *MovingAverageOrDerivativeOrCumulativeSumOrBucketScript) UnmarshalJSONStrict(raw []byte) error
Equals🔗
Equals tests the equality of two MovingAverageOrDerivativeOrCumulativeSumOrBucketScript
objects.
func (movingAverageOrDerivativeOrCumulativeSumOrBucketScript *MovingAverageOrDerivativeOrCumulativeSumOrBucketScript) Equals(other MovingAverageOrDerivativeOrCumulativeSumOrBucketScript) bool
Validate🔗
Validate checks all the validation constraints that may be defined on MovingAverageOrDerivativeOrCumulativeSumOrBucketScript
fields for violations and returns them.