Skip to content

ContactPoint🔗

EmbeddedContactPoint is the contact point type that is used

by grafanas embedded alertmanager implementation.

Definition🔗

type ContactPoint struct {
    DisableResolveMessage *bool `json:"disableResolveMessage,omitempty"`
    // Name is used as grouping key in the UI. Contact points with the
    // same name will be grouped in the UI.
    Name *string `json:"name,omitempty"`
    Provenance *string `json:"provenance,omitempty"`
    Settings alerting.Json `json:"settings"`
    Type alerting.ContactPointType `json:"type"`
    // UID is the unique identifier of the contact point. The UID can be
    // set by the user.
    Uid *string `json:"uid,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode ContactPoint 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 (contactPoint *ContactPoint) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two ContactPoint objects.

func (contactPoint *ContactPoint) Equals(other ContactPoint) bool

Validate🔗

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

func (contactPoint *ContactPoint) Validate() error

See also🔗