Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AxeEvent ¶
type AxeEvent struct { EventType string `json:"event_type"` Parameters AxeParameters `json:"parameters,omitempty"` Alarm *types.Alarm `json:"alarm,omitempty"` AlarmID string `json:"alarm_id,omitempty"` Entity *types.Entity `json:"entity,omitempty"` Healthcheck bool `json:"healthcheck,omitempty"` // Origin will be sent back after RPC is done. Origin *types.Event `json:"origin,omitempty"` }
AxeEvent
func (AxeEvent) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (*AxeEvent) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type AxeParameters ¶
type AxeParameters struct { RuleName string `json:"rule_name,omitempty"` Output string `json:"output,omitempty"` Author string `json:"author,omitempty"` User string `json:"user,omitempty"` Role string `json:"role,omitempty"` Initiator string `json:"initiator,omitempty"` Timestamp datetime.CpsTime `json:"timestamp,omitempty"` // ChangeState State *types.CpsNumber `json:"state,omitempty"` // AssocTicket and Webhook types.TicketInfo // Webhook TicketResources bool `json:"ticket_resources,omitempty"` WebhookRequest bool `json:"webhook_request,omitempty"` WebhookFailReason string `json:"webhook_fail_reason,omitempty"` WebhookError *Error `json:"webhook_error,omitempty"` EmitTrigger bool `json:"emit_trigger,omitempty"` RuleExecution string `bson:"rule_execution,omitempty"` // Snooze and Pbehavior Duration *datetime.DurationWithUnit `json:"duration,omitempty"` // Pbehavior enter PbehaviorInfo types.PbehaviorInfo `json:"pbehavior_info,omitempty"` // Pbehavior create Name string `json:"name,omitempty"` Reason string `json:"reason,omitempty"` Type string `json:"type,omitempty"` RRule string `json:"rrule,omitempty"` Tstart *datetime.CpsTime `json:"tstart,omitempty"` Tstop *datetime.CpsTime `json:"tstop,omitempty"` StartOnTrigger *bool `json:"start_on_trigger,omitempty"` // Instruction and Webhook Execution string `json:"execution,omitempty"` // Instruction Instruction string `json:"instruction,omitempty"` // Trigger Trigger string `json:"trigger,omitempty"` // Check LongOutput string `json:"long_output,omitempty"` Tags map[string]string `json:"tags,omitempty"` Connector string `json:"connector,omitempty"` ConnectorName string `json:"connector_name,omitempty"` // Idle events IdleRuleApply string `json:"idle_rule_apply,omitempty"` // Meta alarm create MetaAlarmRuleID string `json:"meta_alarm_rule_id,omitempty"` MetaAlarmValuePath string `json:"meta_alarm_value_path,omitempty"` DisplayName string `json:"display_name,omitempty"` MetaAlarmChildren []string `json:"meta_alarm_children,omitempty"` StateSettingUpdated bool `json:"state_setting_updated,omitempty"` }
type AxeResultEvent ¶
type AxeResultEvent struct { Alarm *types.Alarm `json:"alarm"` AlarmChangeType types.AlarmChangeType `json:"alarm_change"` Error *Error `json:"error"` Origin *types.Event `json:"origin,omitempty"` }
AxeResultEvent
func (AxeResultEvent) MarshalEasyJSON ¶
func (v AxeResultEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*AxeResultEvent) UnmarshalEasyJSON ¶
func (v *AxeResultEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type DynamicInfosEvent ¶
type DynamicInfosEvent struct { // On update rule ID string `json:"_id"` Action int `json:"action"` // On update alarm Alarm *types.Alarm `json:"alarm"` Entity *types.Entity `json:"entity"` AlarmChangeType types.AlarmChangeType `json:"alarm_change"` }
DynamicInfosEvent
func (DynamicInfosEvent) MarshalEasyJSON ¶
func (v DynamicInfosEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*DynamicInfosEvent) UnmarshalEasyJSON ¶
func (v *DynamicInfosEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type DynamicInfosResultEvent ¶
type DynamicInfosResultEvent struct { Alarm *types.Alarm `json:"alarm"` AlarmChangeType types.AlarmChangeType `json:"alarm_change"` Error *Error `json:"error"` }
DynamicInfosResultEvent
func (DynamicInfosResultEvent) MarshalEasyJSON ¶
func (v DynamicInfosResultEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*DynamicInfosResultEvent) UnmarshalEasyJSON ¶
func (v *DynamicInfosResultEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type Error ¶
type Error struct {
Error error
}
func (*Error) MarshalJSON ¶
func (*Error) UnmarshalJSON ¶
type PbehaviorEvent ¶
type PbehaviorEvent struct { Alarm *types.Alarm `json:"alarm"` Entity *types.Entity `json:"entity"` Params PbehaviorParameters `json:"params"` Healthcheck bool `json:"healthcheck"` }
PbehaviorEvent
func (PbehaviorEvent) MarshalEasyJSON ¶
func (v PbehaviorEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PbehaviorEvent) UnmarshalEasyJSON ¶
func (v *PbehaviorEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type PbehaviorParameters ¶
type PbehaviorParameters struct { Author string `json:"author"` UserID string `json:"user"` Name string `json:"name"` Reason string `json:"reason"` Type string `json:"type"` RRule string `json:"rrule"` Tstart *datetime.CpsTime `json:"tstart,omitempty"` Tstop *datetime.CpsTime `json:"tstop,omitempty"` StartOnTrigger *bool `json:"start_on_trigger,omitempty"` Duration *datetime.DurationWithUnit `json:"duration,omitempty"` RuleName string `json:"rule_name,omitempty"` }
type PbehaviorRecomputeEvent ¶
type PbehaviorRecomputeEvent struct { Ids []string `json:"ids"` Author string `json:"author"` UserID string `json:"user_id"` Initiator string `json:"initiator"` }
PbehaviorRecomputeEvent
func (PbehaviorRecomputeEvent) MarshalEasyJSON ¶
func (v PbehaviorRecomputeEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PbehaviorRecomputeEvent) UnmarshalEasyJSON ¶
func (v *PbehaviorRecomputeEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type PbehaviorResultEvent ¶
type PbehaviorResultEvent struct { Alarm *types.Alarm `json:"alarm"` Entity *types.Entity `json:"entity"` PbhEvent types.Event `json:"event"` Error *Error `json:"error"` }
PbehaviorResultEvent
func (PbehaviorResultEvent) MarshalEasyJSON ¶
func (v PbehaviorResultEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*PbehaviorResultEvent) UnmarshalEasyJSON ¶
func (v *PbehaviorResultEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type RemediationEvent ¶
type RemediationEvent struct { Alarm *types.Alarm `json:"alarm"` Entity *types.Entity `json:"entity"` AlarmChange types.AlarmChange `json:"alarm_change"` }
RemediationEvent
func (RemediationEvent) MarshalEasyJSON ¶
func (v RemediationEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*RemediationEvent) UnmarshalEasyJSON ¶
func (v *RemediationEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type RemediationJobEvent ¶
type RemediationJobEvent struct { JobExecutionID string `json:"job_execution_id"` Step int `json:"step"` }
RemediationJobEvent
func (RemediationJobEvent) MarshalEasyJSON ¶
func (v RemediationJobEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*RemediationJobEvent) UnmarshalEasyJSON ¶
func (v *RemediationJobEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
type WebhookEvent ¶
type WebhookEvent struct { Execution string `json:"execution"` Healthcheck bool `json:"healthcheck"` }
WebhookEvent
func (WebhookEvent) MarshalEasyJSON ¶
func (v WebhookEvent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (*WebhookEvent) UnmarshalEasyJSON ¶
func (v *WebhookEvent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface