document mess (api)

the api is a mess and I don't like it
- same keys on listings and rentals, but the values mean something different
- inconsistent use of space units like gb gib mb mib are all used and it's confusing
- no official docs
This commit is contained in:
Minecon724 2024-07-29 17:49:38 +02:00
parent fbdcd5b224
commit bc25923883
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 14 additions and 13 deletions

View file

@ -15,15 +15,16 @@ lines starting with with N are not included in code
"direct_port_count": "int", // how many open ports
"disk_bw": "float", // disk bandwidth (?) in MB/s
"disk_name": "str", // disk "name" which doesn't always make sense
"disk_space": "float", // available disk space on host
"disk_space": "float", // listing: available disk space on host, rented: rented disk space
"dlperf": "float", // Deep Learning Performance as on site
N"dlperf_per_dphtotal": "float", // dlperf divided by dph_total
"dph_base": "float", // dollars per hour excluding storage costs
N"dph_total": "float", // dollars per hour including storage costs (storage is set in request)
"dph_total": "float", // dollars per hour including storage costs (storage is set in request)
"driver_version": "str", // self explanatory
N"duration": "float", // the length of time the instance can be rented, in seconds, the site assumes all months have 30 days
"end_date": "float", // when instance will expire as unix timestamp, basically the above
N"external": "bool?", // null if not rented, otherwise not sure but seems always false
N"flops_per_dphtotal": "float", // total_flops divided by dph_total
N"flops_per_dphtotal": "float", // total_flops divided by dph_total
"geolocation": "str", // formatted as City, CC
N"gpu_display_active": "bool",

View file

@ -1,18 +1,18 @@
{
"ask_contract_id": "int",
"bundled_results": "int",
"cpu_ghz": "float",
"driver_vers": "int",
"ask_contract_id": "int", // same as id
"bundled_results": "int", // not sure, some number or null
"cpu_ghz": "float", // self explanatory
"driver_vers": "int", // driver_version but a number, I think it's to compare versions
"geolocode": "int",
"gpu_arch": "str",
"gpu_arch": "str", // always "nvidia"
"gpu_ids": "list",
"gpu_total_ram": "int",
"hostname": "NoneType",
"reliability": "float",
"gpu_total_ram": "int", // all gpus combined
"hostname": "NoneType", // always null
"reliability": "float", // equal to reliability2
"reliability_mult": "float",
"rented": "bool",
"vericode": "int",
"rn": "int",
"rented": "bool", // I think it's if the instance is rented by you, the website doesn't show instances if this is true
"vericode": "int", // always 1
"rn": "int", // always 1
"dph_total_adj": "float",
"discount_rate": "float",
"discounted_hourly": "float",