Struct google_api_proto::google::cloud::assuredworkloads::v1::Violation
source · pub struct Violation {Show 14 fields
pub name: String,
pub description: String,
pub begin_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub resolve_time: Option<Timestamp>,
pub category: String,
pub state: i32,
pub org_policy_constraint: String,
pub audit_log_link: String,
pub non_compliant_org_policy: String,
pub remediation: Option<Remediation>,
pub acknowledged: bool,
pub acknowledgement_time: Option<Timestamp>,
pub exception_audit_log_link: String,
}
Expand description
Workload monitoring Violation.
Fields§
§name: String
Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
description: String
Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
begin_time: Option<Timestamp>
Output only. Time of the event which triggered the Violation.
update_time: Option<Timestamp>
Output only. The last time when the Violation record was updated.
resolve_time: Option<Timestamp>
Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
category: String
Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
state: i32
Output only. State of the violation
org_policy_constraint: String
Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
audit_log_link: String
Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
non_compliant_org_policy: String
Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
remediation: Option<Remediation>
Output only. Compliance violation remediation
acknowledged: bool
Output only. A boolean that indicates if the violation is acknowledged
acknowledgement_time: Option<Timestamp>
Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.
exception_audit_log_link: String
Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
Implementations§
Trait Implementations§
source§impl Message for Violation
impl Message for Violation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Violation
impl PartialEq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnwindSafe for Violation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request