observatory

package
v5.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 22 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_observatory_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {

	// @Document The selectors for outbound under observation
	SubjectSelector []string `protobuf:"bytes,2,rep,name=subject_selector,json=subjectSelector,proto3" json:"subject_selector,omitempty"`
	ProbeUrl        string   `protobuf:"bytes,3,opt,name=probe_url,json=probeUrl,proto3" json:"probe_url,omitempty"`
	ProbeInterval   int64    `protobuf:"varint,4,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetProbeInterval

func (x *Config) GetProbeInterval() int64

func (*Config) GetProbeUrl

func (x *Config) GetProbeUrl() string

func (*Config) GetSubjectSelector

func (x *Config) GetSubjectSelector() []string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type HealthPingMeasurementResult

type HealthPingMeasurementResult struct {
	All       int64 `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
	Fail      int64 `protobuf:"varint,2,opt,name=fail,proto3" json:"fail,omitempty"`
	Deviation int64 `protobuf:"varint,3,opt,name=deviation,proto3" json:"deviation,omitempty"`
	Average   int64 `protobuf:"varint,4,opt,name=average,proto3" json:"average,omitempty"`
	Max       int64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"`
	Min       int64 `protobuf:"varint,6,opt,name=min,proto3" json:"min,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthPingMeasurementResult) Descriptor deprecated

func (*HealthPingMeasurementResult) Descriptor() ([]byte, []int)

Deprecated: Use HealthPingMeasurementResult.ProtoReflect.Descriptor instead.

func (*HealthPingMeasurementResult) GetAll

func (x *HealthPingMeasurementResult) GetAll() int64

func (*HealthPingMeasurementResult) GetAverage

func (x *HealthPingMeasurementResult) GetAverage() int64

func (*HealthPingMeasurementResult) GetDeviation

func (x *HealthPingMeasurementResult) GetDeviation() int64

func (*HealthPingMeasurementResult) GetFail

func (x *HealthPingMeasurementResult) GetFail() int64

func (*HealthPingMeasurementResult) GetMax

func (x *HealthPingMeasurementResult) GetMax() int64

func (*HealthPingMeasurementResult) GetMin

func (x *HealthPingMeasurementResult) GetMin() int64

func (*HealthPingMeasurementResult) ProtoMessage

func (*HealthPingMeasurementResult) ProtoMessage()

func (*HealthPingMeasurementResult) ProtoReflect

func (*HealthPingMeasurementResult) Reset

func (x *HealthPingMeasurementResult) Reset()

func (*HealthPingMeasurementResult) String

func (x *HealthPingMeasurementResult) String() string

type Intensity

type Intensity struct {

	// @Document The time interval for a probe request in ms.
	// @Type time.ms
	ProbeInterval uint32 `protobuf:"varint,1,opt,name=probe_interval,json=probeInterval,proto3" json:"probe_interval,omitempty"`
	// contains filtered or unexported fields
}

func (*Intensity) Descriptor deprecated

func (*Intensity) Descriptor() ([]byte, []int)

Deprecated: Use Intensity.ProtoReflect.Descriptor instead.

func (*Intensity) GetProbeInterval

func (x *Intensity) GetProbeInterval() uint32

func (*Intensity) ProtoMessage

func (*Intensity) ProtoMessage()

func (*Intensity) ProtoReflect

func (x *Intensity) ProtoReflect() protoreflect.Message

func (*Intensity) Reset

func (x *Intensity) Reset()

func (*Intensity) String

func (x *Intensity) String() string

type ObservationResult

type ObservationResult struct {
	Status []*OutboundStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ObservationResult) Descriptor deprecated

func (*ObservationResult) Descriptor() ([]byte, []int)

Deprecated: Use ObservationResult.ProtoReflect.Descriptor instead.

func (*ObservationResult) GetStatus

func (x *ObservationResult) GetStatus() []*OutboundStatus

func (*ObservationResult) ProtoMessage

func (*ObservationResult) ProtoMessage()

func (*ObservationResult) ProtoReflect

func (x *ObservationResult) ProtoReflect() protoreflect.Message

func (*ObservationResult) Reset

func (x *ObservationResult) Reset()

func (*ObservationResult) String

func (x *ObservationResult) String() string

type Observer

type Observer struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config *Config) (*Observer, error)

func (*Observer) Close

func (o *Observer) Close() error

func (*Observer) GetObservation

func (o *Observer) GetObservation(ctx context.Context) (proto.Message, error)

func (*Observer) Start

func (o *Observer) Start() error

func (*Observer) Type

func (o *Observer) Type() interface{}

type OutboundStatus

type OutboundStatus struct {

	// @Document Whether this outbound is usable
	// @Restriction ReadOnlyForUser
	Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
	// @Document The time for probe request to finish.
	// @Type time.ms
	// @Restriction ReadOnlyForUser
	Delay int64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"`
	// @Document The last error caused this outbound failed to relay probe request
	// @Restriction NotMachineReadable
	LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"`
	// @Document The outbound tag for this Server
	// @Type id.outboundTag
	OutboundTag string `protobuf:"bytes,4,opt,name=outbound_tag,json=outboundTag,proto3" json:"outbound_tag,omitempty"`
	// @Document The time this outbound is known to be alive
	// @Type id.outboundTag
	LastSeenTime int64 `protobuf:"varint,5,opt,name=last_seen_time,json=lastSeenTime,proto3" json:"last_seen_time,omitempty"`
	// @Document The time this outbound is tried
	// @Type id.outboundTag
	LastTryTime int64                        `protobuf:"varint,6,opt,name=last_try_time,json=lastTryTime,proto3" json:"last_try_time,omitempty"`
	HealthPing  *HealthPingMeasurementResult `protobuf:"bytes,7,opt,name=health_ping,json=healthPing,proto3" json:"health_ping,omitempty"`
	// contains filtered or unexported fields
}

func (*OutboundStatus) Descriptor deprecated

func (*OutboundStatus) Descriptor() ([]byte, []int)

Deprecated: Use OutboundStatus.ProtoReflect.Descriptor instead.

func (*OutboundStatus) GetAlive

func (x *OutboundStatus) GetAlive() bool

func (*OutboundStatus) GetDelay

func (x *OutboundStatus) GetDelay() int64

func (*OutboundStatus) GetHealthPing

func (x *OutboundStatus) GetHealthPing() *HealthPingMeasurementResult

func (*OutboundStatus) GetLastErrorReason

func (x *OutboundStatus) GetLastErrorReason() string

func (*OutboundStatus) GetLastSeenTime

func (x *OutboundStatus) GetLastSeenTime() int64

func (*OutboundStatus) GetLastTryTime

func (x *OutboundStatus) GetLastTryTime() int64

func (*OutboundStatus) GetOutboundTag

func (x *OutboundStatus) GetOutboundTag() string

func (*OutboundStatus) ProtoMessage

func (*OutboundStatus) ProtoMessage()

func (*OutboundStatus) ProtoReflect

func (x *OutboundStatus) ProtoReflect() protoreflect.Message

func (*OutboundStatus) Reset

func (x *OutboundStatus) Reset()

func (*OutboundStatus) String

func (x *OutboundStatus) String() string

type ProbeResult

type ProbeResult struct {

	// @Document Whether this outbound is usable
	// @Restriction ReadOnlyForUser
	Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"`
	// @Document The time for probe request to finish.
	// @Type time.ms
	// @Restriction ReadOnlyForUser
	Delay int64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"`
	// @Document The error caused this outbound failed to relay probe request
	// @Restriction NotMachineReadable
	LastErrorReason string `protobuf:"bytes,3,opt,name=last_error_reason,json=lastErrorReason,proto3" json:"last_error_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbeResult) Descriptor deprecated

func (*ProbeResult) Descriptor() ([]byte, []int)

Deprecated: Use ProbeResult.ProtoReflect.Descriptor instead.

func (*ProbeResult) GetAlive

func (x *ProbeResult) GetAlive() bool

func (*ProbeResult) GetDelay

func (x *ProbeResult) GetDelay() int64

func (*ProbeResult) GetLastErrorReason

func (x *ProbeResult) GetLastErrorReason() string

func (*ProbeResult) ProtoMessage

func (*ProbeResult) ProtoMessage()

func (*ProbeResult) ProtoReflect

func (x *ProbeResult) ProtoReflect() protoreflect.Message

func (*ProbeResult) Reset

func (x *ProbeResult) Reset()

func (*ProbeResult) String

func (x *ProbeResult) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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