Show / Hide Table of Contents

Class Problem

Problems are at the core of Cloud Guard\u2019s functionality. A Problem resource is created whenever an action or a configuration on a resource triggers a rule in a detector that\u2019s attached to the target containing the compartment where the resource is located. Each Problem resource contains all the details for a single problem. This is the information for the problem that appears on the Cloud Guard Problems page.

Inheritance
object
Problem
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 Problem

Properties

AdditionalDetails

Declaration
[JsonProperty(PropertyName = "additionalDetails")]
public Dictionary<string, string> AdditionalDetails { get; set; }
Property Value
Type Description
Dictionary<string, string>

The additional details of the problem

AutoResolveDate

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

The date and time when the problem will be auto resolved. Format defined by RFC3339.

Comment

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

User comments on the problem

CompartmentId

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

Compartment OCID where the resource is created

Remarks

Required

Description

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

Description of the problem

DetectorId

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

Unique identifier of the detector rule that triggered the problem

DetectorRuleId

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

Unique identifier of the detector rule that triggered the problem

Id

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

Unique identifier that can't be changed after creation

Remarks

Required

ImpactedResourceId

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

Unique identifier of the resource impacted by the problem

ImpactedResourceName

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

Display name of the impacted resource

ImpactedResourceType

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

Type of the impacted resource

Labels

Declaration
[JsonProperty(PropertyName = "labels")]
public List<string> Labels { get; set; }
Property Value
Type Description
List<string>

User-defined labels on the problem

LifecycleDetail

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

Additional details on the substate of the lifecycle state

LifecycleState

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

The current lifecycle state of the problem

Locks

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

Locks associated with this resource.

PeakRiskScore

Declaration
[JsonProperty(PropertyName = "peakRiskScore")]
public double PeakRiskScore { get; set; }
Property Value
Type Description
double

Peak risk score for the problem

PeakRiskScoreDate

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

The date and time for the peak risk score that is observed for the problem. Format defined by RFC3339.

PeakRiskScoreLookupPeriodInDays

Declaration
[JsonProperty(PropertyName = "peakRiskScoreLookupPeriodInDays")]
public int? PeakRiskScoreLookupPeriodInDays { get; set; }
Property Value
Type Description
int?

Number of days for which peak score is calculated for the problem

Recommendation

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

Recommendation for the problem

Region

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

DEPRECATED

Regions

Declaration
[JsonProperty(PropertyName = "regions")]
public List<string> Regions { get; set; }
Property Value
Type Description
List<string>

Regions where the problem is found

ResourceId

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

Unique identifier of the resource affected by the problem

ResourceName

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

Display name of the affected resource

ResourceType

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

Type of the affected resource

RiskLevel

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

The risk level for the problem

RiskScore

Declaration
[JsonProperty(PropertyName = "riskScore")]
public double RiskScore { get; set; }
Property Value
Type Description
double

The risk score for the problem

TargetId

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

Unique identifier of the target associated with the problem

TimeFirstDetected

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

The date and time the problem was first detected. Format defined by RFC3339.

TimeLastDetected

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

The date and time the problem was last detected. Format defined by RFC3339.

In this article
Back to top