models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

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

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type ExperimentReport

type ExperimentReport struct {

	// is it set as available on the booking system?
	// Required: true
	Available *bool `json:"available"`

	// first checked
	// Required: true
	FirstChecked *string `json:"first_checked"`

	// number of health events recorded
	HealthEvents int64 `json:"health_events,omitempty"`

	// healthy
	// Required: true
	Healthy *bool `json:"healthy"`

	// jump ok
	// Required: true
	JumpOk *bool `json:"jump_ok"`

	// jump report
	JumpReport *JumpReport `json:"jump_report,omitempty"`

	// last checked jump
	// Required: true
	LastCheckedJump *string `json:"last_checked_jump"`

	// last checked streams
	// Required: true
	LastCheckedStreams *string `json:"last_checked_streams"`

	// last found in manifest
	// Required: true
	LastFoundInManifest *string `json:"last_found_in_manifest"`

	// name of the resouce in the manifest
	// Example: r-spin30
	// Required: true
	ResourceName *string `json:"resource_name"`

	// stream ok
	// Required: true
	StreamOk map[string]bool `json:"stream_ok"`

	// stream reports
	// Required: true
	StreamReports map[string]StreamReport `json:"stream_reports"`

	// defaults to true for required stream, false currently undefined, but kept as a map for consistenct with stream_reports and stream_ok
	// Required: true
	StreamRequired map[string]bool `json:"stream_required"`

	// topic stub in stream names
	// Example: spin30
	// Required: true
	TopicName *string `json:"topic_name"`
}

ExperimentReport Report on the Status of an experiment

swagger:model ExperimentReport

func (*ExperimentReport) ContextValidate

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

ContextValidate validate this experiment report based on the context it is used

func (*ExperimentReport) MarshalBinary

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

MarshalBinary interface implementation

func (*ExperimentReport) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExperimentReport) Validate

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

Validate validates this experiment report

type ExperimentReports

type ExperimentReports []*ExperimentReport

ExperimentReports List of experiment reports

swagger:model ExperimentReports

func (ExperimentReports) ContextValidate

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

ContextValidate validate this experiment reports based on the context it is used

func (ExperimentReports) Validate

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

Validate validates this experiment reports

type HealthEvent

type HealthEvent struct {

	// is experiment healthy?
	Healthy bool `json:"healthy,omitempty"`

	// list of issues, if any
	Issues []string `json:"issues"`

	// is the jump connection ok?
	JumpOk bool `json:"jump_ok,omitempty"`

	// which streams are connected, and are they ok? Name of stream in key
	StreamOk map[string]bool `json:"stream_ok,omitempty"`

	// the time and date of the event occurring
	When string `json:"when,omitempty"`
}

HealthEvent health event

information on what streams are available when an experiment changes health status

swagger:model HealthEvent

func (*HealthEvent) ContextValidate

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

ContextValidate validates this health event based on context it is used

func (*HealthEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*HealthEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HealthEvent) Validate

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

Validate validates this health event

type HealthEvents

type HealthEvents []*HealthEvent

HealthEvents Health events

list of health events

swagger:model HealthEvents

func (HealthEvents) ContextValidate

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

ContextValidate validate this health events based on the context it is used

func (HealthEvents) Validate

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

Validate validates this health events

type JumpReport

type JumpReport struct {

	// can read
	CanRead bool `json:"can_read,omitempty"`

	// can write
	CanWrite bool `json:"can_write,omitempty"`

	// date and time connection made
	// Required: true
	Connected *string `json:"connected"`

	// expiry date and time in the token used to authenticate the connection
	// Required: true
	ExpiresAt *string `json:"expires_at"`

	// list of IP addresses for client (typically <client>, <proxy 1>, etc)
	RemoteAddr string `json:"remote_addr,omitempty"`

	// list of scopes supplied in token used to authenticate the connection
	// Required: true
	Scopes []string `json:"scopes"`

	// stats
	// Required: true
	Stats *RxTx `json:"stats"`

	// topic_stub for experiment e.g. pend00
	// Required: true
	Topic *string `json:"topic"`

	// what tool is user using to connect
	// Required: true
	UserAgent *string `json:"user_agent"`
}

JumpReport Status of the jump connection for an experiment

swagger:model JumpReport

func (*JumpReport) ContextValidate

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

ContextValidate validate this jump report based on the context it is used

func (*JumpReport) MarshalBinary

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

MarshalBinary interface implementation

func (*JumpReport) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JumpReport) Validate

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

Validate validates this jump report

type RxTx

type RxTx struct {

	// rx
	Rx *Statistics `json:"rx,omitempty"`

	// tx
	Tx *Statistics `json:"tx,omitempty"`
}

RxTx receive and transmit statistics for a connection

swagger:model RxTx

func (*RxTx) ContextValidate

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

ContextValidate validate this rx tx based on the context it is used

func (*RxTx) MarshalBinary

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

MarshalBinary interface implementation

func (*RxTx) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RxTx) Validate

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

Validate validates this rx tx

type Statistics

type Statistics struct {

	// messages per second (frames per second if video)
	Fps int64 `json:"fps,omitempty"`

	// date and time of the last message sent
	Last string `json:"last,omitempty"`

	// true if not messages ever sent on this connection
	Never bool `json:"never,omitempty"`

	// size in bytes of the last message sent
	Size int64 `json:"size,omitempty"`
}

Statistics connection statistics

swagger:model Statistics

func (*Statistics) ContextValidate

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

ContextValidate validates this statistics based on context it is used

func (*Statistics) MarshalBinary

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

MarshalBinary interface implementation

func (*Statistics) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Statistics) Validate

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

Validate validates this statistics

type StreamReport

type StreamReport struct {

	// can read
	CanRead bool `json:"can_read,omitempty"`

	// can write
	CanWrite bool `json:"can_write,omitempty"`

	// date and time connection made
	// Required: true
	Connected *string `json:"connected"`

	// expiry date and time in the token used to authenticate the connection
	// Required: true
	ExpiresAt *string `json:"expires_at"`

	// list of IP addresses for client (typically <client>, <proxy 1>, etc)
	RemoteAddr string `json:"remote_addr,omitempty"`

	// list of scopes supplied in token used to authenticate the connection
	// Required: true
	Scopes []string `json:"scopes"`

	// stats
	// Required: true
	Stats *RxTx `json:"stats"`

	// topic_stub for experiment e.g. pend00
	// Required: true
	Topic *string `json:"topic"`

	// what tool is user using to connect
	// Required: true
	UserAgent *string `json:"user_agent"`
}

StreamReport Status of a stream

swagger:model StreamReport

func (*StreamReport) ContextValidate

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

ContextValidate validate this stream report based on the context it is used

func (*StreamReport) MarshalBinary

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

MarshalBinary interface implementation

func (*StreamReport) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StreamReport) Validate

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

Validate validates this stream report

Jump to

Keyboard shortcuts

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