azure_devops/builds/methods/get_definition_metrics.rs
1use super::super::models::BuildMetric;
2use super::super::BuildsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl BuildsClient<'_> {
7 pub async fn get_definition_metrics(&self, project: &str, id: i64) -> Result<Vec<BuildMetric>> {
8 self.http
9 .get(&ApiPath::build_definition_metrics(project, id), &[])
10 .await
11 }
12}