pub struct LogsState {Show 22 fields
pub account_id: String,
pub region: String,
pub log_groups: BTreeMap<String, LogGroup>,
pub metric_filters: Vec<MetricFilter>,
pub resource_policies: BTreeMap<String, ResourcePolicy>,
pub destinations: BTreeMap<String, Destination>,
pub queries: BTreeMap<String, QueryInfo>,
pub export_tasks: Vec<ExportTask>,
pub delivery_destinations: BTreeMap<String, DeliveryDestination>,
pub delivery_sources: BTreeMap<String, DeliverySource>,
pub deliveries: BTreeMap<String, Delivery>,
pub query_definitions: BTreeMap<String, QueryDefinition>,
pub account_policies: BTreeMap<(String, String), AccountPolicy>,
pub anomaly_detectors: BTreeMap<String, AnomalyDetector>,
pub import_tasks: BTreeMap<String, ImportTask>,
pub integrations: BTreeMap<String, Integration>,
pub lookup_tables: BTreeMap<String, LookupTable>,
pub scheduled_queries: BTreeMap<String, ScheduledQuery>,
pub s3_table_sources: BTreeMap<String, Vec<String>>,
pub bearer_token_auth: BTreeMap<String, bool>,
pub export_storage: BTreeMap<String, Vec<u8>>,
pub anomalies: BTreeMap<String, LogAnomaly>,
}Fields§
§account_id: String§region: String§log_groups: BTreeMap<String, LogGroup>§metric_filters: Vec<MetricFilter>§resource_policies: BTreeMap<String, ResourcePolicy>§destinations: BTreeMap<String, Destination>§queries: BTreeMap<String, QueryInfo>§export_tasks: Vec<ExportTask>§delivery_destinations: BTreeMap<String, DeliveryDestination>§delivery_sources: BTreeMap<String, DeliverySource>§deliveries: BTreeMap<String, Delivery>§query_definitions: BTreeMap<String, QueryDefinition>§account_policies: BTreeMap<(String, String), AccountPolicy>Account policies keyed by (policy_name, policy_type)
anomaly_detectors: BTreeMap<String, AnomalyDetector>Anomaly detectors keyed by detector ARN
import_tasks: BTreeMap<String, ImportTask>Import tasks keyed by import ID
integrations: BTreeMap<String, Integration>Integrations keyed by integration name
lookup_tables: BTreeMap<String, LookupTable>Lookup tables keyed by ARN
scheduled_queries: BTreeMap<String, ScheduledQuery>Scheduled queries keyed by identifier (ARN)
s3_table_sources: BTreeMap<String, Vec<String>>S3 table integration sources keyed by integration ARN -> list of source identifiers
bearer_token_auth: BTreeMap<String, bool>Bearer token authentication flag per log group
export_storage: BTreeMap<String, Vec<u8>>Internal export storage: keyed by “bucket/prefix/…” path, value is exported data. Used by CreateExportTask and delivery pipeline when direct S3 access is unavailable.
anomalies: BTreeMap<String, LogAnomaly>Detected log anomalies keyed by anomaly id. Populated via the
/_fakecloud/logs/anomalies/inject admin endpoint and surfaced
through ListAnomalies / UpdateAnomaly.
Implementations§
Trait Implementations§
Source§impl AccountState for LogsState
impl AccountState for LogsState
Source§fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
fn new_for_account(account_id: &str, region: &str, _endpoint: &str) -> Self
Create a fresh, empty state for the given account.
Source§fn inherit_from(&mut self, _sibling: &Self)
fn inherit_from(&mut self, _sibling: &Self)
Called after a new account state is created via
MultiAccountState::get_or_create,
with a reference to an existing sibling state. Services can override
this to propagate shared resources (e.g. body caches) to the new state.Source§impl<'de> Deserialize<'de> for LogsState
impl<'de> Deserialize<'de> for LogsState
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
Auto Trait Implementations§
impl Freeze for LogsState
impl RefUnwindSafe for LogsState
impl Send for LogsState
impl Sync for LogsState
impl Unpin for LogsState
impl UnsafeUnpin for LogsState
impl UnwindSafe for LogsState
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