Show / Hide Table of Contents

Class DetectorRule

Information for a detector rule (DetectorRule object).

Inheritance
object
DetectorRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.CloudguardService.Models
Assembly: OCI.DotNetSDK.Cloudguard.dll
Syntax
public class DetectorRule

Properties

CandidateResponderRules

Declaration
[JsonProperty(PropertyName = "candidateResponderRules")]
public List<CandidateResponderRule> CandidateResponderRules { get; set; }
Property Value
Type Description
List<CandidateResponderRule>

List of responder rules that could be used to remediate a problem triggered by this detector rule

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

Description for the detector rule

Detector

Declaration
[Required(ErrorMessage = "Detector is required.")]
[JsonProperty(PropertyName = "detector")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DetectorEnum? Detector { get; set; }
Property Value
Type Description
DetectorEnum?

Detector recipe for the rule

Remarks

Required

DetectorDetails

Declaration
[JsonProperty(PropertyName = "detectorDetails")]
public DetectorDetails DetectorDetails { get; set; }
Property Value
Type Description
DetectorDetails

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

Display name for the detector rule

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The unique identifier of the detector rule

Remarks

Required

LifecycleDetails

Declaration
[JsonProperty(PropertyName = "lifecycleDetails")]
public string LifecycleDetails { get; set; }
Property Value
Type Description
string

A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.

LifecycleState

Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleState? LifecycleState { get; set; }
Property Value
Type Description
LifecycleState?

The current state of the detector rule

Locks

Declaration
[JsonProperty(PropertyName = "locks")]
public List<ResourceLock> Locks { get; set; }
Property Value
Type Description
List<ResourceLock>

Locks associated with this resource.

ManagedListTypes

Declaration
[JsonProperty(PropertyName = "managedListTypes", ItemConverterType = typeof(ResponseEnumConverter))]
public List<DetectorRule.ManagedListTypesEnum> ManagedListTypes { get; set; }
Property Value
Type Description
List<DetectorRule.ManagedListTypesEnum>

List of managed list types related to this rule

Recommendation

Declaration
[JsonProperty(PropertyName = "recommendation")]
public string Recommendation { get; set; }
Property Value
Type Description
string

Recommendation for the detector rule

ResourceType

Declaration
[Required(ErrorMessage = "ResourceType is required.")]
[JsonProperty(PropertyName = "resourceType")]
public string ResourceType { get; set; }
Property Value
Type Description
string

Resource type of the configuration to which the rule is applied

Remarks

Required

ServiceType

Declaration
[Required(ErrorMessage = "ServiceType is required.")]
[JsonProperty(PropertyName = "serviceType")]
public string ServiceType { get; set; }
Property Value
Type Description
string

Service type of the configuration to which the rule is applied

Remarks

Required

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the detector rule was created. Format defined by RFC3339.

TimeUpdated

Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time the detector rule was updated. Format defined by RFC3339.

In this article
Back to top