Documentation
¶
Index ¶
- type APIError
- type CommonLabel
- type CommonPromQLMatcher
- type CommonPromQLMatcherType
- type GenericError
- type ListMonitorStatusesRequestSortOrder
- type MonitorStatusSignalStatus
- func (m *MonitorStatusSignalStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *MonitorStatusSignalStatus) MarshalBinary() ([]byte, error)
- func (m *MonitorStatusSignalStatus) UnmarshalBinary(b []byte) error
- func (m *MonitorStatusSignalStatus) Validate(formats strfmt.Registry) error
- type ProtobufAny
- func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ProtobufAny) MarshalBinary() ([]byte, error)
- func (m ProtobufAny) MarshalJSON() ([]byte, error)
- func (m *ProtobufAny) UnmarshalBinary(b []byte) error
- func (m *ProtobufAny) UnmarshalJSON(data []byte) error
- func (m *ProtobufAny) Validate(formats strfmt.Registry) error
- type SignalStatusSeriesStatus
- func (m *SignalStatusSeriesStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SignalStatusSeriesStatus) MarshalBinary() ([]byte, error)
- func (m *SignalStatusSeriesStatus) UnmarshalBinary(b []byte) error
- func (m *SignalStatusSeriesStatus) Validate(formats strfmt.Registry) error
- type StateunstableAlertingState
- type StateunstableEchoResponse
- func (m *StateunstableEchoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StateunstableEchoResponse) MarshalBinary() ([]byte, error)
- func (m *StateunstableEchoResponse) UnmarshalBinary(b []byte) error
- func (m *StateunstableEchoResponse) Validate(formats strfmt.Registry) error
- type StateunstableListMonitorStatusesResponse
- func (m *StateunstableListMonitorStatusesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StateunstableListMonitorStatusesResponse) MarshalBinary() ([]byte, error)
- func (m *StateunstableListMonitorStatusesResponse) UnmarshalBinary(b []byte) error
- func (m *StateunstableListMonitorStatusesResponse) Validate(formats strfmt.Registry) error
- type StateunstableMonitorStatus
- func (m *StateunstableMonitorStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *StateunstableMonitorStatus) MarshalBinary() ([]byte, error)
- func (m *StateunstableMonitorStatus) UnmarshalBinary(b []byte) error
- func (m *StateunstableMonitorStatus) Validate(formats strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
// An optional private error code whose values are undefined.
Code int32 `json:"code,omitempty"`
// An error message describing what went wrong.
Message string `json:"message,omitempty"`
}
APIError api error
swagger:model apiError
func (*APIError) ContextValidate ¶
ContextValidate validates this api error based on context it is used
func (*APIError) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CommonLabel ¶ added in v1.14.0
type CommonLabel struct {
// name
Name string `json:"name,omitempty"`
// value
Value string `json:"value,omitempty"`
}
CommonLabel common label
swagger:model commonLabel
func (*CommonLabel) ContextValidate ¶ added in v1.14.0
ContextValidate validates this common label based on context it is used
func (*CommonLabel) MarshalBinary ¶ added in v1.14.0
func (m *CommonLabel) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommonLabel) UnmarshalBinary ¶ added in v1.14.0
func (m *CommonLabel) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommonPromQLMatcher ¶ added in v1.14.0
type CommonPromQLMatcher struct {
// type
Type CommonPromQLMatcherType `json:"type,omitempty"`
// Prometheus label name for the matcher
Name string `json:"name,omitempty"`
// Prometheus label value for the matcher
Value string `json:"value,omitempty"`
}
CommonPromQLMatcher common prom q l matcher
swagger:model commonPromQLMatcher
func (*CommonPromQLMatcher) ContextValidate ¶ added in v1.14.0
ContextValidate validate this common prom q l matcher based on the context it is used
func (*CommonPromQLMatcher) MarshalBinary ¶ added in v1.14.0
func (m *CommonPromQLMatcher) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommonPromQLMatcher) UnmarshalBinary ¶ added in v1.14.0
func (m *CommonPromQLMatcher) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CommonPromQLMatcherType ¶ added in v1.14.0
type CommonPromQLMatcherType string
CommonPromQLMatcherType common prom q l matcher type
swagger:model commonPromQLMatcherType
const ( // CommonPromQLMatcherTypeMatchEqual captures enum value "MatchEqual" CommonPromQLMatcherTypeMatchEqual CommonPromQLMatcherType = "MatchEqual" // CommonPromQLMatcherTypeMatchRegexp captures enum value "MatchRegexp" CommonPromQLMatcherTypeMatchRegexp CommonPromQLMatcherType = "MatchRegexp" // CommonPromQLMatcherTypeMatchNotEqual captures enum value "MatchNotEqual" CommonPromQLMatcherTypeMatchNotEqual CommonPromQLMatcherType = "MatchNotEqual" // CommonPromQLMatcherTypeMatchNotRegexp captures enum value "MatchNotRegexp" CommonPromQLMatcherTypeMatchNotRegexp CommonPromQLMatcherType = "MatchNotRegexp" )
func NewCommonPromQLMatcherType ¶ added in v1.14.0
func NewCommonPromQLMatcherType(value CommonPromQLMatcherType) *CommonPromQLMatcherType
func (CommonPromQLMatcherType) ContextValidate ¶ added in v1.14.0
func (m CommonPromQLMatcherType) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this common prom q l matcher type based on context it is used
func (CommonPromQLMatcherType) Pointer ¶ added in v1.14.0
func (m CommonPromQLMatcherType) Pointer() *CommonPromQLMatcherType
Pointer returns a pointer to a freshly-allocated CommonPromQLMatcherType.
type GenericError ¶
type GenericError interface{}
GenericError generic error
swagger:model genericError
type ListMonitorStatusesRequestSortOrder ¶ added in v1.14.0
type ListMonitorStatusesRequestSortOrder string
ListMonitorStatusesRequestSortOrder list monitor statuses request sort order
swagger:model ListMonitorStatusesRequestSortOrder
const ( // ListMonitorStatusesRequestSortOrderSORTBYSTATE captures enum value "SORT_BY_STATE" ListMonitorStatusesRequestSortOrderSORTBYSTATE ListMonitorStatusesRequestSortOrder = "SORT_BY_STATE" )
func NewListMonitorStatusesRequestSortOrder ¶ added in v1.14.0
func NewListMonitorStatusesRequestSortOrder(value ListMonitorStatusesRequestSortOrder) *ListMonitorStatusesRequestSortOrder
func (ListMonitorStatusesRequestSortOrder) ContextValidate ¶ added in v1.14.0
func (m ListMonitorStatusesRequestSortOrder) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list monitor statuses request sort order based on context it is used
func (ListMonitorStatusesRequestSortOrder) Pointer ¶ added in v1.14.0
func (m ListMonitorStatusesRequestSortOrder) Pointer() *ListMonitorStatusesRequestSortOrder
Pointer returns a pointer to a freshly-allocated ListMonitorStatusesRequestSortOrder.
type MonitorStatusSignalStatus ¶ added in v1.14.0
type MonitorStatusSignalStatus struct {
// state
State StateunstableAlertingState `json:"state,omitempty"`
// severity
Severity string `json:"severity,omitempty"`
// Signal labels.
SignalLabels []*CommonLabel `json:"signal_labels"`
// series
Series []*SignalStatusSeriesStatus `json:"series"`
}
MonitorStatusSignalStatus monitor status signal status
swagger:model MonitorStatusSignalStatus
func (*MonitorStatusSignalStatus) ContextValidate ¶ added in v1.14.0
func (m *MonitorStatusSignalStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this monitor status signal status based on the context it is used
func (*MonitorStatusSignalStatus) MarshalBinary ¶ added in v1.14.0
func (m *MonitorStatusSignalStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MonitorStatusSignalStatus) UnmarshalBinary ¶ added in v1.14.0
func (m *MonitorStatusSignalStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProtobufAny ¶
type ProtobufAny struct {
// at type
AtType string `json:"@type,omitempty"`
// protobuf any
ProtobufAny map[string]interface{} `json:"-"`
}
ProtobufAny protobuf any
swagger:model protobufAny
func (*ProtobufAny) ContextValidate ¶
ContextValidate validates this protobuf any based on context it is used
func (*ProtobufAny) MarshalBinary ¶
func (m *ProtobufAny) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ProtobufAny) MarshalJSON ¶ added in v1.14.0
func (m ProtobufAny) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with additional properties into a JSON object
func (*ProtobufAny) UnmarshalBinary ¶
func (m *ProtobufAny) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ProtobufAny) UnmarshalJSON ¶ added in v1.14.0
func (m *ProtobufAny) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals this object with additional properties from JSON
type SignalStatusSeriesStatus ¶ added in v1.14.0
type SignalStatusSeriesStatus struct {
// state
State StateunstableAlertingState `json:"state,omitempty"`
// severity
Severity string `json:"severity,omitempty"`
// Series labels.
Labels []*CommonLabel `json:"labels"`
// started at
// Format: date-time
StartedAt strfmt.DateTime `json:"started_at,omitempty"`
}
SignalStatusSeriesStatus signal status series status
swagger:model SignalStatusSeriesStatus
func (*SignalStatusSeriesStatus) ContextValidate ¶ added in v1.14.0
func (m *SignalStatusSeriesStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this signal status series status based on the context it is used
func (*SignalStatusSeriesStatus) MarshalBinary ¶ added in v1.14.0
func (m *SignalStatusSeriesStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SignalStatusSeriesStatus) UnmarshalBinary ¶ added in v1.14.0
func (m *SignalStatusSeriesStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StateunstableAlertingState ¶ added in v1.14.0
type StateunstableAlertingState string
StateunstableAlertingState - ALERTING_STATE_PASS: Monitor is not triggered.
- ALERTING_STATE_PENDING: Monitor is triggered but not yet alerting.
- ALERTING_STATE_ALERTING: Monitor is triggered and alerting.
- ALERTING_STATE_MUTED: Monitor is triggered but is muted.
swagger:model stateunstableAlertingState
const ( // StateunstableAlertingStateALERTINGSTATEPASS captures enum value "ALERTING_STATE_PASS" StateunstableAlertingStateALERTINGSTATEPASS StateunstableAlertingState = "ALERTING_STATE_PASS" // StateunstableAlertingStateALERTINGSTATEPENDING captures enum value "ALERTING_STATE_PENDING" StateunstableAlertingStateALERTINGSTATEPENDING StateunstableAlertingState = "ALERTING_STATE_PENDING" // StateunstableAlertingStateALERTINGSTATEALERTING captures enum value "ALERTING_STATE_ALERTING" StateunstableAlertingStateALERTINGSTATEALERTING StateunstableAlertingState = "ALERTING_STATE_ALERTING" // StateunstableAlertingStateALERTINGSTATEMUTED captures enum value "ALERTING_STATE_MUTED" StateunstableAlertingStateALERTINGSTATEMUTED StateunstableAlertingState = "ALERTING_STATE_MUTED" )
func NewStateunstableAlertingState ¶ added in v1.14.0
func NewStateunstableAlertingState(value StateunstableAlertingState) *StateunstableAlertingState
func (StateunstableAlertingState) ContextValidate ¶ added in v1.14.0
func (m StateunstableAlertingState) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this stateunstable alerting state based on context it is used
func (StateunstableAlertingState) Pointer ¶ added in v1.14.0
func (m StateunstableAlertingState) Pointer() *StateunstableAlertingState
Pointer returns a pointer to a freshly-allocated StateunstableAlertingState.
type StateunstableEchoResponse ¶
type StateunstableEchoResponse struct {
// message
Message string `json:"message,omitempty"`
}
StateunstableEchoResponse stateunstable echo response
swagger:model stateunstableEchoResponse
func (*StateunstableEchoResponse) ContextValidate ¶
func (m *StateunstableEchoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this stateunstable echo response based on context it is used
func (*StateunstableEchoResponse) MarshalBinary ¶
func (m *StateunstableEchoResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StateunstableEchoResponse) UnmarshalBinary ¶
func (m *StateunstableEchoResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StateunstableListMonitorStatusesResponse ¶ added in v1.14.0
type StateunstableListMonitorStatusesResponse struct {
// monitor statuses
MonitorStatuses []*StateunstableMonitorStatus `json:"monitor_statuses"`
}
StateunstableListMonitorStatusesResponse stateunstable list monitor statuses response
swagger:model stateunstableListMonitorStatusesResponse
func (*StateunstableListMonitorStatusesResponse) ContextValidate ¶ added in v1.14.0
func (m *StateunstableListMonitorStatusesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this stateunstable list monitor statuses response based on the context it is used
func (*StateunstableListMonitorStatusesResponse) MarshalBinary ¶ added in v1.14.0
func (m *StateunstableListMonitorStatusesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StateunstableListMonitorStatusesResponse) UnmarshalBinary ¶ added in v1.14.0
func (m *StateunstableListMonitorStatusesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StateunstableMonitorStatus ¶ added in v1.14.0
type StateunstableMonitorStatus struct {
// slug
Slug string `json:"slug,omitempty"`
// state
State StateunstableAlertingState `json:"state,omitempty"`
// severity
Severity string `json:"severity,omitempty"`
// signals
Signals []*MonitorStatusSignalStatus `json:"signals"`
}
StateunstableMonitorStatus MonitorStatus contains the status of a monitor.
swagger:model stateunstableMonitorStatus
func (*StateunstableMonitorStatus) ContextValidate ¶ added in v1.14.0
func (m *StateunstableMonitorStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this stateunstable monitor status based on the context it is used
func (*StateunstableMonitorStatus) MarshalBinary ¶ added in v1.14.0
func (m *StateunstableMonitorStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StateunstableMonitorStatus) UnmarshalBinary ¶ added in v1.14.0
func (m *StateunstableMonitorStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- api_error.go
- common_label.go
- common_prom_q_l_matcher.go
- common_prom_q_l_matcher_type.go
- generic_error.go
- list_monitor_statuses_request_sort_order.go
- monitor_status_signal_status.go
- protobuf_any.go
- signal_status_series_status.go
- stateunstable_alerting_state.go
- stateunstable_echo_response.go
- stateunstable_list_monitor_statuses_response.go
- stateunstable_monitor_status.go