1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "scenarios": [{
10 "id": "object-storage-monthly",
11 "workloadLabel": "Object storage monthly capacity",
12 "comparisonAssumptions": "Compare the first public storage tier for the same monthly capacity. Requests, retrieval, replication, egress, discounts, tax, support, credits, and free tiers are excluded.",
13 "normalizedUsage": {
14 "unit": "storage-gb-month",
15 "quantity": 1000,
16 },
17 "aws": {
18 "serviceCode": "AmazonS3",
19 "region": "us-east-1",
20 "selectors": {
21 "productFamily": "Storage",
22 "unit": "GB-Mo",
23 "descriptionIncludes": ["first 50 TB"],
24 "attributes": {
25 "storageClass": "General Purpose",
26 "volumeType": "Standard",
27 },
28 },
29 "usage": {
30 "quantity": 1000,
31 "unit": "GB-Mo",
32 "mappingNote": "One thousand GB-months is the normalized monthly capacity for this example.",
33 },
34 },
35 "azure": {
36 "serviceName": "Storage",
37 "armRegionName": "eastus",
38 "selectors": {
39 "meterName": "Hot LRS Data Stored",
40 "productName": "Blob Storage",
41 "priceType": "Consumption",
42 "tierMinimumUnits": 0,
43 },
44 "usage": {
45 "quantity": 1000,
46 "unit": "1 GB/Month",
47 "mappingNote": "The Azure first storage tier is mapped to the same one thousand storage GB-months.",
48 },
49 },
50 }],
51 "initialRunMode": "emit_current",
52 "generateReport": False,
53 "emitRawRows": True,
54}
55
56
57run = client.actor("taroyamada/multi-cloud-pricing-cost-impact-report").call(run_input=run_input)
58
59
60print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
61for item in client.dataset(run.default_dataset_id).iterate_items():
62 print(item)
63
64