pub struct GetCostsQuery {
pub window: Option<CostWindow>,
pub pipeline: Option<String>,
}Expand description
query parameters for getCosts.
Fields§
§window: Option<CostWindow>The period to total over. Defaults to the last 30 days.
Note that today and month_to_date are calendar windows and the rest are rolling ones.
A rolling window is the same length everywhere; a calendar one begins at local
midnight and therefore depends on where the Tower is standing. The response says
which zone was used, so the figure can be read without having to guess.
pipeline: Option<String>Narrow the totals, the per-agent and the per-model breakdowns to one workflow.
reserve is deliberately unaffected. The Reserve caps the whole factory, so reporting
it against one workflow’s spend would describe a rail that does not exist.
Trait Implementations§
Source§impl Clone for GetCostsQuery
impl Clone for GetCostsQuery
Source§impl Debug for GetCostsQuery
impl Debug for GetCostsQuery
Source§impl<'de> Deserialize<'de> for GetCostsQuery
impl<'de> Deserialize<'de> for GetCostsQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetCostsQuery
impl PartialEq for GetCostsQuery
Source§impl Serialize for GetCostsQuery
impl Serialize for GetCostsQuery
impl StructuralPartialEq for GetCostsQuery
Auto Trait Implementations§
impl Freeze for GetCostsQuery
impl RefUnwindSafe for GetCostsQuery
impl Send for GetCostsQuery
impl Sync for GetCostsQuery
impl Unpin for GetCostsQuery
impl UnsafeUnpin for GetCostsQuery
impl UnwindSafe for GetCostsQuery
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