Documentation ¶
Index ¶
- type AddAlertsRequest
- type AddAlertsResponse
- type AddSignalsRequest
- type AddSignalsRequestItem
- type AddSignalsRequestItemContextItems0
- func (m *AddSignalsRequestItemContextItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AddSignalsRequestItemContextItems0) MarshalBinary() ([]byte, error)
- func (m *AddSignalsRequestItemContextItems0) UnmarshalBinary(b []byte) error
- func (m *AddSignalsRequestItemContextItems0) Validate(formats strfmt.Registry) error
- type AddSignalsRequestItemDecisions
- type AddSignalsRequestItemDecisionsItem
- func (m *AddSignalsRequestItemDecisionsItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AddSignalsRequestItemDecisionsItem) MarshalBinary() ([]byte, error)
- func (m *AddSignalsRequestItemDecisionsItem) UnmarshalBinary(b []byte) error
- func (m *AddSignalsRequestItemDecisionsItem) Validate(formats strfmt.Registry) error
- type AddSignalsRequestItemSource
- func (m *AddSignalsRequestItemSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AddSignalsRequestItemSource) MarshalBinary() ([]byte, error)
- func (m *AddSignalsRequestItemSource) UnmarshalBinary(b []byte) error
- func (m *AddSignalsRequestItemSource) Validate(formats strfmt.Registry) error
- type Alert
- func (m *Alert) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (a *Alert) GetEventsCount() int32
- func (a *Alert) GetMeta(key string) string
- func (a *Alert) GetScenario() string
- func (a *Alert) GetScope() string
- func (a *Alert) GetValue() string
- func (a *Alert) HasRemediation() bool
- func (m *Alert) MarshalBinary() ([]byte, error)
- func (m *Alert) UnmarshalBinary(b []byte) error
- func (m *Alert) Validate(formats strfmt.Registry) error
- type Decision
- type DecisionsDeleteRequest
- type DecisionsDeleteRequestItem
- type DecisionsStreamResponse
- func (m *DecisionsStreamResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DecisionsStreamResponse) MarshalBinary() ([]byte, error)
- func (m *DecisionsStreamResponse) UnmarshalBinary(b []byte) error
- func (m *DecisionsStreamResponse) Validate(formats strfmt.Registry) error
- type DeleteAlertsResponse
- type DeleteDecisionResponse
- func (m *DeleteDecisionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DeleteDecisionResponse) MarshalBinary() ([]byte, error)
- func (m *DeleteDecisionResponse) UnmarshalBinary(b []byte) error
- func (m *DeleteDecisionResponse) Validate(formats strfmt.Registry) error
- type ErrorResponse
- type Event
- type FlushDecisionResponse
- type GetAlertsResponse
- type GetDecisionsResponse
- type Meta
- type MetaItems0
- type Metrics
- type MetricsAgentInfo
- type MetricsBouncerInfo
- type Source
- func (m *Source) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (s Source) GetAsNumberName() string
- func (s Source) GetScope() string
- func (s Source) GetValue() string
- func (m *Source) MarshalBinary() ([]byte, error)
- func (m *Source) UnmarshalBinary(b []byte) error
- func (m *Source) Validate(formats strfmt.Registry) error
- type TopxResponse
- type WatcherAuthRequest
- type WatcherAuthResponse
- type WatcherRegistrationRequest
- func (m *WatcherRegistrationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *WatcherRegistrationRequest) MarshalBinary() ([]byte, error)
- func (m *WatcherRegistrationRequest) UnmarshalBinary(b []byte) error
- func (m *WatcherRegistrationRequest) Validate(formats strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAlertsRequest ¶
type AddAlertsRequest []*Alert
AddAlertsRequest AddAlertsRequest
swagger:model AddAlertsRequest
func (AddAlertsRequest) ContextValidate ¶
ContextValidate validate this add alerts request based on the context it is used
type AddAlertsResponse ¶
type AddAlertsResponse []string
AddAlertsResponse AddAlertsResponse
swagger:model AddAlertsResponse
func (AddAlertsResponse) ContextValidate ¶
ContextValidate validates this add alerts response based on context it is used
type AddSignalsRequest ¶
type AddSignalsRequest []*AddSignalsRequestItem
AddSignalsRequest add signals request
All signals request model ¶
swagger:model AddSignalsRequest
func (AddSignalsRequest) ContextValidate ¶
ContextValidate validate this add signals request based on the context it is used
type AddSignalsRequestItem ¶
type AddSignalsRequestItem struct { // alert id AlertID int64 `json:"alert_id,omitempty"` // context Context []*AddSignalsRequestItemContextItems0 `json:"context"` // created at CreatedAt string `json:"created_at,omitempty"` // decisions Decisions AddSignalsRequestItemDecisions `json:"decisions,omitempty"` // machine id MachineID string `json:"machine_id,omitempty"` // a human readable message // Required: true Message *string `json:"message"` // scenario // Required: true Scenario *string `json:"scenario"` // scenario hash // Required: true ScenarioHash *string `json:"scenario_hash"` // scenario trust ScenarioTrust string `json:"scenario_trust,omitempty"` // scenario version // Required: true ScenarioVersion *string `json:"scenario_version"` // source // Required: true Source *AddSignalsRequestItemSource `json:"source"` // start at // Required: true StartAt *string `json:"start_at"` // stop at // Required: true StopAt *string `json:"stop_at"` // uuid // Read Only: true UUID string `json:"uuid,omitempty"` }
AddSignalsRequestItem Signal
swagger:model AddSignalsRequestItem
func (*AddSignalsRequestItem) ContextValidate ¶
ContextValidate validate this add signals request item based on the context it is used
func (*AddSignalsRequestItem) MarshalBinary ¶
func (m *AddSignalsRequestItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddSignalsRequestItem) UnmarshalBinary ¶
func (m *AddSignalsRequestItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddSignalsRequestItemContextItems0 ¶
type AddSignalsRequestItemContextItems0 struct { // key Key string `json:"key,omitempty"` // value Value string `json:"value,omitempty"` }
AddSignalsRequestItemContextItems0 add signals request item context items0
swagger:model AddSignalsRequestItemContextItems0
func (*AddSignalsRequestItemContextItems0) ContextValidate ¶
func (m *AddSignalsRequestItemContextItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this add signals request item context items0 based on context it is used
func (*AddSignalsRequestItemContextItems0) MarshalBinary ¶
func (m *AddSignalsRequestItemContextItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddSignalsRequestItemContextItems0) UnmarshalBinary ¶
func (m *AddSignalsRequestItemContextItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddSignalsRequestItemDecisions ¶
type AddSignalsRequestItemDecisions []*AddSignalsRequestItemDecisionsItem
AddSignalsRequestItemDecisions Decisions list
swagger:model AddSignalsRequestItemDecisions
func (AddSignalsRequestItemDecisions) ContextValidate ¶
func (m AddSignalsRequestItemDecisions) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this add signals request item decisions based on the context it is used
type AddSignalsRequestItemDecisionsItem ¶
type AddSignalsRequestItemDecisionsItem struct { // duration // Required: true Duration *string `json:"duration"` // (only relevant for GET ops) the unique id // Required: true ID *int64 `json:"id"` // the origin of the decision : cscli, crowdsec // Required: true Origin *string `json:"origin"` // scenario // Required: true Scenario *string `json:"scenario"` // the scope of decision : does it apply to an IP, a range, a username, etc // Required: true Scope *string `json:"scope"` // simulated Simulated bool `json:"simulated,omitempty"` // the type of decision, might be 'ban', 'captcha' or something custom. Ignored when watcher (cscli/crowdsec) is pushing to APIL. // Required: true Type *string `json:"type"` // until Until string `json:"until,omitempty"` // only relevant for LAPI->CAPI, ignored for cscli->LAPI and crowdsec->LAPI // Read Only: true UUID string `json:"uuid,omitempty"` // the value of the decision scope : an IP, a range, a username, etc // Required: true Value *string `json:"value"` }
AddSignalsRequestItemDecisionsItem Decision
swagger:model AddSignalsRequestItemDecisionsItem
func (*AddSignalsRequestItemDecisionsItem) ContextValidate ¶
func (m *AddSignalsRequestItemDecisionsItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this add signals request item decisions item based on the context it is used
func (*AddSignalsRequestItemDecisionsItem) MarshalBinary ¶
func (m *AddSignalsRequestItemDecisionsItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddSignalsRequestItemDecisionsItem) UnmarshalBinary ¶
func (m *AddSignalsRequestItemDecisionsItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddSignalsRequestItemSource ¶
type AddSignalsRequestItemSource struct { // provided as a convenience when the source is an IP AsName string `json:"as_name,omitempty"` // provided as a convenience when the source is an IP AsNumber string `json:"as_number,omitempty"` // cn Cn string `json:"cn,omitempty"` // provided as a convenience when the source is an IP IP string `json:"ip,omitempty"` // latitude Latitude float32 `json:"latitude,omitempty"` // longitude Longitude float32 `json:"longitude,omitempty"` // provided as a convenience when the source is an IP Range string `json:"range,omitempty"` // the scope of a source : ip,range,username,etc // Required: true Scope *string `json:"scope"` // the value of a source : the ip, the range, the username,etc // Required: true Value *string `json:"value"` }
AddSignalsRequestItemSource Source
swagger:model AddSignalsRequestItemSource
func (*AddSignalsRequestItemSource) ContextValidate ¶
func (m *AddSignalsRequestItemSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this add signals request item source based on context it is used
func (*AddSignalsRequestItemSource) MarshalBinary ¶
func (m *AddSignalsRequestItemSource) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddSignalsRequestItemSource) UnmarshalBinary ¶
func (m *AddSignalsRequestItemSource) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Alert ¶
type Alert struct { // capacity // Required: true Capacity *int32 `json:"capacity"` // only relevant for GET, ignored in POST requests // Read Only: true CreatedAt string `json:"created_at,omitempty"` // decisions Decisions []*Decision `json:"decisions"` // the Meta of the events leading to overflow // Required: true Events []*Event `json:"events"` // events count // Required: true EventsCount *int32 `json:"events_count"` // only relevant for GET, ignored in POST requests // Read Only: true ID int64 `json:"id,omitempty"` // labels Labels map[string]string `json:"labels,omitempty"` // leakspeed // Required: true Leakspeed *string `json:"leakspeed"` // only relevant for LAPI->CAPI, ignored for cscli->LAPI and crowdsec->LAPI // Read Only: true MachineID string `json:"machine_id,omitempty"` // a human readable message // Required: true Message *string `json:"message"` // meta Meta Meta `json:"meta,omitempty"` // remediation Remediation bool `json:"remediation,omitempty"` // scenario // Required: true Scenario *string `json:"scenario"` // scenario hash // Required: true ScenarioHash *string `json:"scenario_hash"` // scenario version // Required: true ScenarioVersion *string `json:"scenario_version"` // simulated // Required: true Simulated *bool `json:"simulated"` // source // Required: true Source *Source `json:"source"` // start at // Required: true StartAt *string `json:"start_at"` // stop at // Required: true StopAt *string `json:"stop_at"` // only relevant for LAPI->CAPI, ignored for cscli->LAPI and crowdsec->LAPI // Read Only: true UUID string `json:"uuid,omitempty"` }
Alert Alert
swagger:model Alert
func (*Alert) ContextValidate ¶
ContextValidate validate this alert based on the context it is used
func (*Alert) GetEventsCount ¶
func (*Alert) GetScenario ¶
func (*Alert) HasRemediation ¶
func (*Alert) MarshalBinary ¶
MarshalBinary interface implementation
func (*Alert) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Decision ¶
type Decision struct { // the duration of the decisions // Required: true Duration *string `json:"duration"` // (only relevant for GET ops) the unique id // Read Only: true ID int64 `json:"id,omitempty"` // the origin of the decision : cscli, crowdsec // Required: true Origin *string `json:"origin"` // scenario // Required: true Scenario *string `json:"scenario"` // the scope of decision : does it apply to an IP, a range, a username, etc // Required: true Scope *string `json:"scope"` // true if the decision result from a scenario in simulation mode // Read Only: true Simulated *bool `json:"simulated,omitempty"` // the type of decision, might be 'ban', 'captcha' or something custom. Ignored when watcher (cscli/crowdsec) is pushing to APIL. // Required: true Type *string `json:"type"` // the date until the decisions must be active Until string `json:"until,omitempty"` // only relevant for LAPI->CAPI, ignored for cscli->LAPI and crowdsec->LAPI // Read Only: true UUID string `json:"uuid,omitempty"` // the value of the decision scope : an IP, a range, a username, etc // Required: true Value *string `json:"value"` }
Decision Decision
swagger:model Decision
func (*Decision) ContextValidate ¶
ContextValidate validate this decision based on the context it is used
func (*Decision) MarshalBinary ¶
MarshalBinary interface implementation
func (*Decision) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DecisionsDeleteRequest ¶
type DecisionsDeleteRequest []DecisionsDeleteRequestItem
DecisionsDeleteRequest delete decisions
delete decision model
swagger:model DecisionsDeleteRequest
func (DecisionsDeleteRequest) ContextValidate ¶
ContextValidate validate this decisions delete request based on the context it is used
type DecisionsDeleteRequestItem ¶
type DecisionsDeleteRequestItem string
DecisionsDeleteRequestItem decisionsIDs
swagger:model DecisionsDeleteRequestItem
func (DecisionsDeleteRequestItem) ContextValidate ¶
func (m DecisionsDeleteRequestItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this decisions delete request item based on context it is used
type DecisionsStreamResponse ¶
type DecisionsStreamResponse struct { // deleted Deleted GetDecisionsResponse `json:"deleted,omitempty"` // new New GetDecisionsResponse `json:"new,omitempty"` }
DecisionsStreamResponse DecisionsStreamResponse
swagger:model DecisionsStreamResponse
func (*DecisionsStreamResponse) ContextValidate ¶
func (m *DecisionsStreamResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this decisions stream response based on the context it is used
func (*DecisionsStreamResponse) MarshalBinary ¶
func (m *DecisionsStreamResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DecisionsStreamResponse) UnmarshalBinary ¶
func (m *DecisionsStreamResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteAlertsResponse ¶
type DeleteAlertsResponse struct { // number of deleted alerts NbDeleted string `json:"nbDeleted,omitempty"` }
DeleteAlertsResponse DeleteAlertsResponse
swagger:model DeleteAlertsResponse
func (*DeleteAlertsResponse) ContextValidate ¶
ContextValidate validates this delete alerts response based on context it is used
func (*DeleteAlertsResponse) MarshalBinary ¶
func (m *DeleteAlertsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteAlertsResponse) UnmarshalBinary ¶
func (m *DeleteAlertsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteDecisionResponse ¶
type DeleteDecisionResponse struct { // number of deleted decisions NbDeleted string `json:"nbDeleted,omitempty"` }
DeleteDecisionResponse DeleteDecisionResponse
swagger:model DeleteDecisionResponse
func (*DeleteDecisionResponse) ContextValidate ¶
func (m *DeleteDecisionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete decision response based on context it is used
func (*DeleteDecisionResponse) MarshalBinary ¶
func (m *DeleteDecisionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteDecisionResponse) UnmarshalBinary ¶
func (m *DeleteDecisionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ErrorResponse ¶
type ErrorResponse struct { // more detail on individual errors Errors string `json:"errors,omitempty"` // Error message // Required: true Message *string `json:"message"` }
ErrorResponse error response
error response return by the API
swagger:model ErrorResponse
func (*ErrorResponse) ContextValidate ¶
ContextValidate validates this error response based on context it is used
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Event ¶
type Event struct { // meta // Required: true Meta Meta `json:"meta"` // timestamp // Required: true Timestamp *string `json:"timestamp"` }
Event Event
swagger:model Event
func (*Event) ContextValidate ¶
ContextValidate validate this event based on the context it is used
func (*Event) MarshalBinary ¶
MarshalBinary interface implementation
func (*Event) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FlushDecisionResponse ¶
type FlushDecisionResponse struct { // decision id DecisionID string `json:"decision_id,omitempty"` }
FlushDecisionResponse FlushDecisionResponse
swagger:model FlushDecisionResponse
func (*FlushDecisionResponse) MarshalBinary ¶
func (m *FlushDecisionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FlushDecisionResponse) UnmarshalBinary ¶
func (m *FlushDecisionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetAlertsResponse ¶
type GetAlertsResponse []*Alert
GetAlertsResponse AlertsResponse
swagger:model GetAlertsResponse
func (GetAlertsResponse) ContextValidate ¶
ContextValidate validate this get alerts response based on the context it is used
type GetDecisionsResponse ¶
type GetDecisionsResponse []*Decision
GetDecisionsResponse GetDecisionsResponse
swagger:model GetDecisionsResponse
func (GetDecisionsResponse) ContextValidate ¶
ContextValidate validate this get decisions response based on the context it is used
type Meta ¶
type Meta []*MetaItems0
Meta Meta
the Meta data of the Alert itself
swagger:model Meta
func (Meta) ContextValidate ¶
ContextValidate validate this meta based on the context it is used
type MetaItems0 ¶
type MetaItems0 struct { // key Key string `json:"key,omitempty"` // value Value string `json:"value,omitempty"` }
MetaItems0 meta items0
swagger:model MetaItems0
func (*MetaItems0) ContextValidate ¶
ContextValidate validates this meta items0 based on context it is used
func (*MetaItems0) MarshalBinary ¶
func (m *MetaItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetaItems0) UnmarshalBinary ¶
func (m *MetaItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Metrics ¶
type Metrics struct { // the local version of crowdsec/apil // Required: true ApilVersion *string `json:"apil_version"` // bouncers // Required: true Bouncers []*MetricsBouncerInfo `json:"bouncers"` // machines // Required: true Machines []*MetricsAgentInfo `json:"machines"` }
Metrics Metrics
swagger:model Metrics
func (*Metrics) ContextValidate ¶
ContextValidate validate this metrics based on the context it is used
func (*Metrics) MarshalBinary ¶
MarshalBinary interface implementation
func (*Metrics) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MetricsAgentInfo ¶
type MetricsAgentInfo struct { // last agent push date LastPush string `json:"last_push,omitempty"` // last agent update date LastUpdate string `json:"last_update,omitempty"` // name of the component Name string `json:"name,omitempty"` // software version Version string `json:"version,omitempty"` }
MetricsAgentInfo MetricsAgentInfo
Software version info (so we can warn users about out-of-date software). The software name and the version are "guessed" from the user-agent
swagger:model MetricsAgentInfo
func (*MetricsAgentInfo) ContextValidate ¶
ContextValidate validates this metrics agent info based on context it is used
func (*MetricsAgentInfo) MarshalBinary ¶
func (m *MetricsAgentInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsAgentInfo) UnmarshalBinary ¶
func (m *MetricsAgentInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MetricsBouncerInfo ¶
type MetricsBouncerInfo struct { // name of the component CustomName string `json:"custom_name,omitempty"` // last bouncer pull date LastPull string `json:"last_pull,omitempty"` // bouncer type (firewall, php ...) Name string `json:"name,omitempty"` // software version Version string `json:"version,omitempty"` }
MetricsBouncerInfo MetricsBouncerInfo
Software version info (so we can warn users about out-of-date software). The software name and the version are "guessed" from the user-agent
swagger:model MetricsBouncerInfo
func (*MetricsBouncerInfo) ContextValidate ¶
ContextValidate validates this metrics bouncer info based on context it is used
func (*MetricsBouncerInfo) MarshalBinary ¶
func (m *MetricsBouncerInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsBouncerInfo) UnmarshalBinary ¶
func (m *MetricsBouncerInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Source ¶
type Source struct { // provided as a convenience when the source is an IP AsName string `json:"as_name,omitempty"` // provided as a convenience when the source is an IP AsNumber string `json:"as_number,omitempty"` // cn Cn string `json:"cn,omitempty"` // provided as a convenience when the source is an IP IP string `json:"ip,omitempty"` // latitude Latitude float32 `json:"latitude,omitempty"` // longitude Longitude float32 `json:"longitude,omitempty"` // provided as a convenience when the source is an IP Range string `json:"range,omitempty"` // the scope of a source : ip,range,username,etc // Required: true Scope *string `json:"scope"` // the value of a source : the ip, the range, the username,etc // Required: true Value *string `json:"value"` }
Source Source
swagger:model Source
func (*Source) ContextValidate ¶
ContextValidate validates this source based on context it is used
func (Source) GetAsNumberName ¶
func (*Source) MarshalBinary ¶
MarshalBinary interface implementation
func (*Source) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TopxResponse ¶
type TopxResponse struct { // We keep the deleted array for the duration of the initial decision. So that when the initial decision is expired, it won't be present in deleted array anymore. Deleted [][]GetDecisionsResponse `json:"deleted"` // new New [][]GetDecisionsResponse `json:"new"` }
TopxResponse TopxResponse
swagger:model TopxResponse
func (*TopxResponse) MarshalBinary ¶
func (m *TopxResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TopxResponse) UnmarshalBinary ¶
func (m *TopxResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WatcherAuthRequest ¶
type WatcherAuthRequest struct { // machine id // Required: true MachineID *string `json:"machine_id"` // password // Required: true // Format: password Password *strfmt.Password `json:"password"` // the list of scenarios enabled on the watcher Scenarios []string `json:"scenarios"` }
WatcherAuthRequest WatcherAuthRequest
swagger:model WatcherAuthRequest
func (*WatcherAuthRequest) ContextValidate ¶
ContextValidate validates this watcher auth request based on context it is used
func (*WatcherAuthRequest) MarshalBinary ¶
func (m *WatcherAuthRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WatcherAuthRequest) UnmarshalBinary ¶
func (m *WatcherAuthRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WatcherAuthResponse ¶
type WatcherAuthResponse struct { // code Code int64 `json:"code,omitempty"` // expire Expire string `json:"expire,omitempty"` // token Token string `json:"token,omitempty"` }
WatcherAuthResponse WatcherAuthResponse
the response of a successful authentication
swagger:model WatcherAuthResponse
func (*WatcherAuthResponse) ContextValidate ¶
ContextValidate validates this watcher auth response based on context it is used
func (*WatcherAuthResponse) MarshalBinary ¶
func (m *WatcherAuthResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WatcherAuthResponse) UnmarshalBinary ¶
func (m *WatcherAuthResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WatcherRegistrationRequest ¶
type WatcherRegistrationRequest struct { // machine id // Required: true MachineID *string `json:"machine_id"` // password // Required: true // Format: password Password *strfmt.Password `json:"password"` }
WatcherRegistrationRequest WatcherRegistrationRequest
swagger:model WatcherRegistrationRequest
func (*WatcherRegistrationRequest) ContextValidate ¶
func (m *WatcherRegistrationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this watcher registration request based on context it is used
func (*WatcherRegistrationRequest) MarshalBinary ¶
func (m *WatcherRegistrationRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WatcherRegistrationRequest) UnmarshalBinary ¶
func (m *WatcherRegistrationRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- add_alerts_request.go
- add_alerts_response.go
- add_signals_request.go
- add_signals_request_item.go
- add_signals_request_item_decisions.go
- add_signals_request_item_decisions_item.go
- add_signals_request_item_source.go
- alert.go
- decision.go
- decisions_delete_request.go
- decisions_delete_request_item.go
- decisions_stream_response.go
- delete_alerts_response.go
- delete_decision_response.go
- error_response.go
- event.go
- flush_decision_response.go
- get_alerts_response.go
- get_decisions_response.go
- helpers.go
- meta.go
- metrics.go
- metrics_agent_info.go
- metrics_bouncer_info.go
- source.go
- topx_response.go
- watcher_auth_request.go
- watcher_auth_response.go
- watcher_registration_request.go