MeterDefinition/v1beta1

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

PropertyTypeDescription
apiVersionstringAPIVersion 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

PropertyTypeDescription
kindstringKind 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

PropertyTypeDescription
metadataobject(No Description)

spec

Description: MeterDefinitionSpec defines the desired metering spec

Type: object

PropertyTypeDescription
specobjectMeterDefinitionSpec defines the desired metering spec
spec.groupstringGroup defines the operator group of the meter
spec.installedByobjectInstalledBy is a reference to the CSV that install the meter definition. This is used to determine an operator group.
spec.installedBy.groupVersionKindobjectGroupVersionKind of the resource
spec.installedBy.groupVersionKind.apiVersionstringAPIVersion of the CRD
spec.installedBy.groupVersionKind.kindstringKind of the CRD
spec.installedBy.namestringName of the resource Required
spec.installedBy.namespacestringNamespace of the resource Required
spec.installedBy.uidstringNamespace of the resource
spec.kindstringKind defines the primary CRD kind of the meter
spec.metersarrayMeters are the definitions related to the metrics that you would like to monitor.
spec.resourceFiltersarrayResourceFilters provide filters that will be used to find the workload objects. This is to find the exact resources the query is interested in. At least one must be provided.

status

Description: MeterDefinitionStatus defines the observed state of MeterDefinition

Type: object

PropertyTypeDescription
statusobjectMeterDefinitionStatus defines the observed state of MeterDefinition
status.conditionsarrayConditions represent the latest available observations of an object’s state
status.resultsarrayResults is a list of Results that get returned from a query to prometheus
status.workloadResourcearrayWorkloadResources is the list of resources discovered by this meter definition