Function
metrics
(State(state): State<AppState>)
Source from the content-addressed store, hash-verified
| 1028 | } |
| 1029 | |
| 1030 | async fn metrics(State(state): State<AppState>) -> Json<Value> { |
| 1031 | let mut snapshot = json_value!(state.metrics.snapshot()); |
| 1032 | if let Some(object) = snapshot.as_object_mut() { |
| 1033 | object.insert( |
| 1034 | "encoders".to_owned(), |
| 1035 | json_value!(state.registry.encoder_snapshots()), |
| 1036 | ); |
| 1037 | } |
| 1038 | json(snapshot) |
| 1039 | } |
| 1040 | |
| 1041 | async fn webkit_targets( |
| 1042 | Path(udid): Path<String>, |
Callers
nothing calls this directly
Tested by
no test coverage detected