MeterDefinition/v1alpha1
MeterDefinition defines the meter workloads used to enable pay for use billing.
apiVersion
Description: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Type: string
Property | Type | Description |
---|---|---|
apiVersion | string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
kind
Description: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Type: string
Property | Type | Description |
---|---|---|
kind | string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
metadata
Description: (No Description)
Type: object
Property | Type | Description |
---|---|---|
metadata | object | (No Description) |
spec
Description: MeterDefinitionSpec defines the desired metering spec
Type: object
Property | Type | Description |
---|---|---|
spec | object | MeterDefinitionSpec defines the desired metering spec |
spec.installedBy | object | InstalledBy is a reference to the CSV that install the meter definition. This is used to determine an operator group. |
spec.installedBy.groupVersionKind | object | GroupVersionKind of the resource |
spec.installedBy.groupVersionKind.apiVersion | string | APIVersion of the CRD |
spec.installedBy.groupVersionKind.kind | string | Kind of the CRD |
spec.installedBy.name | string | Name of the resource Required |
spec.installedBy.namespace | string | Namespace of the resource Required |
spec.installedBy.uid | string | Namespace of the resource |
spec.meterGroup | string | Group defines the operator group of the meter |
spec.meterKind | string | Kind defines the primary CRD kind of the meter |
spec.meterVersion | string | Version defines the primary CRD version of the meter. This field is no longer used. |
spec.podMeterLabels | array | PodMeterLabels name of the prometheus metrics you want to track. User workloads instead. |
spec.serviceMeterLabels | array | ServiceMeterLabels name of the meterics you want to track. Use workloads instead. |
spec.workloadVertexLabelSelectors | object | VertexFilters are used when Namespace is selected. Can be omitted if you select OperatorGroup |
spec.workloadVertexLabelSelectors.matchExpressions | array | matchExpressions is a list of label selector requirements. The requirements are ANDed. |
spec.workloadVertexLabelSelectors.matchLabels | object | matchLabels is a map {key,value} of pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed. |
spec.workloadVertexType | string | WorkloadVertexType is the top most object of a workload. It allows you to identify the upper bounds of your workloads. |
spec.workloads | array | Workloads identify the workloads to meter. |
status
Description: MeterDefinitionStatus defines the observed state of MeterDefinition
Type: object
Property | Type | Description |
---|---|---|
status | object | MeterDefinitionStatus defines the observed state of MeterDefinition |
status.conditions | array | Conditions represent the latest available observations of an object’s state |
status.results | array | Results is a list of Results that get returned from a query to prometheus |
status.workloadResource | array | WorkloadResources is the list of resources discovered by this meter definition |