Resources / Usage
Usage
Metered usage of one SKU by one project in one month. Written only by the platform.
Overview
| API | billing.etorm.com/v1alpha1 |
| Resource | usages (cluster-scoped inside its cluster) |
| Short names | usg |
| Available in | the platform only |
| Status | written by a controller through /status |
Minimal example
apiVersion: billing.etorm.com/v1alpha1
kind: Usage
metadata:
name: example
spec:
billingAccountRef:
name: "<name>"
projectRef:
name: "<name>"
skuRef:
name: "<name>"
period: "<period>"
Spec
| Field | Type | Required | Default | Allowed | Description |
billingAccountRef | reference to BillingAccount | yes | | | The billing account charged. |
projectRef | reference to Project | yes | | | The project that used the resource. |
skuRef | reference to SKU | yes | | | The price list entry. |
period | string | yes | | length 7 to 7 | The month, as YYYY-MM. |
Status
| Field | Type | Required | Default | Allowed | Description |
seconds | integer | | | | Resource-seconds, for count meters. |
quantityMicros | integer | | | | Millionths of the SKU's unit used this month, for gauge, counter and owner-cpu meters. |
fuelBaselines | object | | | | For owner-cpu: the fuel already counted for each platform process, so only the increase is added. |
counterBaselines | object | | | | For counter: the number already counted for each resource, so only the increase is added. |
amountMicros | integer | | | | What it costs, in millionths of the currency. |
lastMeteredAt | string | | | | When it was last sampled (RFC 3339). |
Columns in listings
| Column | From |
|---|
| Billing-Account | .spec.billingAccountRef.name |
| Project | .spec.projectRef.name |
| SKU | .spec.skuRef.name |
| Period | .spec.period |
| Seconds | .status.seconds |
| Amount-Micros | .status.amountMicros |
Related guides
All resources