Documentation ¶
Index ¶
- Constants
- func PluginInitFunc(ctx context.Context, conf *controller.SPDConfig, _ interface{}, ...) (indicatorplugin.IndicatorPlugin, error)
- type Plugin
- func (p *Plugin) GetAggMetrics(_ *unstructured.Unstructured) ([]apiworkload.AggPodMetrics, error)
- func (p *Plugin) GetSupportedAggMetricsStatus() []string
- func (p *Plugin) GetSupportedBusinessIndicatorSpec() []apiworkload.ServiceBusinessIndicatorName
- func (p *Plugin) GetSupportedBusinessIndicatorStatus() []apiworkload.ServiceBusinessIndicatorName
- func (p *Plugin) GetSupportedExtendedIndicatorSpec() []string
- func (p *Plugin) GetSupportedSystemIndicatorSpec() []apiworkload.ServiceSystemIndicatorName
- func (p *Plugin) Name() string
- func (p *Plugin) Run()
Constants ¶
View Source
const PluginName = "IHPAPlugin"
Variables ¶
This section is empty.
Functions ¶
func PluginInitFunc ¶
func PluginInitFunc(ctx context.Context, conf *controller.SPDConfig, _ interface{}, _ map[schema.GroupVersionResource]native.DynamicInformer, controlCtx *katalystbase.GenericContext, updater indicatorplugin.IndicatorUpdater, ) (indicatorplugin.IndicatorPlugin, error)
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) GetAggMetrics ¶ added in v0.5.7
func (p *Plugin) GetAggMetrics(_ *unstructured.Unstructured) ([]apiworkload.AggPodMetrics, error)
func (*Plugin) GetSupportedAggMetricsStatus ¶
func (*Plugin) GetSupportedBusinessIndicatorSpec ¶
func (p *Plugin) GetSupportedBusinessIndicatorSpec() []apiworkload.ServiceBusinessIndicatorName
func (*Plugin) GetSupportedBusinessIndicatorStatus ¶
func (p *Plugin) GetSupportedBusinessIndicatorStatus() []apiworkload.ServiceBusinessIndicatorName
func (*Plugin) GetSupportedExtendedIndicatorSpec ¶
func (*Plugin) GetSupportedSystemIndicatorSpec ¶
func (p *Plugin) GetSupportedSystemIndicatorSpec() []apiworkload.ServiceSystemIndicatorName
Click to show internal directories.
Click to hide internal directories.