Documentation
¶
Index ¶
- func FindOrCreateRateCalculatingMetric(existing []*Metric, n string, t string, unit string) (*RateCalculatingMetric, []*Metric)
- func FindOrCreateSimpleMetric(existing []*Metric, n string, t string) (*SimpleMetric, []*Metric)
- type AddressHolder
- type AddressSpaceHolder
- type Connection
- type ConnectionSpec
- type DataPointTimePair
- type HasMetrics
- type Link
- type LinkSpec
- type Metric
- type RateCalculatingMetric
- type SimpleMetric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindOrCreateSimpleMetric ¶
func FindOrCreateSimpleMetric(existing []*Metric, n string, t string) (*SimpleMetric, []*Metric)
Types ¶
type AddressHolder ¶
func (*AddressHolder) GetControllingResourceAttributes ¶
func (ah *AddressHolder) GetControllingResourceAttributes() *authv1.ResourceAttributes
func (*AddressHolder) GetMetrics ¶
func (ah *AddressHolder) GetMetrics() []*Metric
type AddressSpaceHolder ¶
type AddressSpaceHolder struct {
v1beta1.AddressSpace `json:",inline"`
Metrics []*Metric `json:"metrics"`
}
func (*AddressSpaceHolder) GetControllingResourceAttributes ¶
func (ash *AddressSpaceHolder) GetControllingResourceAttributes() *authv1.ResourceAttributes
func (*AddressSpaceHolder) GetMetrics ¶
func (ash *AddressSpaceHolder) GetMetrics() []*Metric
type Connection ¶
type Connection struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ConnectionSpec `json:"spec,omitempty"`
Metrics []*Metric `json:"metrics"`
}
func (*Connection) GetControllingResourceAttributes ¶
func (c *Connection) GetControllingResourceAttributes() *authv1.ResourceAttributes
func (*Connection) GetMetrics ¶
func (c *Connection) GetMetrics() []*Metric
type ConnectionSpec ¶
type ConnectionSpec struct {
AddressSpace string `json:"addressSpace,omitempty"`
Hostname string `json:"hostname,omitempty"`
ContainerId string `json:"containerId,omitempty"`
Protocol string `json:"protocol,omitempty"`
Encrypted bool `json:"encrypted,omitempty"`
Properties map[string]string `json:"properties,omitempty"`
Principal string `json:"principal,omitempty"`
}
type DataPointTimePair ¶
type HasMetrics ¶
type HasMetrics interface {
GetMetrics() []*Metric
}
type Link ¶
type Link struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec LinkSpec `json:"spec,omitempty"`
Metrics []*Metric `json:"metrics,omitempty"`
}
func (*Link) GetMetrics ¶
type Metric ¶
type Metric struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Value float64 `json:"value,omitempty"`
Unit string `json:"unit,omitempty"`
Time time.Time `json:"time,omitempty"`
// contains filtered or unexported fields
}
func (*Metric) AddTimeSeriesDataPoint ¶
func (*Metric) GetTimeSeries ¶
type RateCalculatingMetric ¶
type RateCalculatingMetric Metric
func NewRateCalculatingMetric ¶
func NewRateCalculatingMetric(n string, t string, u string) *RateCalculatingMetric
type SimpleMetric ¶
type SimpleMetric Metric
func NewSimpleMetric ¶
func NewSimpleMetric(n string, t string) *SimpleMetric
Click to show internal directories.
Click to hide internal directories.