pub struct AgentRoleStatsResponse {
pub period: HistoryPeriod,
pub roles: Vec<AgentRoleStatsEntryResponse>,
}Expand description
Cost, executions and failures per agent role over a period, all workflows combined.
§Examples
use ironflow_api::entities::AgentRoleStatsResponse;
use ironflow_store::entities::HistoryPeriod;
let response = AgentRoleStatsResponse {
period: HistoryPeriod::SevenDays,
roles: Vec::new(),
};
assert!(response.roles.is_empty());Fields§
§period: HistoryPeriodThe period that was queried.
roles: Vec<AgentRoleStatsEntryResponse>One entry per role that ran an agent step in the period, sorted by total cost descending, then by role name.
Trait Implementations§
Source§impl Debug for AgentRoleStatsResponse
impl Debug for AgentRoleStatsResponse
Auto Trait Implementations§
impl Freeze for AgentRoleStatsResponse
impl RefUnwindSafe for AgentRoleStatsResponse
impl Send for AgentRoleStatsResponse
impl Sync for AgentRoleStatsResponse
impl Unpin for AgentRoleStatsResponse
impl UnsafeUnpin for AgentRoleStatsResponse
impl UnwindSafe for AgentRoleStatsResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more