Documentation ¶
Index ¶
- Variables
- type CreateApplicationMetricsRequestExtended
- type CreateClusterMetricsRequestExtended
- type CreateControllerMetricsRequestExtended
- type CreateNamespaceMetricsRequestExtended
- type CreateNodeMetricsRequestExtended
- type CreatePodMetricsRequestExtended
- type ListAppMetricsRequestExtended
- type ListClusterMetricsRequestExtended
- type ListControllerMetricsRequestExtended
- type ListNamespaceMetricsRequestExtended
- type ListNodeMetricsRequestExtended
- type ListPodMetricsRequestExtended
- type MetricsDBType
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricTypeNameMap = map[ApiCommon.MetricType]FormatEnum.MetricType{ ApiCommon.MetricType_CPU_USAGE_SECONDS_PERCENTAGE: FormatEnum.MetricTypeCPUUsageSecondsPercentage, ApiCommon.MetricType_MEMORY_USAGE_BYTES: FormatEnum.MetricTypeMemoryUsageBytes, ApiCommon.MetricType_POWER_USAGE_WATTS: FormatEnum.MetricTypePowerUsageWatts, ApiCommon.MetricType_TEMPERATURE_CELSIUS: FormatEnum.MetricTypeTemperatureCelsius, ApiCommon.MetricType_DUTY_CYCLE: FormatEnum.MetricTypeDutyCycle, }
Functions ¶
This section is empty.
Types ¶
type CreateApplicationMetricsRequestExtended ¶
type CreateApplicationMetricsRequestExtended struct {
ApiMetrics.CreateApplicationMetricsRequest
}
func (*CreateApplicationMetricsRequestExtended) ProduceMetrics ¶
func (r *CreateApplicationMetricsRequestExtended) ProduceMetrics() DaoMetricTypes.AppMetricMap
func (*CreateApplicationMetricsRequestExtended) Validate ¶
func (r *CreateApplicationMetricsRequestExtended) Validate() error
type CreateClusterMetricsRequestExtended ¶
type CreateClusterMetricsRequestExtended struct {
ApiMetrics.CreateClusterMetricsRequest
}
func (*CreateClusterMetricsRequestExtended) ProduceMetrics ¶
func (r *CreateClusterMetricsRequestExtended) ProduceMetrics() DaoMetricTypes.ClusterMetricMap
func (*CreateClusterMetricsRequestExtended) Validate ¶
func (r *CreateClusterMetricsRequestExtended) Validate() error
type CreateControllerMetricsRequestExtended ¶
type CreateControllerMetricsRequestExtended struct {
ApiMetrics.CreateControllerMetricsRequest
}
func (*CreateControllerMetricsRequestExtended) ProduceMetrics ¶
func (r *CreateControllerMetricsRequestExtended) ProduceMetrics() DaoMetricTypes.ControllerMetricMap
func (*CreateControllerMetricsRequestExtended) Validate ¶
func (r *CreateControllerMetricsRequestExtended) Validate() error
type CreateNamespaceMetricsRequestExtended ¶
type CreateNamespaceMetricsRequestExtended struct {
ApiMetrics.CreateNamespaceMetricsRequest
}
func (*CreateNamespaceMetricsRequestExtended) ProduceMetrics ¶
func (r *CreateNamespaceMetricsRequestExtended) ProduceMetrics() DaoMetricTypes.NamespaceMetricMap
func (*CreateNamespaceMetricsRequestExtended) Validate ¶
func (r *CreateNamespaceMetricsRequestExtended) Validate() error
type CreateNodeMetricsRequestExtended ¶
type CreateNodeMetricsRequestExtended struct {
ApiMetrics.CreateNodeMetricsRequest
}
func (*CreateNodeMetricsRequestExtended) ProduceMetrics ¶
func (r *CreateNodeMetricsRequestExtended) ProduceMetrics() DaoMetricTypes.NodeMetricMap
func (*CreateNodeMetricsRequestExtended) Validate ¶
func (r *CreateNodeMetricsRequestExtended) Validate() error
type CreatePodMetricsRequestExtended ¶
type CreatePodMetricsRequestExtended struct {
ApiMetrics.CreatePodMetricsRequest
}
func (*CreatePodMetricsRequestExtended) ProduceMetrics ¶
func (r *CreatePodMetricsRequestExtended) ProduceMetrics() DaoMetricTypes.PodMetricMap
func (*CreatePodMetricsRequestExtended) Validate ¶
func (r *CreatePodMetricsRequestExtended) Validate() error
type ListAppMetricsRequestExtended ¶
type ListAppMetricsRequestExtended struct {
Request *ApiMetrics.ListApplicationMetricsRequest
}
func (*ListAppMetricsRequestExtended) ProduceRequest ¶
func (r *ListAppMetricsRequestExtended) ProduceRequest() DaoMetricTypes.ListAppMetricsRequest
func (*ListAppMetricsRequestExtended) SetDefaultWithMetricsDBType ¶
func (r *ListAppMetricsRequestExtended) SetDefaultWithMetricsDBType(dbType MetricsDBType)
func (*ListAppMetricsRequestExtended) Validate ¶
func (r *ListAppMetricsRequestExtended) Validate() error
type ListClusterMetricsRequestExtended ¶
type ListClusterMetricsRequestExtended struct {
Request *ApiMetrics.ListClusterMetricsRequest
}
func (*ListClusterMetricsRequestExtended) ProduceRequest ¶
func (r *ListClusterMetricsRequestExtended) ProduceRequest() DaoMetricTypes.ListClusterMetricsRequest
func (*ListClusterMetricsRequestExtended) SetDefaultWithMetricsDBType ¶
func (r *ListClusterMetricsRequestExtended) SetDefaultWithMetricsDBType(dbType MetricsDBType)
func (*ListClusterMetricsRequestExtended) Validate ¶
func (r *ListClusterMetricsRequestExtended) Validate() error
type ListControllerMetricsRequestExtended ¶
type ListControllerMetricsRequestExtended struct {
Request *ApiMetrics.ListControllerMetricsRequest
}
func (*ListControllerMetricsRequestExtended) ProduceRequest ¶
func (r *ListControllerMetricsRequestExtended) ProduceRequest() DaoMetricTypes.ListControllerMetricsRequest
func (*ListControllerMetricsRequestExtended) SetDefaultWithMetricsDBType ¶
func (r *ListControllerMetricsRequestExtended) SetDefaultWithMetricsDBType(dbType MetricsDBType)
func (*ListControllerMetricsRequestExtended) Validate ¶
func (r *ListControllerMetricsRequestExtended) Validate() error
type ListNamespaceMetricsRequestExtended ¶
type ListNamespaceMetricsRequestExtended struct {
Request *ApiMetrics.ListNamespaceMetricsRequest
}
func (*ListNamespaceMetricsRequestExtended) ProduceRequest ¶
func (r *ListNamespaceMetricsRequestExtended) ProduceRequest() DaoMetricTypes.ListNamespaceMetricsRequest
func (*ListNamespaceMetricsRequestExtended) SetDefaultWithMetricsDBType ¶
func (r *ListNamespaceMetricsRequestExtended) SetDefaultWithMetricsDBType(dbType MetricsDBType)
func (*ListNamespaceMetricsRequestExtended) Validate ¶
func (r *ListNamespaceMetricsRequestExtended) Validate() error
type ListNodeMetricsRequestExtended ¶
type ListNodeMetricsRequestExtended struct {
Request *ApiMetrics.ListNodeMetricsRequest
}
func (*ListNodeMetricsRequestExtended) ProduceRequest ¶
func (r *ListNodeMetricsRequestExtended) ProduceRequest() DaoMetricTypes.ListNodeMetricsRequest
func (*ListNodeMetricsRequestExtended) SetDefaultWithMetricsDBType ¶
func (r *ListNodeMetricsRequestExtended) SetDefaultWithMetricsDBType(dbType MetricsDBType)
func (*ListNodeMetricsRequestExtended) Validate ¶
func (r *ListNodeMetricsRequestExtended) Validate() error
type ListPodMetricsRequestExtended ¶
type ListPodMetricsRequestExtended struct {
Request *ApiMetrics.ListPodMetricsRequest
}
func (*ListPodMetricsRequestExtended) ProduceRequest ¶
func (r *ListPodMetricsRequestExtended) ProduceRequest() DaoMetricTypes.ListPodMetricsRequest
func (*ListPodMetricsRequestExtended) SetDefaultWithMetricsDBType ¶
func (r *ListPodMetricsRequestExtended) SetDefaultWithMetricsDBType(dbType MetricsDBType)
func (*ListPodMetricsRequestExtended) Validate ¶
func (r *ListPodMetricsRequestExtended) Validate() error
type MetricsDBType ¶
type MetricsDBType = string
const ( MetricsDBTypePromethues MetricsDBType = "prometheus" MetricsDBTypeInfluxdb MetricsDBType = "influxdb" )
Click to show internal directories.
Click to hide internal directories.