File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ users_with_active_deals as (
40
40
approx_count_distinct(deals .provider_id ) as providers_with_active_deals,
41
41
mean(end_epoch - sector_start_epoch) // 2880 as mean_deal_duration_days,
42
42
mean(end_epoch - sector_start_epoch) filter (is_verified) // 2880 as mean_verified_deal_duration_days,
43
- mean(end_epoch - sector_start_epoch) filter (not is_verified) // 2880 as mean_regular_deal_duration_days
43
+ mean(end_epoch - sector_start_epoch) filter (not is_verified) // 2880 as mean_regular_deal_duration_days,
44
+ avg (piece_replication_factor) as average_piece_replication_factor_active_deals
44
45
from date_calendar as dc
45
46
left join {{ ref(' filecoin_state_market_deals' ) }} as deals
46
47
on (deals .sector_start_at <= dc .date + interval ' 1 {{ period }}' )
@@ -317,6 +318,7 @@ select
317
318
mean_deal_duration_days,
318
319
mean_verified_deal_duration_days,
319
320
mean_regular_deal_duration_days,
321
+ average_piece_replication_factor_active_deals,
320
322
new_client_ids,
321
323
new_provider_ids,
322
324
new_providers_providing_capacity,
Original file line number Diff line number Diff line change 24
24
active_address_count_daily,
25
25
total_address_count,
26
26
clients_with_active_data_gt_1_tibs,
27
+ average_piece_replication_factor,
27
28
28
29
-- Power
29
30
raw_power_pibs,
Original file line number Diff line number Diff line change @@ -371,6 +371,22 @@ movingAverageLinePlot({
371
371
` ` `
372
372
</div>
373
373
374
+ <div class="card" id="average-piece-replication-factor">
375
+
376
+ ` ` ` js
377
+ movingAverageLinePlot ({
378
+ metrics,
379
+ title: title_anchor (" Average Piece Replication Factor" , " average-piece-replication-factor" ),
380
+ subtitle: " Average piece replication of pieces onboarded on a date." ,
381
+ caption: " Displaying 30-day moving average" ,
382
+ yField: " average_piece_replication_factor" ,
383
+ yLabel: " Piece Replication Factor" ,
384
+ yDomain: [0 , 40 ],
385
+ showArea: true ,
386
+ })
387
+ ` ` `
388
+ </div>
389
+
374
390
</div>
375
391
376
392
## Power
You can’t perform that action at this time.
0 commit comments