Skip to main content

models.Unit

allocation object

Allocation map of unit. Only string and int64 values are supported in map

property name*number
avg_cpu_mem_usage object

Average CPU memory usage(s) during lifetime of unit

property name*number
avg_cpu_usage object

Average CPU usage(s) during lifetime of unit

property name*number
avg_gpu_mem_usage object

Average GPU memory usage(s) during lifetime of unit

property name*number
avg_gpu_usage object

Average GPU usage(s) during lifetime of unit

property name*number
cluster_idstring

Identifier of the resource manager that owns compute unit. It is used to differentiate multiple clusters of same resource manager.

Example: slurm-0
created_atstring

Creation time

Example: 2023-02-21T15:48:20+0100
created_at_tsinteger

Creation timestamp

Example: 1676990900000
elapsedstring

Human readable total elapsed time string

Example: 2-00:10:20
ended_atstring

End time

Example: Unknown
ended_at_tsinteger

End timestamp

Example: 0
groupnamestring

User group

Example: grp1
namestring

Name of compute unit

Example: my-slurm-job
projectstring

Account in batch systems, Tenant in Openstack, Namespace in k8s

Example: prj1
resource_managerstring

Name of the resource manager that owns compute unit. Eg slurm, openstack, kubernetes, etc

Example: slurm
started_atstring

Start time

Example: 2023-02-21T15:49:06+0100
started_at_tsinteger

Start timestamp

Example: 1676990946000
statestring

Current state of unit

Example: RUNNING
tags object

A map to store generic info. String and int64 are valid value types of map

property name*string
total_cpu_emissions_gms object

Total CPU emissions from source(s) in grams during lifetime of unit

property name*number
total_cpu_energy_usage_kwh object

Total CPU energy usage(s) in kWh during lifetime of unit

property name*number
total_egress_stats object

Total Outgress statistics of unit

property name*number
total_gpu_emissions_gms object

Total GPU emissions from source(s) in grams during lifetime of unit

property name*number
total_gpu_energy_usage_kwh object

Total GPU energy usage(s) in kWh during lifetime of unit

property name*number
total_ingress_stats object

Total Ingress statistics of unit

property name*number
total_io_read_stats object

Total IO read statistics during lifetime of unit

property name*number
total_io_write_stats object

Total IO write statistics during lifetime of unit

property name*number
total_time_seconds object

Different types of times in seconds consumed by the unit. This map contains at minimum walltime, alloc_cputime, alloc_cpumemtime, alloc_gputime and alloc_gpumem_time keys.

property name*number
usernamestring

Username

Example: usr1
uuidstring

Unique identifier of unit. It can be Job ID for batch jobs, UUID for pods in k8s or VMs in Openstack

Example: 193048
models.Unit
{
"allocation": {
"cpus": 1,
"gpus": 1,
"mem": 10
},
"avg_cpu_mem_usage": {
"global": 45.26
},
"avg_cpu_usage": {
"global": 70.12
},
"avg_gpu_mem_usage": {
"global": 45.26
},
"avg_gpu_usage": {
"global": 70.12
},
"cluster_id": "slurm-0",
"created_at": "2023-02-21T15:48:20+0100",
"created_at_ts": 1676990900000,
"elapsed": "2-00:10:20",
"ended_at": "Unknown",
"ended_at_ts": 0,
"groupname": "grp1",
"name": "my-slurm-job",
"project": "prj1",
"resource_manager": "slurm",
"started_at": "2023-02-21T15:49:06+0100",
"started_at_ts": 1676990946000,
"state": "RUNNING",
"tags": {
"gid": "1000",
"uid": "1000",
"workdir": "/home/user"
},
"total_cpu_emissions_gms": {
"emaps_total": 3.09,
"owid_total": 5.22
},
"total_cpu_energy_usage_kwh": {
"total": 0.73
},
"total_egress_stats": {
"bytes_total": 454342323,
"packets_total": 23232323
},
"total_gpu_emissions_gms": {
"emaps_total": 12.09,
"owid_total": 15.22
},
"total_gpu_energy_usage_kwh": {
"total": 5.39
},
"total_ingress_stats": {
"bytes_total": 8503405,
"packets_total": 43423
},
"total_io_read_stats": {
"bytes_total": 245000000,
"requests_total": 49423
},
"total_io_write_stats": {
"bytes_total": 12000000,
"requests_total": 13923
},
"total_time_seconds": {
"alloc_cpumemtime": 1000,
"alloc_cputime": 100,
"alloc_gpumemtime": 100,
"alloc_gputime": 100,
"walltime": 100
},
"username": "usr1",
"uuid": "193048"
}