From 6fea3f28bfba934fc36041c1ed69b0fd03c39a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Drobn=C3=ADk?= Date: Thu, 18 May 2023 10:18:24 +0200 Subject: [PATCH] feat: add usage usd under run and build (#587) --- sources/platform/api_v2/api_v2_reference.apib | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/sources/platform/api_v2/api_v2_reference.apib b/sources/platform/api_v2/api_v2_reference.apib index 81413190b..ee84a0af1 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -4175,6 +4175,11 @@ a summary of your limits, and your current usage. - betaPackages: false (boolean, nullable) - memoryMbytes: 1024 (number, nullable) - diskMbytes: 2048 (number, nullable) +- usage (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.08 (number, nullable) +- usageTotalUsd: 0.02 (number, nullable) +- usageUsd (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.02 (number, nullable) - inputSchema: `{\n \"title\": \"Schema for ... }` (string, nullable) - readme: `# Magic actor\nThis actor is magic.` (string, nullable) - buildNumber: `0.1.1` (string, required) @@ -4184,6 +4189,7 @@ a summary of your limits, and your current usage. - status: `SUCCEEDED` (string, required) - startedAt: `2019-11-30T07:34:24.202Z` (string, required) - finishedAt: `2019-12-12T09:30:12.202Z` (string, required) +- usageTotalUsd: 0.02 (number, required) - meta (object) - origin: `WEB` (string, required) - clientIp: `172.234.12.34` (string, required) @@ -4194,6 +4200,7 @@ a summary of your limits, and your current usage. - startedAt: `2019-12-12T07:34:14.202Z` (string, required) - finishedAt: `2019-12-13T08:36:13.202Z` (string, required) - status: `FAILED` (string, required) +- usageTotalUsd: 0.105 (number, required) - meta (object) - origin: `API` (string, required) @@ -4213,6 +4220,11 @@ a summary of your limits, and your current usage. - useCache: false (boolean, nullable) - memoryMbytes: 1024 (number, nullable) - diskMbytes: 2048 (number, nullable) +- usage (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.08 (number, nullable) +- usageTotalUsd: 0.02 (number, nullable) +- usageUsd (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.02 (number, nullable) ## Run (object) - id: `HG7ML7M8z78YcAPEB` (string, required) @@ -4269,6 +4281,20 @@ a summary of your limits, and your current usage. - DATA_TRANSFER_EXTERNAL_GBYTES?: 3 (number, nullable) - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 34 (number, nullable) - PROXY_SERPS: 3 (number, nullable) +- usageTotalUsd: 0.2654 (number, nullable) +- usageUsd (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.072 (number, nullable) + - DATASET_READS: 0.0004 (number, nullable) + - DATASET_WRITES: 0.0002 (number, nullable) + - KEY_VALUE_STORE_READS: 0.0006 (number, nullable) + - KEY_VALUE_STORE_WRITES: 0.002 (number, nullable) + - KEY_VALUE_STORE_LISTS: 0.004 (number, nullable) + - REQUEST_QUEUE_READS: 0.005 (number, nullable) + - REQUEST_QUEUE_WRITES: 0.02 (number, nullable) + - DATA_TRANSFER_INTERNAL_GBYTES: 0.0004 (number, nullable) + - DATA_TRANSFER_EXTERNAL_GBYTES?: 0.0002 (number, nullable) + - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 0.16 (number, nullable) + - PROXY_SERPS: 0.0006 (number, nullable) ## RunShort1 (object) - id: `HG7ML7M8z78YcAPEB` (string, required) @@ -4281,6 +4307,7 @@ a summary of your limits, and your current usage. - buildNumber: `0.0.2` (string, required) - meta (object, required) - origin: `WEB` (string, required) +- usageTotalUsd: 0.2 (number, required) - defaultKeyValueStoreId: `sfAjeR4QmeJCQzTfe` (string, required) - defaultDatasetId: `3ZojQDdFTsyE7Moy4` (string, required) - defaultRequestQueueId: `so93g2shcDzK3pA85` (string, required) @@ -4297,6 +4324,7 @@ a summary of your limits, and your current usage. - buildNumber: `0.2.2` (string, required) - meta (object, required) - origin: `DEVELOPMENT` (string, required) +- usageTotalUsd: 0.6 (number, required) - defaultKeyValueStoreId: `sffsouqlseJCQzTfe` (string, required) - defaultDatasetId: `CFGggdjQDsyE7Moyw` (string, required) - defaultRequestQueueId: `soowucklrmDzKpA8x` (string, required) @@ -4359,6 +4387,20 @@ a summary of your limits, and your current usage. - DATA_TRANSFER_EXTERNAL_GBYTES?: 3 (number, nullable) - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 34 (number, nullable) - PROXY_SERPS: 3 (number, nullable) +- usageTotalUsd: 0.2654 (number, nullable) +- usageUsd (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.072 (number, nullable) + - DATASET_READS: 0.0004 (number, nullable) + - DATASET_WRITES: 0.0002 (number, nullable) + - KEY_VALUE_STORE_READS: 0.0006 (number, nullable) + - KEY_VALUE_STORE_WRITES: 0.002 (number, nullable) + - KEY_VALUE_STORE_LISTS: 0.004 (number, nullable) + - REQUEST_QUEUE_READS: 0.005 (number, nullable) + - REQUEST_QUEUE_WRITES: 0.02 (number, nullable) + - DATA_TRANSFER_INTERNAL_GBYTES: 0.0004 (number, nullable) + - DATA_TRANSFER_EXTERNAL_GBYTES?: 0.0002 (number, nullable) + - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 0.16 (number, nullable) + - PROXY_SERPS: 0.0006 (number, nullable) ## RunAborted (object) - id: `HG7ML7M8z78YcAPEB` (string, required) @@ -4413,6 +4455,20 @@ a summary of your limits, and your current usage. - DATA_TRANSFER_EXTERNAL_GBYTES?: 3 (number, nullable) - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 34 (number, nullable) - PROXY_SERPS: 3 (number, nullable) +- usageTotalUsd: 0.2654 (number, nullable) +- usageUsd (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.072 (number, nullable) + - DATASET_READS: 0.0004 (number, nullable) + - DATASET_WRITES: 0.0002 (number, nullable) + - KEY_VALUE_STORE_READS: 0.0006 (number, nullable) + - KEY_VALUE_STORE_WRITES: 0.002 (number, nullable) + - KEY_VALUE_STORE_LISTS: 0.004 (number, nullable) + - REQUEST_QUEUE_READS: 0.005 (number, nullable) + - REQUEST_QUEUE_WRITES: 0.02 (number, nullable) + - DATA_TRANSFER_INTERNAL_GBYTES: 0.0004 (number, nullable) + - DATA_TRANSFER_EXTERNAL_GBYTES?: 0.0002 (number, nullable) + - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 0.16 (number, nullable) + - PROXY_SERPS: 0.0006 (number, nullable) ## RunMetamorphed (object) - id: `HG7ML7M8z78YcAPEB` (string, required) @@ -4473,6 +4529,20 @@ a summary of your limits, and your current usage. - DATA_TRANSFER_EXTERNAL_GBYTES?: 3 (number, nullable) - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 34 (number, nullable) - PROXY_SERPS: 3 (number, nullable) +- usageTotalUsd: 0.2654 (number, nullable) +- usageUsd (object, nullable) + - ACTOR_COMPUTE_UNITS: 0.072 (number, nullable) + - DATASET_READS: 0.0004 (number, nullable) + - DATASET_WRITES: 0.0002 (number, nullable) + - KEY_VALUE_STORE_READS: 0.0006 (number, nullable) + - KEY_VALUE_STORE_WRITES: 0.002 (number, nullable) + - KEY_VALUE_STORE_LISTS: 0.004 (number, nullable) + - REQUEST_QUEUE_READS: 0.005 (number, nullable) + - REQUEST_QUEUE_WRITES: 0.02 (number, nullable) + - DATA_TRANSFER_INTERNAL_GBYTES: 0.0004 (number, nullable) + - DATA_TRANSFER_EXTERNAL_GBYTES?: 0.0002 (number, nullable) + - PROXY_RESIDENTIAL_TRANSFER_GBYTES: 0.16 (number, nullable) + - PROXY_SERPS: 0.0006 (number, nullable) ## KVStore (object) - id: `WkzbQMuFYuamGv3YF` (string, required)