pub struct XrayData {
pub groups: BTreeMap<String, Value>,
pub sampling_rules: BTreeMap<String, Value>,
pub encryption_config: Option<Value>,
pub resource_policies: BTreeMap<String, Value>,
pub trace_segment_destination: String,
pub traces: BTreeMap<String, Vec<StoredSegment>>,
pub retrievals: BTreeMap<String, Value>,
pub tags: BTreeMap<String, BTreeMap<String, String>>,
}Expand description
Per-account AWS X-Ray state.
Fields§
§groups: BTreeMap<String, Value>Groups keyed by GroupName, stored as their Group wire object.
sampling_rules: BTreeMap<String, Value>Sampling rules keyed by RuleName, stored as their SamplingRuleRecord
wire object.
encryption_config: Option<Value>The account EncryptionConfig wire object, once PutEncryptionConfig
has set it; None means the default (Type: NONE).
resource_policies: BTreeMap<String, Value>Resource policies keyed by PolicyName, stored as their ResourcePolicy
wire object.
trace_segment_destination: StringThe trace-segment destination (XRay or CloudWatchLogs).
traces: BTreeMap<String, Vec<StoredSegment>>Ingested trace segments keyed by trace id.
retrievals: BTreeMap<String, Value>Active trace retrievals (Transaction Search) keyed by retrieval token,
each { "TraceIds": [...], "StartTime": .., "EndTime": .. }.
Tags keyed by resource ARN (groups + sampling rules).
Trait Implementations§
Source§impl AccountState for XrayData
impl AccountState for XrayData
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 XrayData
impl<'de> Deserialize<'de> for XrayData
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 XrayData
impl RefUnwindSafe for XrayData
impl Send for XrayData
impl Sync for XrayData
impl Unpin for XrayData
impl UnsafeUnpin for XrayData
impl UnwindSafe for XrayData
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