models

package
v0.7.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DlqJobStatusPending captures enum value "pending"
	DlqJobStatusPending string = "pending"

	// DlqJobStatusError captures enum value "error"
	DlqJobStatusError string = "error"

	// DlqJobStatusRunning captures enum value "running"
	DlqJobStatusRunning string = "running"

	// DlqJobStatusStopped captures enum value "stopped"
	DlqJobStatusStopped string = "stopped"
)
View Source
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"
)
View Source
const (

	// RevisionDiffReasonActionCreate captures enum value "action:create"
	RevisionDiffReasonActionCreate string = "action:create"

	// RevisionDiffReasonActionUpdate captures enum value "action:update"
	RevisionDiffReasonActionUpdate string = "action:update"

	// RevisionDiffReasonActionReset captures enum value "action:reset"
	RevisionDiffReasonActionReset string = "action:reset"

	// RevisionDiffReasonActionStart captures enum value "action:start"
	RevisionDiffReasonActionStart string = "action:start"

	// RevisionDiffReasonActionStop captures enum value "action:stop"
	RevisionDiffReasonActionStop string = "action:stop"

	// RevisionDiffReasonActionUpgrade captures enum value "action:upgrade"
	RevisionDiffReasonActionUpgrade string = "action:upgrade"
)
View Source
const (

	// SubscriptionFormAlertSeverityINFO captures enum value "INFO"
	SubscriptionFormAlertSeverityINFO string = "INFO"

	// SubscriptionFormAlertSeverityWARNING captures enum value "WARNING"
	SubscriptionFormAlertSeverityWARNING string = "WARNING"

	// SubscriptionFormAlertSeverityCRITICAL captures enum value "CRITICAL"
	SubscriptionFormAlertSeverityCRITICAL string = "CRITICAL"
)
View Source
const (

	// SubscriptionFormResourceTypeFirehose captures enum value "firehose"
	SubscriptionFormResourceTypeFirehose string = "firehose"

	// SubscriptionFormResourceTypeDagger captures enum value "dagger"
	SubscriptionFormResourceTypeDagger string = "dagger"

	// SubscriptionFormResourceTypeOptimus captures enum value "optimus"
	SubscriptionFormResourceTypeOptimus string = "optimus"
)
View Source
const (

	// DlqJobFormResourceTypeFirehose captures enum value "firehose"
	DlqJobFormResourceTypeFirehose string = "firehose"
)
View Source
const (

	// DlqJobResourceTypeFirehose captures enum value "firehose"
	DlqJobResourceTypeFirehose string = "firehose"
)

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

func (m *Alert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert based on the context it is used

func (*Alert) MarshalBinary

func (m *Alert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Alert) UnmarshalBinary

func (m *Alert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Alert) Validate

func (m *Alert) Validate(formats strfmt.Registry) error

Validate validates this alert

type AlertArray

type AlertArray struct {

	// items
	Items []*Alert `json:"items"`
}

AlertArray alert array

swagger:model AlertArray

func (*AlertArray) ContextValidate

func (m *AlertArray) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*AlertArray) Validate

func (m *AlertArray) Validate(formats strfmt.Registry) error

Validate validates this alert array

type AlertChannel added in v0.7.9

type AlertChannel struct {

	// channel criticality
	ChannelCriticality *ChannelCriticality `json:"channel_criticality,omitempty"`

	// channel name
	// Example: test-channel-name
	ChannelName string `json:"channel_name,omitempty"`

	// channel type
	ChannelType *AlertChannelType `json:"channel_type,omitempty"`

	// pagerduty service key
	// Example: sjand91299asldkla
	PagerdutyServiceKey string `json:"pagerduty_service_key,omitempty"`

	// receiver id
	// Example: 47
	// Read Only: true
	ReceiverID string `json:"receiver_id,omitempty"`

	// receiver name
	// Example: pilot-team-de-slack-warning
	// Read Only: true
	ReceiverName string `json:"receiver_name,omitempty"`
}

AlertChannel alert channel

swagger:model AlertChannel

func (*AlertChannel) ContextValidate added in v0.7.9

func (m *AlertChannel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert channel based on the context it is used

func (*AlertChannel) MarshalBinary added in v0.7.9

func (m *AlertChannel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertChannel) UnmarshalBinary added in v0.7.9

func (m *AlertChannel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertChannel) Validate added in v0.7.9

func (m *AlertChannel) Validate(formats strfmt.Registry) error

Validate validates this alert channel

type AlertChannelForm added in v0.7.11

type AlertChannelForm struct {

	// channel criticality
	// Required: true
	ChannelCriticality *ChannelCriticality `json:"channel_criticality"`

	// channel name
	// Example: test-channel-name
	ChannelName string `json:"channel_name,omitempty"`

	// channel type
	// Required: true
	ChannelType *AlertChannelType `json:"channel_type"`

	// pagerduty service key
	// Example: sjand91299asldkla
	PagerdutyServiceKey string `json:"pagerduty_service_key,omitempty"`
}

AlertChannelForm alert channel form

swagger:model AlertChannelForm

func (*AlertChannelForm) ContextValidate added in v0.7.11

func (m *AlertChannelForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this alert channel form based on the context it is used

func (*AlertChannelForm) MarshalBinary added in v0.7.11

func (m *AlertChannelForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AlertChannelForm) UnmarshalBinary added in v0.7.11

func (m *AlertChannelForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AlertChannelForm) Validate added in v0.7.11

func (m *AlertChannelForm) Validate(formats strfmt.Registry) error

Validate validates this alert channel form

type AlertChannelType added in v0.7.11

type AlertChannelType string

AlertChannelType alert channel type

swagger:model AlertChannelType

const (

	// AlertChannelTypeSlackChannel captures enum value "slack_channel"
	AlertChannelTypeSlackChannel AlertChannelType = "slack_channel"

	// AlertChannelTypePagerduty captures enum value "pagerduty"
	AlertChannelTypePagerduty AlertChannelType = "pagerduty"
)

func NewAlertChannelType added in v0.7.11

func NewAlertChannelType(value AlertChannelType) *AlertChannelType

func (AlertChannelType) ContextValidate added in v0.7.11

func (m AlertChannelType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this alert channel type based on context it is used

func (AlertChannelType) Validate added in v0.7.11

func (m AlertChannelType) Validate(formats strfmt.Registry) error

Validate validates this alert channel type

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

func (m *AlertPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*AlertPolicy) Validate

func (m *AlertPolicy) Validate(formats strfmt.Registry) error

Validate validates this alert policy

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

func (m *AlertTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*AlertTemplate) Validate

func (m *AlertTemplate) Validate(formats strfmt.Registry) error

Validate validates this alert template

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

func (*AlertTemplateVariables) Validate

func (m *AlertTemplateVariables) Validate(formats strfmt.Registry) error

Validate validates this alert template variables

type AlertTemplatesArray

type AlertTemplatesArray struct {

	// items
	Items []*AlertTemplate `json:"items"`
}

AlertTemplatesArray alert templates array

swagger:model AlertTemplatesArray

func (*AlertTemplatesArray) ContextValidate

func (m *AlertTemplatesArray) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*AlertTemplatesArray) Validate

func (m *AlertTemplatesArray) Validate(formats strfmt.Registry) error

Validate validates this alert templates array

type ChannelCriticality added in v0.7.9

type ChannelCriticality string

ChannelCriticality channel criticality

swagger:model ChannelCriticality

const (

	// ChannelCriticalityINFO captures enum value "INFO"
	ChannelCriticalityINFO ChannelCriticality = "INFO"

	// ChannelCriticalityWARNING captures enum value "WARNING"
	ChannelCriticalityWARNING ChannelCriticality = "WARNING"

	// ChannelCriticalityCRITICAL captures enum value "CRITICAL"
	ChannelCriticalityCRITICAL ChannelCriticality = "CRITICAL"
)

func NewChannelCriticality added in v0.7.9

func NewChannelCriticality(value ChannelCriticality) *ChannelCriticality

func (ChannelCriticality) ContextValidate added in v0.7.9

func (m ChannelCriticality) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this channel criticality based on context it is used

func (ChannelCriticality) Validate added in v0.7.9

func (m ChannelCriticality) Validate(formats strfmt.Registry) error

Validate validates this channel criticality

type DlqJob added in v0.7.12

type DlqJob struct {

	// batch size
	BatchSize int64 `json:"batch_size,omitempty"`

	// container image
	ContainerImage string `json:"container_image,omitempty"`

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// created by
	CreatedBy string `json:"created_by,omitempty"`

	// date
	// Example: 2012-10-30
	Date string `json:"date,omitempty"`

	// dlq gcs credential path
	DlqGcsCredentialPath string `json:"dlq_gcs_credential_path,omitempty"`

	// env vars
	EnvVars map[string]string `json:"env_vars,omitempty"`

	// List of firehose error types, comma separated
	ErrorTypes string `json:"error_types,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// kube cluster
	KubeCluster string `json:"kube_cluster,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// num threads
	NumThreads int64 `json:"num_threads,omitempty"`

	// Shield's project slug
	Project string `json:"project,omitempty"`

	// prometheus host
	PrometheusHost string `json:"prometheus_host,omitempty"`

	// replicas
	Replicas int64 `json:"replicas,omitempty"`

	// resource id
	ResourceID string `json:"resource_id,omitempty"`

	// resource type
	// Enum: [firehose]
	ResourceType string `json:"resource_type,omitempty"`

	// status
	// Enum: [pending error running stopped]
	Status string `json:"status,omitempty"`

	// topic
	Topic string `json:"topic,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// updated by
	UpdatedBy string `json:"updated_by,omitempty"`

	// urn
	Urn string `json:"urn,omitempty"`
}

DlqJob dlq job

swagger:model DlqJob

func (*DlqJob) ContextValidate added in v0.7.12

func (m *DlqJob) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dlq job based on context it is used

func (*DlqJob) MarshalBinary added in v0.7.12

func (m *DlqJob) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DlqJob) UnmarshalBinary added in v0.7.12

func (m *DlqJob) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DlqJob) Validate added in v0.7.12

func (m *DlqJob) Validate(formats strfmt.Registry) error

Validate validates this dlq job

type DlqJobForm added in v0.7.21

type DlqJobForm struct {

	// batch size
	// Required: true
	BatchSize *int64 `json:"batch_size"`

	// date
	// Example: 2012-10-30
	// Required: true
	// Min Length: 1
	Date *string `json:"date"`

	// List of firehose error types, comma separated
	ErrorTypes string `json:"error_types,omitempty"`

	// num threads
	// Required: true
	NumThreads *int64 `json:"num_threads"`

	// resource id
	// Required: true
	// Min Length: 1
	ResourceID *string `json:"resource_id"`

	// resource type
	// Required: true
	// Enum: [firehose]
	ResourceType *string `json:"resource_type"`

	// topic
	// Required: true
	// Min Length: 1
	Topic *string `json:"topic"`
}

DlqJobForm dlq job form

swagger:model DlqJobForm

func (*DlqJobForm) ContextValidate added in v0.7.21

func (m *DlqJobForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dlq job form based on context it is used

func (*DlqJobForm) MarshalBinary added in v0.7.21

func (m *DlqJobForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DlqJobForm) UnmarshalBinary added in v0.7.21

func (m *DlqJobForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DlqJobForm) Validate added in v0.7.21

func (m *DlqJobForm) Validate(formats strfmt.Registry) error

Validate validates this dlq job form

type DlqMetadata added in v0.7.14

type DlqMetadata struct {

	// date
	// Example: 2022-10-24
	Date string `json:"date,omitempty"`

	// size in bytes
	SizeInBytes int64 `json:"size_in_bytes,omitempty"`

	// topic
	Topic string `json:"topic,omitempty"`
}

DlqMetadata dlq metadata

swagger:model DlqMetadata

func (*DlqMetadata) ContextValidate added in v0.7.14

func (m *DlqMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dlq metadata based on context it is used

func (*DlqMetadata) MarshalBinary added in v0.7.14

func (m *DlqMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DlqMetadata) UnmarshalBinary added in v0.7.14

func (m *DlqMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DlqMetadata) Validate added in v0.7.14

func (m *DlqMetadata) Validate(formats strfmt.Registry) error

Validate validates this dlq metadata

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

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

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"`

	// created by
	// Example: john.doe@example.com
	// Read Only: true
	CreatedBy string `json:"created_by,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"`

	// updated by
	// Example: jane.doe@example.com
	// Read Only: true
	UpdatedBy string `json:"updated_by,omitempty"`

	// urn
	// Example: orn:foo:firehose:fh1
	// Read Only: true
	Urn string `json:"urn,omitempty"`
}

Firehose firehose

swagger:model Firehose

func (*Firehose) ContextValidate

func (m *Firehose) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this firehose based on the context it is used

func (*Firehose) MarshalBinary

func (m *Firehose) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Firehose) UnmarshalBinary

func (m *Firehose) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Firehose) Validate

func (m *Firehose) Validate(formats strfmt.Registry) error

Validate validates this firehose

type FirehoseArray

type FirehoseArray struct {

	// items
	Items []*Firehose `json:"items"`
}

FirehoseArray firehose array

swagger:model FirehoseArray

func (*FirehoseArray) ContextValidate

func (m *FirehoseArray) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*FirehoseArray) Validate

func (m *FirehoseArray) Validate(formats strfmt.Registry) error

Validate validates this firehose array

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"`

	// reset offset
	// Example: latest
	// Read Only: true
	ResetOffset string `json:"reset_offset,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

func (m *FirehoseConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this firehose config based on the 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

func (*FirehoseConfig) Validate

func (m *FirehoseConfig) Validate(formats strfmt.Registry) error

Validate validates this firehose config

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

func (m *FirehosePartialConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*FirehosePartialConfig) Validate added in v0.7.1

func (m *FirehosePartialConfig) Validate(formats strfmt.Registry) error

Validate validates this firehose partial config

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

func (m *FirehoseState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*FirehoseState) Validate

func (m *FirehoseState) Validate(formats strfmt.Registry) error

Validate validates this firehose state

type FirehoseUpdateRequest added in v0.7.13

type FirehoseUpdateRequest struct {

	// configs
	Configs *FirehoseConfig `json:"configs,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"`
}

FirehoseUpdateRequest firehose update request

swagger:model FirehoseUpdateRequest

func (*FirehoseUpdateRequest) ContextValidate added in v0.7.13

func (m *FirehoseUpdateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this firehose update request based on the context it is used

func (*FirehoseUpdateRequest) MarshalBinary added in v0.7.13

func (m *FirehoseUpdateRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FirehoseUpdateRequest) UnmarshalBinary added in v0.7.13

func (m *FirehoseUpdateRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FirehoseUpdateRequest) Validate added in v0.7.13

func (m *FirehoseUpdateRequest) Validate(formats strfmt.Registry) error

Validate validates this firehose update request

type HistoryResponse added in v0.7.8

type HistoryResponse struct {

	// history
	History []*RevisionDiff `json:"history"`
}

HistoryResponse history response

swagger:model HistoryResponse

func (*HistoryResponse) ContextValidate added in v0.7.8

func (m *HistoryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this history response based on the context it is used

func (*HistoryResponse) MarshalBinary added in v0.7.8

func (m *HistoryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HistoryResponse) UnmarshalBinary added in v0.7.8

func (m *HistoryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HistoryResponse) Validate added in v0.7.8

func (m *HistoryResponse) Validate(formats strfmt.Registry) error

Validate validates this history response

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

func (m *Kubernetes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Kubernetes) Validate

func (m *Kubernetes) Validate(formats strfmt.Registry) error

Validate validates this kubernetes

type KubernetesArray

type KubernetesArray struct {

	// items
	Items []*Kubernetes `json:"items"`
}

KubernetesArray kubernetes array

swagger:model KubernetesArray

func (*KubernetesArray) ContextValidate

func (m *KubernetesArray) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*KubernetesArray) Validate

func (m *KubernetesArray) Validate(formats strfmt.Registry) error

Validate validates this kubernetes array

type Logs

type Logs []*LogsItems0

Logs logs

swagger:model Logs

func (Logs) ContextValidate

func (m Logs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this logs based on the context it is used

func (Logs) Validate

func (m Logs) Validate(formats strfmt.Registry) error

Validate validates this logs

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

func (m *LogsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*LogsItems0) Validate

func (m *LogsItems0) Validate(formats strfmt.Registry) error

Validate validates this logs items0

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

func (m *Project) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project based on the context it is used

func (*Project) MarshalBinary

func (m *Project) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Project) UnmarshalBinary

func (m *Project) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Project) Validate

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

type ProjectArray

type ProjectArray struct {

	// items
	Items []*Project `json:"items"`
}

ProjectArray project array

swagger:model ProjectArray

func (*ProjectArray) ContextValidate

func (m *ProjectArray) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ProjectArray) Validate

func (m *ProjectArray) Validate(formats strfmt.Registry) error

Validate validates this project array

type Response added in v0.7.9

type Response struct {

	// message
	// Example: Sample Message
	Message string `json:"message,omitempty"`
}

Response response

swagger:model Response

func (*Response) ContextValidate added in v0.7.9

func (m *Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this response based on context it is used

func (*Response) MarshalBinary added in v0.7.9

func (m *Response) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Response) UnmarshalBinary added in v0.7.9

func (m *Response) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Response) Validate added in v0.7.9

func (m *Response) Validate(formats strfmt.Registry) error

Validate validates this response

type RevisionDiff

type RevisionDiff struct {

	// diff
	// Example: {"configs":{"replicas":[3,2]},"labels":{"title":["old-title","new-title"]}}
	Diff interface{} `json:"diff,omitempty"`

	// reason
	// Enum: [action:create action:update action:reset action:start action:stop action:upgrade]
	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"`

	// updated by
	// Example: john.doe@example.com
	UpdatedBy string `json:"updated_by,omitempty"`
}

RevisionDiff revision diff

swagger:model RevisionDiff

func (*RevisionDiff) ContextValidate

func (m *RevisionDiff) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*RevisionDiff) Validate

func (m *RevisionDiff) Validate(formats strfmt.Registry) error

Validate validates this revision diff

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

func (m *Rule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rule based on the context it is used

func (*Rule) MarshalBinary

func (m *Rule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Rule) UnmarshalBinary

func (m *Rule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Rule) Validate

func (m *Rule) Validate(formats strfmt.Registry) error

Validate validates this rule

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

func (m *RuleVariablesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*RuleVariablesItems0) Validate

func (m *RuleVariablesItems0) Validate(formats strfmt.Registry) error

Validate validates this rule variables items0

type Subscription added in v0.7.9

type Subscription struct {

	// created at
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// created by
	CreatedBy string `json:"created_by,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// match
	Match map[string]string `json:"match,omitempty"`

	// metadata
	Metadata interface{} `json:"metadata,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// receivers
	Receivers []*SubscriptionReceiversItems0 `json:"receivers"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// updated by
	UpdatedBy string `json:"updated_by,omitempty"`

	// urn
	Urn string `json:"urn,omitempty"`
}

Subscription Siren subscription model: https://github.com/goto/siren/blob/v0.6.4/proto/siren.swagger.yaml#L1325

swagger:model Subscription

func (*Subscription) ContextValidate added in v0.7.9

func (m *Subscription) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this subscription based on the context it is used

func (*Subscription) MarshalBinary added in v0.7.9

func (m *Subscription) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Subscription) UnmarshalBinary added in v0.7.9

func (m *Subscription) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Subscription) Validate added in v0.7.9

func (m *Subscription) Validate(formats strfmt.Registry) error

Validate validates this subscription

type SubscriptionForm added in v0.7.9

type SubscriptionForm struct {

	// alert severity
	// Required: true
	// Enum: [INFO WARNING CRITICAL]
	AlertSeverity *string `json:"alert_severity"`

	// channel criticality
	// Required: true
	ChannelCriticality *ChannelCriticality `json:"channel_criticality"`

	// Shield's group id
	// Example: 913464a1-4f87-4312-b4c8-5ac3ebd4f1f2
	// Required: true
	GroupID *string `json:"group_id"`

	// project id
	// Example: 113564a1-4f87-4312-b4c8-53c3ebd4f1f2
	// Required: true
	ProjectID *string `json:"project_id"`

	// Firehose Unique Identifier
	// Required: true
	ResourceID *string `json:"resource_id"`

	// resource type
	// Required: true
	// Enum: [firehose dagger optimus]
	ResourceType *string `json:"resource_type"`
}

SubscriptionForm subscription form

swagger:model SubscriptionForm

func (*SubscriptionForm) ContextValidate added in v0.7.9

func (m *SubscriptionForm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this subscription form based on the context it is used

func (*SubscriptionForm) MarshalBinary added in v0.7.9

func (m *SubscriptionForm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubscriptionForm) UnmarshalBinary added in v0.7.9

func (m *SubscriptionForm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubscriptionForm) Validate added in v0.7.9

func (m *SubscriptionForm) Validate(formats strfmt.Registry) error

Validate validates this subscription form

type SubscriptionReceiversItems0 added in v0.7.9

type SubscriptionReceiversItems0 struct {

	// configuration
	Configuration interface{} `json:"configuration,omitempty"`

	// id
	ID string `json:"id,omitempty"`
}

SubscriptionReceiversItems0 subscription receivers items0

swagger:model SubscriptionReceiversItems0

func (*SubscriptionReceiversItems0) ContextValidate added in v0.7.9

func (m *SubscriptionReceiversItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this subscription receivers items0 based on context it is used

func (*SubscriptionReceiversItems0) MarshalBinary added in v0.7.9

func (m *SubscriptionReceiversItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SubscriptionReceiversItems0) UnmarshalBinary added in v0.7.9

func (m *SubscriptionReceiversItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SubscriptionReceiversItems0) Validate added in v0.7.9

func (m *SubscriptionReceiversItems0) Validate(formats strfmt.Registry) error

Validate validates this subscription receivers items0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL