AnnotationEventFieldMapping🔗
Annotation event field mapping. Defines how to map a data frame field to an annotation event field.
Definition🔗
type AnnotationEventFieldMapping struct {
// Source type for the field value
Source *string `json:"source,omitempty"`
// Constant value to use when source is "text"
Value *string `json:"value,omitempty"`
// Regular expression to apply to the field value
Regex *string `json:"regex,omitempty"`
}
Methods🔗
UnmarshalJSONStrict🔗
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode AnnotationEventFieldMapping 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 (annotationEventFieldMapping *AnnotationEventFieldMapping) UnmarshalJSONStrict(raw []byte) error
Equals🔗
Equals tests the equality of two AnnotationEventFieldMapping objects.
func (annotationEventFieldMapping *AnnotationEventFieldMapping) Equals(other AnnotationEventFieldMapping) bool
Validate🔗
Validate checks all the validation constraints that may be defined on AnnotationEventFieldMapping fields for violations and returns them.