Skip to main content

sc_crawler.table_fields

Enumerations, JSON nested data objects & other helper classes used in sc_crawler.tables.

Classes:

  • HashableDict – A dict that can be hashed by its JSON representation.
  • HashableJSON – Alternative JSON SQLAlchemy column representation, which can be hashed.
  • Json – Custom base SQLModel class that supports dumping as JSON.
  • Status – Last known status of a record.
  • ResourceType – Kind of resource a benchmark score refers to.
  • Cpu – CPU details.
  • AcceleratorType – Type of a hardware accelerator, e.g. GPUGPU: Graphics Processing UnitA processor with thousands of simple cores that run the same operation on many data elements in parallel. It was built to render graphics, and is now also used for general-purpose parallel work such as machine learning training and inference, scientific simulation, and video encoding. Cloud providers rent GPUs attached to virtual machines, with their own dedicated GPU memory.WikipediaGlossary or NPU.
  • Accelerator – Hardware accelerator (e.g. GPU or TPU) details.
  • StorageType – Type of a storage, e.g. HDD or SSDSSD: Solid-State DriveA storage device that keeps data in flash memory instead of on spinning disks, so it reads and writes much faster than an HDD, especially at random locations. A controller with its own firmware maps logical blocks to flash pages, and many SSDs write incoming data to a fast cache first, then move it to slower flash. Cloud servers use SSDs as local disks and behind network block storage.WikipediaGlossary.
  • DatabaseEngine – Managed database engine.
  • DatabaseWireProtocol – Wire protocol for a managed database type.
  • DatabaseHaLevel – High availability level for a managed database type.
  • DatabaseHaStrategy – High availability replication strategy for a managed database type.
  • DatabaseSecurityFeature – Security capabilities supported by DBaaS providers.
  • DatabaseStorageScope – Scope of a managed database storage product.
  • Disk – Disk definition based on size and storage type.
  • TrafficDirection – Direction of the network traffic.
  • CpuAllocation – CPU allocation methods at cloud vendors.
  • CpuArchitecture – CPU architectures.
  • DdrGeneration – Generation of the DDR SDRAM.
  • Allocation – Server allocation options.
  • PriceUnit – Supported units for the price tables.
  • PriceTier – Price tier definition.
  • Parallelism – Parallelism mode of a benchmark run.
  • BenchmarkComponentAggregationMethod – How component benchmark scores are combined into one composite score.
  • BenchmarkComponentNormalizationMethod – How each raw benchmark value is scaled to be comparable across benchmarks.
  • BenchmarkComponentMissingPolicy – What to do when a component has no usable measurement for a server.
  • ScoreComponent – One component's contribution to a composite workload profile score.
  • WorkloadScoreBreakdown – Per-server realized calculation of a composite workload profile score.
  • Category – Workload category for a cloud server type.

Attributes:

  • DISK_SPEED_FIELDS – Speed fields of a Disk, matching the storage_* server columns.

class HashableDict table_fields.py:13–35⁠ (opens in a new tab)​

Bases: dict⁠ (opens in a new tab)

A dict that can be hashed by its JSON representation.

Useful for typehinting dict-type table columns that are primary keys (which need to be hashable for SQLAlchemy ORM). See sc_crawler.table_fields.HashableJSON class for the related sa_type.

Functions:

  • sorted – Create from a dict with its keys sorted recursively, so that it is always stored as the same JSON.

meth HashableDict.sorted table_fields.py:24–35⁠ (opens in a new tab)​

sorted(value)

Create from a dict with its keys sorted recursively, so that it is always stored as the same JSON.

Examples:

>>> HashableDict.sorted({"b": 1, "a": {"d": 2, "c": 3}})
{'a': {'c': 3, 'd': 2}, 'b': 1}

class HashableJSON table_fields.py:38–57⁠ (opens in a new tab)​

Bases: TypeDecorator⁠ (opens in a new tab)

Alternative JSON SQLAlchemy column representation, which can be hashed.

Functions:

  • load_dialect_impl – Use JSONB in PostgreSQLPostgreSQLAn open-source object-relational database system, developed by a global community and descended from the POSTGRES project at UC Berkeley in 1986. It uses and extends SQL, with transactions, many index types, extensions, and JSON data.PostgreSQL docsGlossary, as JSON cannot be compared, so cannot be a primary key either.

meth HashableJSON.load_dialect_impl table_fields.py:44–48⁠ (opens in a new tab)​

load_dialect_impl(dialect)

Use JSONB in PostgreSQL, as JSON cannot be compared, so cannot be a primary key either.

class Json table_fields.py:60–65⁠ (opens in a new tab)​

Bases: BaseModel⁠ (opens in a new tab)

Custom base SQLModel class that supports dumping as JSON.

class Status table_fields.py:68–123⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Last known status of a record.

The docstrings of the values are shown to end-users (e.g. in the APIAPI: Application Programming InterfaceA defined set of requests and responses through which one program uses another, such as a web service's HTTP endpoints or a library's functions.WikipediaGlossary and on the website), so keep those to what a status means, and document here how the statuses are set:

  • ACTIVE and INACTIVE are valid for all tables. Records returned by the vendor or defined in code are ACTIVE. Records no longer returned or defined are set to INACTIVE by pull, as well as records missing from the source by sync.
  • PLANNED_FOR_RETIREMENT and RETIRED are only valid for Server and Database, and are set only from explicit vendor signals. These are kept by pull when the record is no longer returned by the vendor.
  • ARCHIVED is valid for all tables. It is set only from the archive rules by pull and sync, also for child records (e.g. prices of a regionregionA geographic area where a cloud vendor runs its data centers, such as Frankfurt or Northern Virginia, made up of one or more availability zones. A server type is offered in some regions only, and its price can differ by region; a region's ID, such as eu-central-1, is unique only within its vendor.Glossary), and archived records are not updated afterwards. It is our decision on the identity of a record, never a vendor signal: end of sale is RETIRED, and records no longer returned by a vendor are INACTIVE.

Functions:

  • best – Return the best of the given statuses: ACTIVE, PLANNED_FOR_RETIREMENT, INACTIVE, RETIRED, then ARCHIVED.

Attributes:

  • ACTIVE – Currently available.
  • INACTIVE – Currently not available, without a known retirement. May become available again.
  • PLANNED_FOR_RETIREMENT – Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases.
  • RETIRED – Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases.
  • ARCHIVED – Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset.
  • is_orderable (bool⁠ (opens in a new tab)) – Whether a Server/Database with this status can still be ordered.
  • is_general (bool⁠ (opens in a new tab)) – Whether this status is valid for non-server/database models (ACTIVE, INACTIVE or ARCHIVED only).

attr Status.ACTIVE table_fields.py:90⁠ (opens in a new tab)​

ACTIVE = 'active'

Currently available.

attr Status.INACTIVE table_fields.py:92⁠ (opens in a new tab)​

INACTIVE = 'inactive'

Currently not available, without a known retirement. May become available again.

attr Status.PLANNED_FOR_RETIREMENT table_fields.py:94⁠ (opens in a new tab)​

PLANNED_FOR_RETIREMENT = 'planned-for-retirement'

Retirement was announced by the vendor, but can still be ordered. Only used for servers and databases.

attr Status.RETIRED table_fields.py:96⁠ (opens in a new tab)​

RETIRED = 'retired'

Retired by the vendor and cannot be ordered anymore, but prices may still exist (e.g. for active multi-year contracts). Only used for servers and databases.

attr Status.ARCHIVED table_fields.py:98⁠ (opens in a new tab)​

ARCHIVED = 'archived'

Kept only for historical reference: replaced by another record (e.g. renamed, merged or split) or dropped from the dataset.

meth Status.best table_fields.py:101–113⁠ (opens in a new tab)​

best(statuses)

Return the best of the given statuses: ACTIVE, PLANNED_FOR_RETIREMENT, INACTIVE, RETIRED, then ARCHIVED.

attr Status.is_orderable table_fields.py:116–118⁠ (opens in a new tab)​

is_orderable: bool

Whether a Server/Database with this status can still be ordered.

attr Status.is_general table_fields.py:121–123⁠ (opens in a new tab)​

is_general: bool

Whether this status is valid for non-server/database models (ACTIVE, INACTIVE or ARCHIVED only).

class ResourceType table_fields.py:126–132⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Kind of resource a benchmark score refers to.

Attributes:

  • SERVER – Compute server instance.
  • DATABASE – Managed database instance.

attr ResourceType.SERVER table_fields.py:129⁠ (opens in a new tab)​

SERVER = 'server'

Compute server instance.

attr ResourceType.DATABASE table_fields.py:131⁠ (opens in a new tab)​

DATABASE = 'database'

Managed database instance.

class Cpu table_fields.py:135–161⁠ (opens in a new tab)​

Bases: Json

CPU details.

Attributes:

attr Cpu.manufacturer table_fields.py:138⁠ (opens in a new tab)​

manufacturer: Optional[str] = None

The manufacturer of the processor, e.g. Intel or AMD.

attr Cpu.family table_fields.py:140⁠ (opens in a new tab)​

family: Optional[str] = None

The product line/family of the processor, e.g. Xeon, Core i7, Ryzen 9.

attr Cpu.model table_fields.py:142⁠ (opens in a new tab)​

model: Optional[str] = None

The model number of the processor, e.g. 9750H.

attr Cpu.cores table_fields.py:144⁠ (opens in a new tab)​

cores: Optional[int] = None

Number of CPU cores.

attr Cpu.threads table_fields.py:146⁠ (opens in a new tab)​

threads: Optional[int] = None

Number of CPU threads.

attr Cpu.l1_cache_size table_fields.py:148⁠ (opens in a new tab)​

l1_cache_size: Optional[int] = None

L1 cache size in bytes.

attr Cpu.l2_cache_size table_fields.py:150⁠ (opens in a new tab)​

l2_cache_size: Optional[int] = None

L2 cache size in bytes.

attr Cpu.l3_cache_size table_fields.py:152⁠ (opens in a new tab)​

l3_cache_size: Optional[int] = None

L3 cache size in bytes.

attr Cpu.microcode table_fields.py:154⁠ (opens in a new tab)​

microcode: Optional[str] = None

Microcode version.

attr Cpu.capabilities table_fields.py:156⁠ (opens in a new tab)​

capabilities: List[str] = []

List of CPU flag/features/capabilities, e.g. MMX, Intel SGX etc.

attr Cpu.bugs table_fields.py:158⁠ (opens in a new tab)​

bugs: List[str] = []

List of known bugs, e.g. cpu_meltdown spectre_v1.

attr Cpu.bogomips table_fields.py:160⁠ (opens in a new tab)​

bogomips: Optional[float] = None

BogoMips value.

class AcceleratorType table_fields.py:164–177⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Type of a hardware accelerator, e.g. GPU or NPU.

Attributes:

  • GPU – Graphics Processing Unit.
  • TPU – Tensor Processing Unit. Deprecated: Google TPUs are stored as NPU.
  • NPU – Neural Processing Unit, e.g. Google TPU, AWS Inferentia and Trainium, Habana
  • FPGA – Field-Programmable Gate Array, e.g. Xilinx Virtex UltraScale+.
  • VPU – Video Processing Unit: video transcoding card, e.g. Xilinx U30.

attr AcceleratorType.GPU table_fields.py:167⁠ (opens in a new tab)​

GPU = 'GPU'

Graphics Processing Unit.

attr AcceleratorType.TPU table_fields.py:169⁠ (opens in a new tab)​

TPU = 'TPU'

Tensor Processing Unit. Deprecated: Google TPUs are stored as NPU.

attr AcceleratorType.NPU table_fields.py:171⁠ (opens in a new tab)​

NPU = 'NPU'

Neural Processing Unit, e.g. Google TPU, AWS Inferentia and Trainium, Habana Gaudi or Qualcomm AI100.

attr AcceleratorType.FPGA table_fields.py:174⁠ (opens in a new tab)​

FPGA = 'FPGA'

Field-Programmable Gate Array, e.g. Xilinx Virtex UltraScale+.

attr AcceleratorType.VPU table_fields.py:176⁠ (opens in a new tab)​

VPU = 'VPU'

Video Processing Unit: video transcoding card, e.g. Xilinx U30.

class Accelerator table_fields.py:180–202⁠ (opens in a new tab)​

Bases: Json

Hardware accelerator (e.g. GPU or TPU) details.

Attributes:

attr Accelerator.manufacturer table_fields.py:183⁠ (opens in a new tab)​

manufacturer: Optional[str] = None

The manufacturer/brand of the accelerator, e.g. Nvidia or AMD.

attr Accelerator.family table_fields.py:185⁠ (opens in a new tab)​

family: Optional[str] = None

The model family/architecture of the accelerator.

attr Accelerator.model table_fields.py:187⁠ (opens in a new tab)​

model: Optional[str] = None

The model number of the accelerator.

attr Accelerator.memory table_fields.py:189⁠ (opens in a new tab)​

memory: Optional[int] = None

Memory (MiB) allocated to the accelerator.

attr Accelerator.firmware_version table_fields.py:191⁠ (opens in a new tab)​

firmware_version: Optional[str] = None

Firmware version.

attr Accelerator.bios_version table_fields.py:193⁠ (opens in a new tab)​

bios_version: Optional[str] = None

Video BIOS version.

attr Accelerator.graphics_clock table_fields.py:195⁠ (opens in a new tab)​

graphics_clock: Optional[int] = None

Core clock speed (Mhz).

attr Accelerator.sm_clock table_fields.py:197⁠ (opens in a new tab)​

sm_clock: Optional[int] = None

Streaming Multiprocessor clock speed (Mhz).

attr Accelerator.mem_clock table_fields.py:199⁠ (opens in a new tab)​

mem_clock: Optional[int] = None

Memory clock speed (Mhz).

attr Accelerator.video_clock table_fields.py:201⁠ (opens in a new tab)​

video_clock: Optional[int] = None

Video clock speed (Mhz).

class StorageType table_fields.py:205–213⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Type of a storage, e.g. HDD or SSDSSD: Solid-State DriveA storage device that keeps data in flash memory instead of on spinning disks, so it reads and writes much faster than an HDD, especially at random locations. A controller with its own firmware maps logical blocks to flash pages, and many SSDs write incoming data to a fast cache first, then move it to slower flash. Cloud servers use SSDs as local disks and behind network block storage.WikipediaGlossary.

Attributes:

  • HDD – Magnetic hard disk drive.
  • SSD – Solid-state drive.
  • NVME_SSD – NVMe based solid-state drive.

attr StorageType.HDD table_fields.py:208⁠ (opens in a new tab)​

HDD = 'hdd'

Magnetic hard disk drive.

attr StorageType.SSD table_fields.py:210⁠ (opens in a new tab)​

SSD = 'ssd'

Solid-state drive.

attr StorageType.NVME_SSD table_fields.py:212⁠ (opens in a new tab)​

NVME_SSD = 'nvme ssd'

NVMe based solid-state drive.

class DatabaseEngine table_fields.py:216–220⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Managed database engine.

Attributes:

attr DatabaseEngine.POSTGRESQL table_fields.py:219⁠ (opens in a new tab)​

POSTGRESQL = 'postgresql'

PostgreSQL.

class DatabaseWireProtocol table_fields.py:223–227⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Wire protocol for a managed database type.

Attributes:

attr DatabaseWireProtocol.POSTGRESQL table_fields.py:226⁠ (opens in a new tab)​

POSTGRESQL = 'postgresql'

PostgreSQL.

class DatabaseHaLevel table_fields.py:230–254⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

High availability level for a managed database type.

Functions:

  • ordered – Return supported HA levels in canonical order (most available first).

Attributes:

  • NONE – No high availability.
  • SINGLE_ZONE – Single-zone high availability, meaning multiple databases in the same zone with failover or multi-master.
  • MULTI_ZONE – Multi-zone high availability, meaning multiple databases in multiple zones of the same region with failover or multi-master.
  • MULTI_REGION – Multi-region high availability, meaning multiple databases in multiple regions with failover or multi-master.

attr DatabaseHaLevel.NONE table_fields.py:233⁠ (opens in a new tab)​

NONE = 'none'

No high availability.

attr DatabaseHaLevel.SINGLE_ZONE table_fields.py:235⁠ (opens in a new tab)​

SINGLE_ZONE = 'single-zone'

Single-zone high availability, meaning multiple databases in the same zone with failover or multi-master.

attr DatabaseHaLevel.MULTI_ZONE table_fields.py:237⁠ (opens in a new tab)​

MULTI_ZONE = 'multi-zone'

Multi-zone high availability, meaning multiple databases in multiple zones of the same region with failover or multi-master.

attr DatabaseHaLevel.MULTI_REGION table_fields.py:239⁠ (opens in a new tab)​

MULTI_REGION = 'multi-region'

Multi-region high availability, meaning multiple databases in multiple regions with failover or multi-master.

meth DatabaseHaLevel.ordered table_fields.py:242–254⁠ (opens in a new tab)​

ordered(levels)

Return supported HA levels in canonical order (most available first).

class DatabaseHaStrategy table_fields.py:257–283⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

High availability replication strategy for a managed database type.

Functions:

  • ordered – Return supported HA strategies in canonical order (most capable first).

Attributes:

  • NONE – No high availability strategy.
  • PASSIVE_STANDBY – Passive standby for failover, e.g. standard RDS Multi-AZ with block storage replication.
  • READABLE_CLUSTER – Readable cluster for read scaling and failover, e.g. RDS Multi-AZ Cluster / Aurora with engine replication.
  • MULTI_MASTER – True multi-master, e.g. CockroachDB / Spanner / DynamoDB Global Tables.

attr DatabaseHaStrategy.NONE table_fields.py:260⁠ (opens in a new tab)​

NONE = 'none'

No high availability strategy.

attr DatabaseHaStrategy.PASSIVE_STANDBY table_fields.py:262⁠ (opens in a new tab)​

PASSIVE_STANDBY = 'passive-standby'

Passive standby for failover, e.g. standard RDS Multi-AZ with block storage replication.

attr DatabaseHaStrategy.READABLE_CLUSTER table_fields.py:264⁠ (opens in a new tab)​

READABLE_CLUSTER = 'readable-cluster'

Readable cluster for read scaling and failover, e.g. RDS Multi-AZ Cluster / Aurora with engine replication.

attr DatabaseHaStrategy.MULTI_MASTER table_fields.py:266⁠ (opens in a new tab)​

MULTI_MASTER = 'multi-master'

True multi-master, e.g. CockroachDB / Spanner / DynamoDB Global Tables.

meth DatabaseHaStrategy.ordered table_fields.py:269–283⁠ (opens in a new tab)​

ordered(strategies)

Return supported HA strategies in canonical order (most capable first).

class DatabaseSecurityFeature table_fields.py:286–315⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Security capabilities supported by DBaaS providers.

Attributes:

  • IP_FILTERING – Access via public endpoint restricted to explicit IP/CIDR ranges.
  • PRIVATE_NETWORK – Provisioned natively inside customer's own private network/subnets (e.g. VPC/VNet).
  • NETWORK_PEERING – Private access via cross-network peering or private service endpoints (e.g. PrivateLink).
  • IDENTITY_BASED_AUTH – Auth offloaded to cloud or enterprise identity providers (e.g. IAM, Entra ID, OIDC, SSO).
  • CLIENT_CERT_AUTH – Mutual TLS (mTLS) authentication requiring client-side SSL/TLS certificates.
  • ENFORCED_TLS – Enforceable requirement that all database connections use SSL/TLS (no plaintext fallback).
  • CUSTOMER_MANAGED_KEYS – Bring Your Own Key (BYOK) support for storage encryption.
  • AUDIT_LOGGING – Detailed database audit logs (e.g. pgaudit) exportable to external logging services or storage.

attr DatabaseSecurityFeature.IP_FILTERING table_fields.py:290⁠ (opens in a new tab)​

IP_FILTERING = 'ip-filtering'

Access via public endpoint restricted to explicit IP/CIDR ranges.

attr DatabaseSecurityFeature.PRIVATE_NETWORK table_fields.py:293⁠ (opens in a new tab)​

PRIVATE_NETWORK = 'private-network'

Provisioned natively inside customer's own private network/subnets (e.g. VPC/VNet).

attr DatabaseSecurityFeature.NETWORK_PEERING table_fields.py:296⁠ (opens in a new tab)​

NETWORK_PEERING = 'network-peering'

Private access via cross-network peering or private service endpoints (e.g. PrivateLink).

attr DatabaseSecurityFeature.IDENTITY_BASED_AUTH table_fields.py:300⁠ (opens in a new tab)​

IDENTITY_BASED_AUTH = 'identity-based-auth'

Auth offloaded to cloud or enterprise identity providers (e.g. IAM, Entra ID, OIDC, SSO).

attr DatabaseSecurityFeature.CLIENT_CERT_AUTH table_fields.py:303⁠ (opens in a new tab)​

CLIENT_CERT_AUTH = 'client-cert-auth'

Mutual TLS (mTLS) authentication requiring client-side SSL/TLS certificates.

attr DatabaseSecurityFeature.ENFORCED_TLS table_fields.py:307⁠ (opens in a new tab)​

ENFORCED_TLS = 'enforced-tls'

Enforceable requirement that all database connections use SSL/TLS (no plaintext fallback).

attr DatabaseSecurityFeature.CUSTOMER_MANAGED_KEYS table_fields.py:310⁠ (opens in a new tab)​

CUSTOMER_MANAGED_KEYS = 'customer-managed-keys'

Bring Your Own Key (BYOK) support for storage encryption.

attr DatabaseSecurityFeature.AUDIT_LOGGING table_fields.py:314⁠ (opens in a new tab)​

AUDIT_LOGGING = 'audit-logging'

Detailed database audit logs (e.g. pgaudit) exportable to external logging services or storage.

class DatabaseStorageScope table_fields.py:318–324⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Scope of a managed database storage product.

Attributes:

  • DATA – Primary database data storage.
  • BACKUP – Backup or archive storage.

attr DatabaseStorageScope.DATA table_fields.py:321⁠ (opens in a new tab)​

DATA = 'data'

Primary database data storage.

attr DatabaseStorageScope.BACKUP table_fields.py:323⁠ (opens in a new tab)​

BACKUP = 'backup'

Backup or archive storage.

class Disk table_fields.py:327–343⁠ (opens in a new tab)​

Bases: Json

Disk definition based on size and storage type.

Attributes:

attr Disk.size table_fields.py:330⁠ (opens in a new tab)​

size: int = 0

Storage size in GB.

attr Disk.storage_type table_fields.py:332⁠ (opens in a new tab)​

storage_type: StorageType

Type of the storage.

attr Disk.description table_fields.py:334⁠ (opens in a new tab)​

description: Optional[str] = None

Optional description of the storage, e.g. temp disk.

attr Disk.read_iops_max table_fields.py:336⁠ (opens in a new tab)​

read_iops_max: Optional[int] = None

Vendor-published maximum read IOPS of the disk.

attr Disk.write_iops_max table_fields.py:338⁠ (opens in a new tab)​

write_iops_max: Optional[int] = None

Vendor-published maximum write IOPS of the disk.

attr Disk.read_throughput_max table_fields.py:340⁠ (opens in a new tab)​

read_throughput_max: Optional[int] = None

Vendor-published maximum read throughput of the disk (MB/s).

attr Disk.write_throughput_max table_fields.py:342⁠ (opens in a new tab)​

write_throughput_max: Optional[int] = None

Vendor-published maximum write throughput of the disk (MB/s).

attr DISK_SPEED_FIELDS table_fields.py:346–351⁠ (opens in a new tab)​

DISK_SPEED_FIELDS = ('read_iops_max', 'write_iops_max', 'read_throughput_max', 'write_throughput_max')

Speed fields of a Disk, matching the storage_* server columns.

class TrafficDirection table_fields.py:355–361⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Direction of the network traffic.

Attributes:

  • IN – Inbound traffic.
  • OUT – Outbound traffic.

attr TrafficDirection.IN table_fields.py:358⁠ (opens in a new tab)​

IN = 'inbound'

Inbound traffic.

attr TrafficDirection.OUT table_fields.py:360⁠ (opens in a new tab)​

OUT = 'outbound'

Outbound traffic.

class CpuAllocation table_fields.py:364–372⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

CPU allocation methods at cloud vendors.

Attributes:

  • SHARED – Shared CPU with other virtual server tenants.
  • BURSTABLE – CPU that can temporarily burst above its baseline performance.
  • DEDICATED – Dedicated CPU with known performance.

attr CpuAllocation.SHARED table_fields.py:367⁠ (opens in a new tab)​

SHARED = 'Shared'

Shared CPU with other virtual server tenants.

attr CpuAllocation.BURSTABLE table_fields.py:369⁠ (opens in a new tab)​

BURSTABLE = 'Burstable'

CPU that can temporarily burst above its baseline performance.

attr CpuAllocation.DEDICATED table_fields.py:371⁠ (opens in a new tab)​

DEDICATED = 'Dedicated'

Dedicated CPU with known performance.

class CpuArchitecture table_fields.py:375–387⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

CPU architectures.

Attributes:

  • ARM64 – 64-bit ARM architecture.
  • ARM64_MAC – Apple 64-bit ARM architecture.
  • I386 – 32-bit x86 architecture.
  • X86_64 – 64-bit x86 architecture.
  • X86_64_MAC – Apple 64-bit x86 architecture.

attr CpuArchitecture.ARM64 table_fields.py:378⁠ (opens in a new tab)​

ARM64 = 'arm64'

64-bit ARM architecture.

attr CpuArchitecture.ARM64_MAC table_fields.py:380⁠ (opens in a new tab)​

ARM64_MAC = 'arm64_mac'

Apple 64-bit ARM architecture.

attr CpuArchitecture.I386 table_fields.py:382⁠ (opens in a new tab)​

I386 = 'i386'

32-bit x86 architecture.

attr CpuArchitecture.X86_64 table_fields.py:384⁠ (opens in a new tab)​

X86_64 = 'x86_64'

64-bit x86 architecture.

attr CpuArchitecture.X86_64_MAC table_fields.py:386⁠ (opens in a new tab)​

X86_64_MAC = 'x86_64_mac'

Apple 64-bit x86 architecture.

class DdrGeneration table_fields.py:390–398⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Generation of the DDR SDRAM.

Attributes:

  • DDR3 – DDR3 SDRAM.
  • DDR4 – DDR4 SDRAM.
  • DDR5 – DDR5 SDRAM.

attr DdrGeneration.DDR3 table_fields.py:393⁠ (opens in a new tab)​

DDR3 = 'DDR3'

DDR3 SDRAM.

attr DdrGeneration.DDR4 table_fields.py:395⁠ (opens in a new tab)​

DDR4 = 'DDR4'

DDR4 SDRAM.

attr DdrGeneration.DDR5 table_fields.py:397⁠ (opens in a new tab)​

DDR5 = 'DDR5'

DDR5 SDRAM.

class Allocation table_fields.py:401–409⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Server allocation options.

Attributes:

attr Allocation.ONDEMAND table_fields.py:404⁠ (opens in a new tab)​

ONDEMAND = 'ondemand'

On-demand server.

attr Allocation.RESERVED table_fields.py:406⁠ (opens in a new tab)​

RESERVED = 'reserved'

Reserved server.

attr Allocation.SPOT table_fields.py:408⁠ (opens in a new tab)​

SPOT = 'spot'

Spot/preemptible server.

class PriceUnit table_fields.py:412–426⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Supported units for the price tables.

Attributes:

  • YEAR – Price per year.
  • MONTH – Price per month.
  • HOUR – Price per hour.
  • GIB – Price per gibibyte (GiB).
  • GB – Price per gigabyte (GB).
  • GB_MONTH – Price per gigabyte (GB)/month.

attr PriceUnit.YEAR table_fields.py:415⁠ (opens in a new tab)​

YEAR = 'year'

Price per year.

attr PriceUnit.MONTH table_fields.py:417⁠ (opens in a new tab)​

MONTH = 'month'

Price per month.

attr PriceUnit.HOUR table_fields.py:419⁠ (opens in a new tab)​

HOUR = 'hour'

Price per hour.

attr PriceUnit.GIB table_fields.py:421⁠ (opens in a new tab)​

GIB = 'GiB'

Price per gibibyte (GiB).

attr PriceUnit.GB table_fields.py:423⁠ (opens in a new tab)​

GB = 'GB'

Price per gigabyte (GB).

attr PriceUnit.GB_MONTH table_fields.py:425⁠ (opens in a new tab)​

GB_MONTH = 'GB/month'

Price per gigabyte (GB)/month.

class PriceTier table_fields.py:429–458⁠ (opens in a new tab)​

Bases: Json

Price tier definition.

Infinite bounds (e.g. for an open-ended upper tier) are stored as float("inf") in Python and automatically serialized to the JSON-safe string "Infinity" on export. Both representations are accepted as input: the model validator converts "Infinity" back to float("inf") when loading from JSON.

Attributes:

attr PriceTier.lower table_fields.py:438⁠ (opens in a new tab)​

lower: float

Lower bound of pricing tier, e.g. 100 GB. Unit is defined in the parent object.

attr PriceTier.upper table_fields.py:440⁠ (opens in a new tab)​

upper: float

Upper bound of pricing tier, e.g. 1 TB. Unit is defined in the parent object.

attr PriceTier.price table_fields.py:442⁠ (opens in a new tab)​

price: float

Price in the pricing tier. Currency is defined in the parent object.

class Parallelism table_fields.py:461–467⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Parallelism mode of a benchmark run.

Attributes:

  • SINGLE – Benchmark run on a single core.
  • MULTI – Benchmark run across multiple cores.

attr Parallelism.SINGLE table_fields.py:464⁠ (opens in a new tab)​

SINGLE = 'single'

Benchmark run on a single core.

attr Parallelism.MULTI table_fields.py:466⁠ (opens in a new tab)​

MULTI = 'multi'

Benchmark run across multiple cores.

class BenchmarkComponentAggregationMethod table_fields.py:470–475⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

How component benchmark scores are combined into one composite score.

Attributes:

attr BenchmarkComponentAggregationMethod.WEIGHTED_GEOMETRIC_MEAN table_fields.py:473⁠ (opens in a new tab)​

WEIGHTED_GEOMETRIC_MEAN = 'weighted_geometric_mean'

Weighted geometric mean: 2 ** (Σ wᵢ·log2(normalizedᵢ) / Σ wᵢ). Preserves ratio/percentage linearity and is robust to outliers.

class BenchmarkComponentNormalizationMethod table_fields.py:478–483⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

How each raw benchmark value is scaled to be comparable across benchmarks.

Attributes:

  • MEDIAN_RATIO – Oriented ratio to the fleet median for that benchmark: raw/median when

attr BenchmarkComponentNormalizationMethod.MEDIAN_RATIO table_fields.py:481⁠ (opens in a new tab)​

MEDIAN_RATIO = 'median_ratio'

Oriented ratio to the fleet median for that benchmark: raw/median when higher-is-better, median/raw otherwise. 1.0 == the fleet median.

class BenchmarkComponentMissingPolicy table_fields.py:486–500⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

What to do when a component has no usable measurement for a server.

Attributes:

  • IGNORE – Omit the component and renormalize weights over the rest (default).
  • PENALIZE – Substitute the component's penalty floor as the normalized value and keep
  • REQUIRE – Suppress the whole compound score for that server if the component is

attr BenchmarkComponentMissingPolicy.IGNORE table_fields.py:489⁠ (opens in a new tab)​

IGNORE = 'ignore'

Omit the component and renormalize weights over the rest (default). Use when the metric is genuinely optional

attr BenchmarkComponentMissingPolicy.PENALIZE table_fields.py:493⁠ (opens in a new tab)​

PENALIZE = 'penalize'

Substitute the component's penalty floor as the normalized value and keep its full weight, so the composite collapses toward zero. Use when missing means failure (e.g. a benchmark that timed out / could not complete).

attr BenchmarkComponentMissingPolicy.REQUIRE table_fields.py:498⁠ (opens in a new tab)​

REQUIRE = 'require'

Suppress the whole compound score for that server if the component is missing. Use when the component is load-bearing for the profile's meaning.

class ScoreComponent table_fields.py:503–523⁠ (opens in a new tab)​

Bases: Json

One component's contribution to a composite workload profile score.

Attributes:

attr ScoreComponent.label table_fields.py:506⁠ (opens in a new tab)​

label: str

Human-readable, concise description of what the component measures.

attr ScoreComponent.weight table_fields.py:508⁠ (opens in a new tab)​

weight: float

Relative weight of this component. Weights within a workload sum to 1.0.

attr ScoreComponent.weight_share table_fields.py:510⁠ (opens in a new tab)​

weight_share: float

The weight of this component as a share of the total weight (0.0 for ignored components).

attr ScoreComponent.raw table_fields.py:512⁠ (opens in a new tab)​

raw: int | float | None = None

The raw benchmark value.

attr ScoreComponent.reference table_fields.py:514⁠ (opens in a new tab)​

reference: int | float | None = None

The reference benchmark value, e.g. the fleet median.

attr ScoreComponent.normalized table_fields.py:516⁠ (opens in a new tab)​

normalized: float | None = None

The normalized benchmark value, e.g. the ratio of the raw value to the reference value.

attr ScoreComponent.higher_is_better table_fields.py:518⁠ (opens in a new tab)​

higher_is_better: bool = True

Whether a higher value is better.

attr ScoreComponent.note table_fields.py:520⁠ (opens in a new tab)​

note: str | None = None

Optional note about this component.

attr ScoreComponent.impact table_fields.py:522⁠ (opens in a new tab)​

impact: float | None = None

How much this benchmark component raised or lowered the overall workload score. Values are approximate percentages (positive helps, negative hurts the final score), do not add up to the total score, and actual formula depends on the workload's aggregation and normalization methods.

class WorkloadScoreBreakdown table_fields.py:526–536⁠ (opens in a new tab)​

Bases: Json

Per-server realized calculation of a composite workload profile score.

Attributes:

attr WorkloadScoreBreakdown.aggregation table_fields.py:529⁠ (opens in a new tab)​

aggregation: BenchmarkComponentAggregationMethod

How the component benchmark scores are combined into one composite score.

attr WorkloadScoreBreakdown.normalization table_fields.py:531⁠ (opens in a new tab)​

normalization: BenchmarkComponentNormalizationMethod

How each raw benchmark value is scaled to be comparable across benchmarks.

attr WorkloadScoreBreakdown.coverage table_fields.py:533⁠ (opens in a new tab)​

coverage: float

The total weight of the components.

attr WorkloadScoreBreakdown.components table_fields.py:535⁠ (opens in a new tab)​

components: list[ScoreComponent]

The components of the workload profile.

class Category table_fields.py:539–553⁠ (opens in a new tab)​

Bases: str⁠ (opens in a new tab), Enum⁠ (opens in a new tab)

Workload category for a cloud server type.

Attributes:

attr Category.GENERAL_PURPOSE table_fields.py:542⁠ (opens in a new tab)​

GENERAL_PURPOSE = 'General Purpose'

General-purpose server.

attr Category.COMPUTE_OPTIMIZED table_fields.py:544⁠ (opens in a new tab)​

COMPUTE_OPTIMIZED = 'Compute Optimized'

Compute-optimized server.

attr Category.MEMORY_OPTIMIZED table_fields.py:546⁠ (opens in a new tab)​

MEMORY_OPTIMIZED = 'Memory Optimized'

Memory-optimized server.

attr Category.STORAGE_AND_DATABASE table_fields.py:548⁠ (opens in a new tab)​

STORAGE_AND_DATABASE = 'Storage & Database'

Storage- and database-optimized server.

attr Category.GPU_ACCELERATED table_fields.py:550⁠ (opens in a new tab)​

GPU_ACCELERATED = 'GPU Accelerated'

GPU-accelerated server.

attr Category.BURSTABLE_AND_BUDGET table_fields.py:552⁠ (opens in a new tab)​

BURSTABLE_AND_BUDGET = 'Burstable & Budget'

Burstable and budget-friendly server.