pub struct AggregationInput {
pub conditions: Vec<PolicyCondition>,
pub group_by: Vec<AggregationGroupBy>,
pub method: AggregationMethod,
pub metric: AggregationMetric,
pub name: AggregationInputName,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
pub window: AggregationWindow,
}Expand description
Input for creating an aggregation.
JSON schema
{
"title": "AggregationInput",
"description": "Input for creating an aggregation.",
"type": "object",
"required": [
"method",
"metric",
"name",
"window"
],
"properties": {
"conditions": {
"description": "Optional conditions to filter events before
aggregation.",
"default": [],
"type": "array",
"items": {
"$ref": "#/components/schemas/PolicyCondition"
},
"maxItems": 100
},
"group_by": {
"description": "Optional grouping configuration for bucketing
metrics.",
"default": [],
"type": "array",
"items": {
"$ref": "#/components/schemas/AggregationGroupBy"
},
"maxItems": 2
},
"method": {
"$ref": "#/components/schemas/AggregationMethod"
},
"metric": {
"$ref": "#/components/schemas/AggregationMetric"
},
"name": {
"description": "The name of the aggregation.",
"type": "string",
"maxLength": 255,
"minLength": 1
},
"owner": {
"$ref": "#/components/schemas/OwnerInput"
},
"owner_id": {
"$ref": "#/components/schemas/OwnerIdInput"
},
"window": {
"$ref": "#/components/schemas/AggregationWindow"
}
},
"x-stainless-model": "aggregations.aggregation_input"
}Fields§
§conditions: Vec<PolicyCondition>Optional conditions to filter events before aggregation.
group_by: Vec<AggregationGroupBy>Optional grouping configuration for bucketing metrics.
method: AggregationMethod§metric: AggregationMetric§name: AggregationInputNameThe name of the aggregation.
owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>§window: AggregationWindowTrait Implementations§
Source§impl Clone for AggregationInput
impl Clone for AggregationInput
Source§fn clone(&self) -> AggregationInput
fn clone(&self) -> AggregationInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregationInput
impl Debug for AggregationInput
Source§impl<'de> Deserialize<'de> for AggregationInput
impl<'de> Deserialize<'de> for AggregationInput
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 From<&AggregationInput> for AggregationInput
impl From<&AggregationInput> for AggregationInput
Source§fn from(value: &AggregationInput) -> Self
fn from(value: &AggregationInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AggregationInput
impl RefUnwindSafe for AggregationInput
impl Send for AggregationInput
impl Sync for AggregationInput
impl Unpin for AggregationInput
impl UnsafeUnpin for AggregationInput
impl UnwindSafe for AggregationInput
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