Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::LikelihoodAdjustment.
Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#fixed_likelihood
def fixed_likelihood() -> ::Google::Cloud::Dlp::V2::Likelihood-
(::Google::Cloud::Dlp::V2::Likelihood) — Set the likelihood of a finding to a fixed value.
Note: The following fields are mutually exclusive:
fixed_likelihood,relative_likelihood. If a field in that set is populated, all other fields in the set will automatically be cleared.
#fixed_likelihood=
def fixed_likelihood=(value) -> ::Google::Cloud::Dlp::V2::Likelihood-
value (::Google::Cloud::Dlp::V2::Likelihood) — Set the likelihood of a finding to a fixed value.
Note: The following fields are mutually exclusive:
fixed_likelihood,relative_likelihood. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dlp::V2::Likelihood) — Set the likelihood of a finding to a fixed value.
Note: The following fields are mutually exclusive:
fixed_likelihood,relative_likelihood. If a field in that set is populated, all other fields in the set will automatically be cleared.
#relative_likelihood
def relative_likelihood() -> ::Integer-
(::Integer) — Increase or decrease the likelihood by the specified number of
levels. For example, if a finding would be
POSSIBLEwithout the detection rule andrelative_likelihoodis 1, then it is upgraded toLIKELY, while a value of -1 would downgrade it toUNLIKELY. Likelihood may never drop belowVERY_UNLIKELYor exceedVERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood isVERY_LIKELYwill result in a final likelihood ofLIKELY.Note: The following fields are mutually exclusive:
relative_likelihood,fixed_likelihood. If a field in that set is populated, all other fields in the set will automatically be cleared.
#relative_likelihood=
def relative_likelihood=(value) -> ::Integer-
value (::Integer) — Increase or decrease the likelihood by the specified number of
levels. For example, if a finding would be
POSSIBLEwithout the detection rule andrelative_likelihoodis 1, then it is upgraded toLIKELY, while a value of -1 would downgrade it toUNLIKELY. Likelihood may never drop belowVERY_UNLIKELYor exceedVERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood isVERY_LIKELYwill result in a final likelihood ofLIKELY.Note: The following fields are mutually exclusive:
relative_likelihood,fixed_likelihood. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Integer) — Increase or decrease the likelihood by the specified number of
levels. For example, if a finding would be
POSSIBLEwithout the detection rule andrelative_likelihoodis 1, then it is upgraded toLIKELY, while a value of -1 would downgrade it toUNLIKELY. Likelihood may never drop belowVERY_UNLIKELYor exceedVERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood isVERY_LIKELYwill result in a final likelihood ofLIKELY.Note: The following fields are mutually exclusive:
relative_likelihood,fixed_likelihood. If a field in that set is populated, all other fields in the set will automatically be cleared.