Skip to content
SHC Docs

usage

Generated file. Do not edit by hand. Regenerate from the repo root with make docs/generate.

This page is generated from the ent schema and the migration head. The running unit is a deployment and the catalog thing is an app.

erDiagram
usage {
int id PK
string tenant_name UK
string environment UK
string stack_name UK
int64 cpu_millicores
int64 memory_bytes
int64 disk_bytes
int deployment_count
int environment_count
int app_count
int vdeployment_count
time disk_measured_at
time created_at
time updated_at
}
columntypenullkey
idintnoPK
tenant_namestringnoUK
environmentstringyesUK
stack_namestringyesUK
cpu_millicoresint64no
memory_bytesint64no
disk_bytesint64no
deployment_countintno
environment_countintno
app_countintno
vdeployment_countintno
disk_measured_attimeyes
created_attimeno
updated_attimeno

no command writes this table (core/usagecharge/charge.go, core/usagecharge/estate.go, modules/quota/environment_cap.go, modules/quota/service.go, modules/tenant/service.go)