Documentation ¶
Index ¶
- Constants
- type Alert
- type AlertArray
- type AlertPolicy
- type AlertTemplate
- type AlertTemplateVariables
- func (m *AlertTemplateVariables) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AlertTemplateVariables) MarshalBinary() ([]byte, error)
- func (m *AlertTemplateVariables) UnmarshalBinary(b []byte) error
- func (m *AlertTemplateVariables) Validate(formats strfmt.Registry) error
- type AlertTemplatesArray
- type ErrorResponse
- type Firehose
- type FirehoseArray
- type FirehoseConfig
- type FirehosePartialConfig
- type FirehoseState
- type History
- type Kubernetes
- type KubernetesArray
- type Logs
- type LogsItems0
- type Project
- type ProjectArray
- type RevisionDiff
- type Rule
- type RuleVariablesItems0
Constants ¶
const ( // ErrorResponseCodeConflict captures enum value "conflict" ErrorResponseCodeConflict string = "conflict" // ErrorResponseCodeNotFound captures enum value "not_found" ErrorResponseCodeNotFound string = "not_found" // ErrorResponseCodeBadRequest captures enum value "bad_request" ErrorResponseCodeBadRequest string = "bad_request" // ErrorResponseCodeInternalError captures enum value "internal_error" ErrorResponseCodeInternalError string = "internal_error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { // id // Read Only: true ID string `json:"id,omitempty"` // metric Metric string `json:"metric,omitempty"` // resource Resource string `json:"resource,omitempty"` // rule Rule string `json:"rule,omitempty"` // severity Severity string `json:"severity,omitempty"` // triggered at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time TriggeredAt strfmt.DateTime `json:"triggered_at,omitempty"` // value Value string `json:"value,omitempty"` }
Alert alert
swagger:model Alert
func (*Alert) ContextValidate ¶
ContextValidate validate this alert based on the context it is used
func (*Alert) MarshalBinary ¶
MarshalBinary interface implementation
func (*Alert) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AlertArray ¶
type AlertArray struct { // items Items []*Alert `json:"items"` }
AlertArray alert array
swagger:model AlertArray
func (*AlertArray) ContextValidate ¶
ContextValidate validate this alert array based on the context it is used
func (*AlertArray) MarshalBinary ¶
func (m *AlertArray) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertArray) UnmarshalBinary ¶
func (m *AlertArray) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AlertPolicy ¶
type AlertPolicy struct { // resource // Read Only: true Resource string `json:"resource,omitempty"` // rules Rules []*Rule `json:"rules"` }
AlertPolicy alert policy
swagger:model AlertPolicy
func (*AlertPolicy) ContextValidate ¶
ContextValidate validate this alert policy based on the context it is used
func (*AlertPolicy) MarshalBinary ¶
func (m *AlertPolicy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertPolicy) UnmarshalBinary ¶
func (m *AlertPolicy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AlertTemplate ¶
type AlertTemplate struct { // body Body string `json:"body,omitempty"` // created at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` // tags Tags []string `json:"tags"` // updated at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` // variables Variables *AlertTemplateVariables `json:"variables,omitempty"` }
AlertTemplate alert template
swagger:model AlertTemplate
func (*AlertTemplate) ContextValidate ¶
ContextValidate validate this alert template based on the context it is used
func (*AlertTemplate) MarshalBinary ¶
func (m *AlertTemplate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertTemplate) UnmarshalBinary ¶
func (m *AlertTemplate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AlertTemplateVariables ¶
type AlertTemplateVariables struct { // default Default string `json:"default,omitempty"` // description Description string `json:"description,omitempty"` // name Name string `json:"name,omitempty"` // type Type string `json:"type,omitempty"` }
AlertTemplateVariables alert template variables
swagger:model AlertTemplateVariables
func (*AlertTemplateVariables) ContextValidate ¶
func (m *AlertTemplateVariables) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this alert template variables based on context it is used
func (*AlertTemplateVariables) MarshalBinary ¶
func (m *AlertTemplateVariables) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertTemplateVariables) UnmarshalBinary ¶
func (m *AlertTemplateVariables) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AlertTemplatesArray ¶
type AlertTemplatesArray struct { // items Items []*AlertTemplate `json:"items"` }
AlertTemplatesArray alert templates array
swagger:model AlertTemplatesArray
func (*AlertTemplatesArray) ContextValidate ¶
ContextValidate validate this alert templates array based on the context it is used
func (*AlertTemplatesArray) MarshalBinary ¶
func (m *AlertTemplatesArray) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AlertTemplatesArray) UnmarshalBinary ¶
func (m *AlertTemplatesArray) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ErrorResponse ¶
type ErrorResponse struct { // cause // Example: name must not be empty Cause string `json:"cause,omitempty"` // code // Example: internal_error // Enum: [conflict not_found bad_request internal_error] Code string `json:"code,omitempty"` // message // Example: Request is invalid Message string `json:"message,omitempty"` }
ErrorResponse error response
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 Firehose ¶
type Firehose struct { // configs // Required: true Configs *FirehoseConfig `json:"configs"` // created at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // description // Example: This firehose consumes from booking events and ingests to redis Description string `json:"description,omitempty"` // group // Example: e144ea5e-c7d6-48c4-a580-db31cb3389aa // Required: true // Format: uuid Group *strfmt.UUID `json:"group"` // labels Labels map[string]string `json:"labels,omitempty"` // name // Example: booking-events-ingester // Pattern: ^[A-Za-z][\w-]+[A-Za-z0-9]$ Name string `json:"name,omitempty"` // project // Example: g-goto-id Project string `json:"project,omitempty"` // state State *FirehoseState `json:"state,omitempty"` // title // Example: Booking Events Ingester // Required: true Title *string `json:"title"` // updated at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` // urn // Example: orn:foo:firehose:fh1 // Read Only: true Urn string `json:"urn,omitempty"` }
Firehose firehose
swagger:model Firehose
func (*Firehose) ContextValidate ¶
ContextValidate validate this firehose based on the context it is used
func (*Firehose) MarshalBinary ¶
MarshalBinary interface implementation
func (*Firehose) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FirehoseArray ¶
type FirehoseArray struct { // items Items []*Firehose `json:"items"` }
FirehoseArray firehose array
swagger:model FirehoseArray
func (*FirehoseArray) ContextValidate ¶
ContextValidate validate this firehose array based on the context it is used
func (*FirehoseArray) MarshalBinary ¶
func (m *FirehoseArray) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FirehoseArray) UnmarshalBinary ¶
func (m *FirehoseArray) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FirehoseConfig ¶
type FirehoseConfig struct { // deployment id DeploymentID string `json:"deployment_id,omitempty"` // env vars // Required: true EnvVars map[string]string `json:"env_vars"` // image // Example: gotocompany/firehose:0.1.0 Image string `json:"image,omitempty"` // kube cluster // Example: orn:entropy:kubernetes:sample_project:sample_name // Required: true KubeCluster *string `json:"kube_cluster"` // replicas // Minimum: 1 Replicas float64 `json:"replicas,omitempty"` // stop time // Format: date-time StopTime *strfmt.DateTime `json:"stop_time,omitempty"` // stopped Stopped bool `json:"stopped,omitempty"` // stream name // Required: true StreamName *string `json:"stream_name"` }
FirehoseConfig firehose config
swagger:model FirehoseConfig
func (*FirehoseConfig) ContextValidate ¶
ContextValidate validates this firehose config based on context it is used
func (*FirehoseConfig) MarshalBinary ¶
func (m *FirehoseConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FirehoseConfig) UnmarshalBinary ¶
func (m *FirehoseConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FirehosePartialConfig ¶ added in v0.7.1
type FirehosePartialConfig struct { // If specified, it will be merged with the current configs. EnvVars map[string]string `json:"env_vars,omitempty"` // Set to non-empty string to update // Example: gotocompany/firehose:0.1.0 Image string `json:"image,omitempty"` // Set to a value greater than 0 to update. Replicas float64 `json:"replicas,omitempty"` // - Omit this field to not update. // - Setting it to a non-empty string to update. // - Set it to empty string to remove the current stop_time. // StopTime *string `json:"stop_time,omitempty"` // Set to true/false to stop or start the firehose. Stopped *bool `json:"stopped,omitempty"` // Set to non-empty string to update StreamName string `json:"stream_name,omitempty"` }
FirehosePartialConfig firehose partial config
swagger:model FirehosePartialConfig
func (*FirehosePartialConfig) ContextValidate ¶ added in v0.7.1
ContextValidate validates this firehose partial config based on context it is used
func (*FirehosePartialConfig) MarshalBinary ¶ added in v0.7.1
func (m *FirehosePartialConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FirehosePartialConfig) UnmarshalBinary ¶ added in v0.7.1
func (m *FirehosePartialConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FirehoseState ¶
type FirehoseState struct { // output Output interface{} `json:"output,omitempty"` // status Status string `json:"status,omitempty"` }
FirehoseState firehose state
swagger:model FirehoseState
func (*FirehoseState) ContextValidate ¶
ContextValidate validates this firehose state based on context it is used
func (*FirehoseState) MarshalBinary ¶
func (m *FirehoseState) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FirehoseState) UnmarshalBinary ¶
func (m *FirehoseState) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type History ¶
type History struct { // items Items []*RevisionDiff `json:"items"` }
History history
swagger:model History
func (*History) ContextValidate ¶
ContextValidate validate this history based on the context it is used
func (*History) MarshalBinary ¶
MarshalBinary interface implementation
func (*History) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Kubernetes ¶
type Kubernetes struct { // created at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // name // Example: k8s1 Name string `json:"name,omitempty"` // updated at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` // urn // Example: orn:foo:kubernetes:k8s1 // Read Only: true Urn string `json:"urn,omitempty"` }
Kubernetes kubernetes
swagger:model Kubernetes
func (*Kubernetes) ContextValidate ¶
ContextValidate validate this kubernetes based on the context it is used
func (*Kubernetes) MarshalBinary ¶
func (m *Kubernetes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Kubernetes) UnmarshalBinary ¶
func (m *Kubernetes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type KubernetesArray ¶
type KubernetesArray struct { // items Items []*Kubernetes `json:"items"` }
KubernetesArray kubernetes array
swagger:model KubernetesArray
func (*KubernetesArray) ContextValidate ¶
ContextValidate validate this kubernetes array based on the context it is used
func (*KubernetesArray) MarshalBinary ¶
func (m *KubernetesArray) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KubernetesArray) UnmarshalBinary ¶
func (m *KubernetesArray) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Logs ¶
type Logs []*LogsItems0
Logs logs
swagger:model Logs
func (Logs) ContextValidate ¶
ContextValidate validate this logs based on the context it is used
type LogsItems0 ¶
type LogsItems0 struct { // data Data string `json:"data,omitempty"` // filter Filter interface{} `json:"filter,omitempty"` }
LogsItems0 logs items0
swagger:model LogsItems0
func (*LogsItems0) ContextValidate ¶
ContextValidate validates this logs items0 based on context it is used
func (*LogsItems0) MarshalBinary ¶
func (m *LogsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LogsItems0) UnmarshalBinary ¶
func (m *LogsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Project ¶
type Project struct { // created at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // id // Example: foo // Read Only: true ID string `json:"id,omitempty"` // metadata // Example: {"environment":"production","landscape":"systems","organization":"foo"} Metadata interface{} `json:"metadata,omitempty"` // name // Example: Project Foo Name string `json:"name,omitempty"` // slug // Example: project-foo Slug string `json:"slug,omitempty"` // updated at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
Project project
swagger:model Project
func (*Project) ContextValidate ¶
ContextValidate validate this project based on the context it is used
func (*Project) MarshalBinary ¶
MarshalBinary interface implementation
func (*Project) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ProjectArray ¶
type ProjectArray struct { // items Items []*Project `json:"items"` }
ProjectArray project array
swagger:model ProjectArray
func (*ProjectArray) ContextValidate ¶
ContextValidate validate this project array based on the context it is used
func (*ProjectArray) MarshalBinary ¶
func (m *ProjectArray) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProjectArray) UnmarshalBinary ¶
func (m *ProjectArray) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RevisionDiff ¶
type RevisionDiff struct { // diff Diff interface{} `json:"diff,omitempty"` // reason Reason string `json:"reason,omitempty"` // updated at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
RevisionDiff revision diff
swagger:model RevisionDiff
func (*RevisionDiff) ContextValidate ¶
ContextValidate validate this revision diff based on the context it is used
func (*RevisionDiff) MarshalBinary ¶
func (m *RevisionDiff) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RevisionDiff) UnmarshalBinary ¶
func (m *RevisionDiff) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Rule ¶
type Rule struct { // created at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // enabled Enabled bool `json:"enabled,omitempty"` // id // Read Only: true ID string `json:"id,omitempty"` // template Template string `json:"template,omitempty"` // updated at // Example: 2022-06-23T16:49:15.885541Z // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` // variables Variables []*RuleVariablesItems0 `json:"variables"` }
Rule rule
swagger:model Rule
func (*Rule) ContextValidate ¶
ContextValidate validate this rule based on the context it is used
func (*Rule) MarshalBinary ¶
MarshalBinary interface implementation
func (*Rule) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RuleVariablesItems0 ¶
type RuleVariablesItems0 struct { // description Description string `json:"description,omitempty"` // name Name string `json:"name,omitempty"` // type Type string `json:"type,omitempty"` // value Value string `json:"value,omitempty"` }
RuleVariablesItems0 rule variables items0
swagger:model RuleVariablesItems0
func (*RuleVariablesItems0) ContextValidate ¶
ContextValidate validates this rule variables items0 based on context it is used
func (*RuleVariablesItems0) MarshalBinary ¶
func (m *RuleVariablesItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RuleVariablesItems0) UnmarshalBinary ¶
func (m *RuleVariablesItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- alert.go
- alert_array.go
- alert_policy.go
- alert_template.go
- alert_templates_array.go
- error_response.go
- firehose.go
- firehose_array.go
- firehose_config.go
- firehose_partial_config.go
- firehose_state.go
- history.go
- kubernetes.go
- kubernetes_array.go
- logs.go
- project.go
- project_array.go
- revision_diff.go
- rule.go