updates telemetry to no longer use grpc
This commit is contained in:
@@ -7,6 +7,7 @@ use serde::Deserialize;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use tokio::time::timeout;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[get("/tlm/info/{name:[\\w\\d/_-]+}")]
|
||||
pub(super) async fn get_tlm_definition(
|
||||
@@ -36,13 +37,17 @@ struct HistoryQuery {
|
||||
resolution: i64,
|
||||
}
|
||||
|
||||
#[get("/tlm/history/{uuid:[0-9a-f]+}")]
|
||||
#[get("/tlm/history/{uuid:[0-9a-f-]+}")]
|
||||
pub(super) async fn get_tlm_history(
|
||||
data_arc: web::Data<Arc<TelemetryManagementService>>,
|
||||
uuid: web::Path<String>,
|
||||
info: web::Query<HistoryQuery>,
|
||||
) -> Result<impl Responder, HttpServerResultError> {
|
||||
let uuid = uuid.to_string();
|
||||
let Ok(uuid) = Uuid::parse_str(&uuid) else {
|
||||
return Err(HttpServerResultError::InvalidUuid {
|
||||
uuid: uuid.to_string(),
|
||||
});
|
||||
};
|
||||
trace!(
|
||||
"get_tlm_history {} from {} to {} resolution {}",
|
||||
uuid,
|
||||
|
||||
Reference in New Issue
Block a user