Separate metrics measurement dimensions
This commit is contained in:
parent
2bc6ec6be2
commit
b3dc8a15c0
7 changed files with 33 additions and 9 deletions
|
|
@ -4878,8 +4878,10 @@ fn derive_repo_metrics_request_plan(
|
|||
String::new(),
|
||||
"[metrics_packet]".to_string(),
|
||||
"requires_model_call_count = true".to_string(),
|
||||
"requires_token_or_cost_summary = true".to_string(),
|
||||
"requires_review_minutes_or_count = true".to_string(),
|
||||
"requires_token_summary = true".to_string(),
|
||||
"requires_cost_availability_status = true".to_string(),
|
||||
"requires_review_duration = true".to_string(),
|
||||
"requires_review_event_count = true".to_string(),
|
||||
"requires_accepted_artifact_ref = true".to_string(),
|
||||
"requires_public_proof_ref = true".to_string(),
|
||||
"requires_credit_readback_ref = true".to_string(),
|
||||
|
|
|
|||
|
|
@ -156,8 +156,10 @@ impl RepoMetricsRequest {
|
|||
pub(super) fn has_metrics_packet(&self) -> bool {
|
||||
let p = &self.metrics_packet;
|
||||
p.requires_model_call_count
|
||||
&& p.requires_token_or_cost_summary
|
||||
&& p.requires_review_minutes_or_count
|
||||
&& p.requires_token_summary
|
||||
&& p.requires_cost_availability_status
|
||||
&& p.requires_review_duration
|
||||
&& p.requires_review_event_count
|
||||
&& p.requires_accepted_artifact_ref
|
||||
&& p.requires_public_proof_ref
|
||||
&& p.requires_credit_readback_ref
|
||||
|
|
@ -223,8 +225,10 @@ struct RepoMetricsReceipts {
|
|||
#[derive(Debug, Deserialize)]
|
||||
struct RepoMetricsPacket {
|
||||
requires_model_call_count: bool,
|
||||
requires_token_or_cost_summary: bool,
|
||||
requires_review_minutes_or_count: bool,
|
||||
requires_token_summary: bool,
|
||||
requires_cost_availability_status: bool,
|
||||
requires_review_duration: bool,
|
||||
requires_review_event_count: bool,
|
||||
requires_accepted_artifact_ref: bool,
|
||||
requires_public_proof_ref: bool,
|
||||
requires_credit_readback_ref: bool,
|
||||
|
|
|
|||
|
|
@ -116,8 +116,10 @@ review_load = "gamecult.metrics.review_load_receipt.v0"
|
|||
credit_readback = "gamecult.bifrost.credit_readback_receipt.v0"
|
||||
[metrics_packet]
|
||||
requires_model_call_count = true
|
||||
requires_token_or_cost_summary = true
|
||||
requires_review_minutes_or_count = true
|
||||
requires_token_summary = true
|
||||
requires_cost_availability_status = true
|
||||
requires_review_duration = true
|
||||
requires_review_event_count = true
|
||||
requires_accepted_artifact_ref = true
|
||||
requires_public_proof_ref = true
|
||||
requires_credit_readback_ref = true
|
||||
|
|
|
|||
Reference in a new issue