MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_logs

Method get_logs

ct_monitor/src/main.rs:307–314  ·  view source on GitHub ↗
(&self, count: u32)

Source from the content-addressed store, hash-verified

305 }
306
307 async fn get_logs(&self, count: u32) -> Result<Vec<CTLog>> {
308 let url = format!(
309 "{}/?q={}&output=json&limit={}",
310 BASE_URL, self.base_domain, count
311 );
312 let response = reqwest::get(&url).await?;
313 Ok(response.json().await?)
314 }
315
316 async fn check_one_log(&self, log: &CTLog) -> Result<()> {
317 let cert_url = format!("{}/?d={}", BASE_URL, log.id);

Callers 1

check_new_logsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected