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:
parent
fbdcd5b224
commit
bc25923883
2 changed files with 14 additions and 13 deletions
|
@ -15,15 +15,16 @@ lines starting with with N are not included in code
|
||||||
"direct_port_count": "int", // how many open ports
|
"direct_port_count": "int", // how many open ports
|
||||||
"disk_bw": "float", // disk bandwidth (?) in MB/s
|
"disk_bw": "float", // disk bandwidth (?) in MB/s
|
||||||
"disk_name": "str", // disk "name" which doesn't always make sense
|
"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
|
"dlperf": "float", // Deep Learning Performance as on site
|
||||||
N"dlperf_per_dphtotal": "float", // dlperf divided by dph_total
|
N"dlperf_per_dphtotal": "float", // dlperf divided by dph_total
|
||||||
"dph_base": "float", // dollars per hour excluding storage costs
|
"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
|
"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
|
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
|
"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"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
|
N"flops_per_dphtotal": "float", // total_flops divided by dph_total
|
||||||
"geolocation": "str", // formatted as City, CC
|
"geolocation": "str", // formatted as City, CC
|
||||||
N"gpu_display_active": "bool",
|
N"gpu_display_active": "bool",
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
{
|
{
|
||||||
"ask_contract_id": "int",
|
"ask_contract_id": "int", // same as id
|
||||||
"bundled_results": "int",
|
"bundled_results": "int", // not sure, some number or null
|
||||||
"cpu_ghz": "float",
|
"cpu_ghz": "float", // self explanatory
|
||||||
"driver_vers": "int",
|
"driver_vers": "int", // driver_version but a number, I think it's to compare versions
|
||||||
"geolocode": "int",
|
"geolocode": "int",
|
||||||
"gpu_arch": "str",
|
"gpu_arch": "str", // always "nvidia"
|
||||||
"gpu_ids": "list",
|
"gpu_ids": "list",
|
||||||
"gpu_total_ram": "int",
|
"gpu_total_ram": "int", // all gpus combined
|
||||||
"hostname": "NoneType",
|
"hostname": "NoneType", // always null
|
||||||
"reliability": "float",
|
"reliability": "float", // equal to reliability2
|
||||||
"reliability_mult": "float",
|
"reliability_mult": "float",
|
||||||
"rented": "bool",
|
"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",
|
"vericode": "int", // always 1
|
||||||
"rn": "int",
|
"rn": "int", // always 1
|
||||||
"dph_total_adj": "float",
|
"dph_total_adj": "float",
|
||||||
"discount_rate": "float",
|
"discount_rate": "float",
|
||||||
"discounted_hourly": "float",
|
"discounted_hourly": "float",
|
||||||
|
|
Loading…
Reference in a new issue