Documentation ¶
Index ¶
- Variables
- func GetDefaultConfigStatusOptions() map[string]*MetricLabels
- type ConfigStatusMetrics
- func (m *ConfigStatusMetrics) SetResourceInvalid(ctx context.Context, resource resources.Resource)
- func (m *ConfigStatusMetrics) SetResourceStatus(ctx context.Context, resource resources.Resource, status *core.Status)
- func (m *ConfigStatusMetrics) SetResourceValid(ctx context.Context, resource resources.Resource)
- type MetricLabels
Constants ¶
This section is empty.
Variables ¶
View Source
var Names = map[schema.GroupVersionKind]string{ gwv1.GatewayGVK: "validation.gateway.solo.io/gateway_config_status", gwv1.RouteTableGVK: "validation.gateway.solo.io/route_table_config_status", gwv1.VirtualServiceGVK: "validation.gateway.solo.io/virtual_service_config_status", gloov1.ProxyGVK: "validation.gateway.solo.io/proxy_config_status", gloov1.SecretGVK: "validation.gateway.solo.io/secret_config_status", gloov1.UpstreamGVK: "validation.gateway.solo.io/upstream_config_status", gloov1.UpstreamGroupGVK: "validation.gateway.solo.io/upsteam_group_config_status", }
Functions ¶
func GetDefaultConfigStatusOptions ¶
func GetDefaultConfigStatusOptions() map[string]*MetricLabels
Types ¶
type ConfigStatusMetrics ¶
type ConfigStatusMetrics struct {
// contains filtered or unexported fields
}
ConfigStatusMetrics is a collection of metrics, each of which records if the configuration for a particular resource type is valid
func NewConfigStatusMetrics ¶
func NewConfigStatusMetrics(opts map[string]*MetricLabels) (ConfigStatusMetrics, error)
NewConfigStatusMetrics creates and returns a ConfigStatusMetrics from the specified options. If the options are invalid, an error is returned.
func (*ConfigStatusMetrics) SetResourceInvalid ¶
func (m *ConfigStatusMetrics) SetResourceInvalid(ctx context.Context, resource resources.Resource)
func (*ConfigStatusMetrics) SetResourceStatus ¶
func (*ConfigStatusMetrics) SetResourceValid ¶
func (m *ConfigStatusMetrics) SetResourceValid(ctx context.Context, resource resources.Resource)
type MetricLabels ¶
type MetricLabels = gloov1.Settings_ObservabilityOptions_MetricLabels
Click to show internal directories.
Click to hide internal directories.