pub struct ObservedResourceSample {Show 20 fields
pub alien_resource_id: Option<String>,
pub attributes: HashMap<String, Value>,
pub collection_issues: Vec<HeartbeatCollectionIssue>,
pub counts: Option<ObservedCounts>,
pub deployment_id: Option<String>,
pub display_name: String,
pub health: ObservedHealth,
pub labels: HashMap<String, String>,
pub lifecycle: ProviderLifecycleState,
pub message: Option<String>,
pub namespace: Option<String>,
pub partial: bool,
pub provider_kind: String,
pub provider_stale: bool,
pub raw: Vec<RawHeartbeatSnippet>,
pub raw_identity: String,
pub region: Option<String>,
pub resource_type_hint: Option<ResourceType>,
pub scope: Option<String>,
pub version: Option<String>,
}Expand description
ObservedResourceSample
JSON schema
{
"type": "object",
"required": [
"displayName",
"health",
"lifecycle",
"partial",
"providerKind",
"providerStale",
"rawIdentity"
],
"properties": {
"alienResourceId": {
"type": [
"string",
"null"
]
},
"attributes": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/Value"
}
},
"collectionIssues": {
"type": "array",
"items": {
"$ref": "#/components/schemas/HeartbeatCollectionIssue"
}
},
"counts": {
"$ref": "#/components/schemas/ObservedCounts"
},
"deploymentId": {
"type": [
"string",
"null"
]
},
"displayName": {
"type": "string"
},
"health": {
"$ref": "#/components/schemas/ObservedHealth"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"lifecycle": {
"$ref": "#/components/schemas/ProviderLifecycleState"
},
"message": {
"type": [
"string",
"null"
]
},
"namespace": {
"type": [
"string",
"null"
]
},
"partial": {
"type": "boolean"
},
"providerKind": {
"description": "Provider-native kind, such as `apps/v1/Deployment`,\n`AWS::S3::Bucket`, `storage.googleapis.com/Bucket`, or an Azure\nresource type.",
"type": "string"
},
"providerStale": {
"type": "boolean"
},
"raw": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RawHeartbeatSnippet"
}
},
"rawIdentity": {
"description": "Provider-native stable identity: Kubernetes object identity, cloud ARN,\nGCP full resource name, Azure resource id, etc.",
"type": "string"
},
"region": {
"type": [
"string",
"null"
]
},
"resourceTypeHint": {
"$ref": "#/components/schemas/ResourceType"
},
"scope": {
"type": [
"string",
"null"
]
},
"version": {
"description": "Release/version identity observed from the provider resource, when available.",
"type": [
"string",
"null"
]
}
}
}Fields§
§alien_resource_id: Option<String>§attributes: HashMap<String, Value>§collection_issues: Vec<HeartbeatCollectionIssue>§counts: Option<ObservedCounts>§deployment_id: Option<String>§display_name: String§health: ObservedHealth§labels: HashMap<String, String>§lifecycle: ProviderLifecycleState§message: Option<String>§namespace: Option<String>§partial: bool§provider_kind: StringProvider-native kind, such as apps/v1/Deployment,
AWS::S3::Bucket, storage.googleapis.com/Bucket, or an Azure
resource type.
provider_stale: bool§raw: Vec<RawHeartbeatSnippet>§raw_identity: StringProvider-native stable identity: Kubernetes object identity, cloud ARN, GCP full resource name, Azure resource id, etc.
region: Option<String>§resource_type_hint: Option<ResourceType>§scope: Option<String>§version: Option<String>Release/version identity observed from the provider resource, when available.
Implementations§
Source§impl ObservedResourceSample
impl ObservedResourceSample
pub fn builder() -> ObservedResourceSample
Trait Implementations§
Source§impl Clone for ObservedResourceSample
impl Clone for ObservedResourceSample
Source§fn clone(&self) -> ObservedResourceSample
fn clone(&self) -> ObservedResourceSample
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 ObservedResourceSample
impl Debug for ObservedResourceSample
Source§impl<'de> Deserialize<'de> for ObservedResourceSample
impl<'de> Deserialize<'de> for ObservedResourceSample
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<&ObservedResourceSample> for ObservedResourceSample
impl From<&ObservedResourceSample> for ObservedResourceSample
Source§fn from(value: &ObservedResourceSample) -> Self
fn from(value: &ObservedResourceSample) -> Self
Converts to this type from the input type.
Source§impl From<ObservedResourceSample> for ObservedResourceSample
impl From<ObservedResourceSample> for ObservedResourceSample
Source§fn from(value: ObservedResourceSample) -> Self
fn from(value: ObservedResourceSample) -> Self
Converts to this type from the input type.
Source§impl Serialize for ObservedResourceSample
impl Serialize for ObservedResourceSample
Source§impl TryFrom<ObservedResourceSample> for ObservedResourceSample
impl TryFrom<ObservedResourceSample> for ObservedResourceSample
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ObservedResourceSample) -> Result<Self, ConversionError>
fn try_from(value: ObservedResourceSample) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ObservedResourceSample
impl RefUnwindSafe for ObservedResourceSample
impl Send for ObservedResourceSample
impl Sync for ObservedResourceSample
impl Unpin for ObservedResourceSample
impl UnsafeUnpin for ObservedResourceSample
impl UnwindSafe for ObservedResourceSample
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