Struct google_api_proto::google::cloud::securityposture::v1::CustomConfig
source · pub struct CustomConfig {
pub predicate: Option<Expr>,
pub custom_output: Option<CustomOutputSpec>,
pub resource_selector: Option<ResourceSelector>,
pub severity: i32,
pub description: String,
pub recommendation: String,
}
Expand description
Defines the properties in a custom module configuration for Security Health Analytics. Use the custom module configuration to create custom detectors that generate custom findings for resources that you specify.
Fields§
§predicate: Option<Expr>
Required. The CEL expression to evaluate to produce findings. When the expression evaluates to true against a resource, a finding is generated.
custom_output: Option<CustomOutputSpec>
Optional. Custom output properties.
resource_selector: Option<ResourceSelector>
Required. The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
severity: i32
Required. The severity to assign to findings generated by the module.
description: String
Optional. Text that describes the vulnerability or misconfiguration that the custom module detects. This explanation is returned with each finding instance to help investigators understand the detected issue. The text must be enclosed in quotation marks.
recommendation: String
Optional. An explanation of the recommended steps that security teams can
take to resolve the detected issue. This explanation is returned with each
finding generated by this module in the nextSteps
property of the finding
JSON.
Implementations§
source§impl CustomConfig
impl CustomConfig
Trait Implementations§
source§impl Clone for CustomConfig
impl Clone for CustomConfig
source§fn clone(&self) -> CustomConfig
fn clone(&self) -> CustomConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CustomConfig
impl Debug for CustomConfig
source§impl Default for CustomConfig
impl Default for CustomConfig
source§impl Message for CustomConfig
impl Message for CustomConfig
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 CustomConfig
impl PartialEq for CustomConfig
source§fn eq(&self, other: &CustomConfig) -> bool
fn eq(&self, other: &CustomConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CustomConfig
Auto Trait Implementations§
impl Freeze for CustomConfig
impl RefUnwindSafe for CustomConfig
impl Send for CustomConfig
impl Sync for CustomConfig
impl Unpin for CustomConfig
impl UnwindSafe for CustomConfig
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