Documentation ¶
Index ¶
- type AgentMetric
- func (m *AgentMetric) ArpInc()
- func (m *AgentMetric) ArpRejectInc()
- func (m *AgentMetric) GetCollectors() []prometheus.Collector
- func (m *AgentMetric) SetRuleEntryNum(policyID string, num int, limited bool)
- func (m *AgentMetric) SetRuleEntryTotalNum(num int)
- func (m *AgentMetric) ShouldLimit(policyID []string) bool
- func (m *AgentMetric) UpdatePolicyName(policyID string, policy *securityv1alpha1.SecurityPolicy)
- type ControllerMetric
- type IPMigrateCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentMetric ¶
type AgentMetric struct {
// contains filtered or unexported fields
}
func NewAgentMetric ¶
func NewAgentMetric() *AgentMetric
func (*AgentMetric) ArpInc ¶
func (m *AgentMetric) ArpInc()
func (*AgentMetric) ArpRejectInc ¶
func (m *AgentMetric) ArpRejectInc()
func (*AgentMetric) GetCollectors ¶
func (m *AgentMetric) GetCollectors() []prometheus.Collector
func (*AgentMetric) SetRuleEntryNum ¶
func (m *AgentMetric) SetRuleEntryNum(policyID string, num int, limited bool)
func (*AgentMetric) SetRuleEntryTotalNum ¶
func (m *AgentMetric) SetRuleEntryTotalNum(num int)
func (*AgentMetric) ShouldLimit ¶
func (m *AgentMetric) ShouldLimit(policyID []string) bool
func (*AgentMetric) UpdatePolicyName ¶
func (m *AgentMetric) UpdatePolicyName(policyID string, policy *securityv1alpha1.SecurityPolicy)
type ControllerMetric ¶
type ControllerMetric struct {
// contains filtered or unexported fields
}
func NewControllerMetric ¶
func NewControllerMetric() *ControllerMetric
func (*ControllerMetric) GetIPMigrateCount ¶
func (c *ControllerMetric) GetIPMigrateCount() *IPMigrateCount
func (*ControllerMetric) Init ¶
func (c *ControllerMetric) Init()
func (*ControllerMetric) InstallHandler ¶
func (c *ControllerMetric) InstallHandler(registryFunc func(path string, handler http.Handler))
func (*ControllerMetric) Run ¶
func (c *ControllerMetric) Run(ctx context.Context)
type IPMigrateCount ¶
type IPMigrateCount struct {
// contains filtered or unexported fields
}
func NewIPMigrateCount ¶
func NewIPMigrateCount() *IPMigrateCount
func (*IPMigrateCount) Inc ¶
func (i *IPMigrateCount) Inc(ip, vm string)
func (*IPMigrateCount) Run ¶
func (i *IPMigrateCount) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.