Class HistorySummary
The metadata associated with the recommendation history and its related resources.
Inherited Members
Namespace: Oci.OptimizerService.Models
Assembly: OCI.DotNetSDK.Optimizer.dll
Syntax
public class HistorySummary
Properties
Action
Declaration
[Required(ErrorMessage = "Action is required.")]
[JsonProperty(PropertyName = "action")]
public Action Action { get; set; }
Property Value
Type | Description |
---|---|
Action |
Remarks
Required
CategoryId
Declaration
[Required(ErrorMessage = "CategoryId is required.")]
[JsonProperty(PropertyName = "categoryId")]
public string CategoryId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique OCID associated with the category. |
Remarks
Required
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment. |
Remarks
Required
CompartmentName
Declaration
[Required(ErrorMessage = "CompartmentName is required.")]
[JsonProperty(PropertyName = "compartmentName")]
public string CompartmentName { get; set; }
Property Value
Type | Description |
---|---|
string | The name assigned to the compartment. |
Remarks
Required
EstimatedCostSaving
Declaration
[Required(ErrorMessage = "EstimatedCostSaving is required.")]
[JsonProperty(PropertyName = "estimatedCostSaving")]
public double EstimatedCostSaving { get; set; }
Property Value
Type | Description |
---|---|
double | The estimated cost savings, in dollars, for the resource action. |
Remarks
Required
ExtendedMetadata
Declaration
[JsonProperty(PropertyName = "extendedMetadata")]
public Dictionary<string, object> ExtendedMetadata { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> | Additional metadata key/value pairs that you provide.
They serve the same purpose and functionality as fields in the |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The unique OCID associated with the recommendation history. |
Remarks
Required
LifecycleState
Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleState? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
LifecycleState? | The recommendation history's current state. |
Remarks
Required
Metadata
Declaration
[JsonProperty(PropertyName = "metadata")]
public Dictionary<string, string> Metadata { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Custom metadata key/value pairs for the resource action.
|
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name assigned to the resource. |
Remarks
Required
RecommendationId
Declaration
[Required(ErrorMessage = "RecommendationId is required.")]
[JsonProperty(PropertyName = "recommendationId")]
public string RecommendationId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique OCID associated with the recommendation. |
Remarks
Required
RecommendationName
Declaration
[Required(ErrorMessage = "RecommendationName is required.")]
[JsonProperty(PropertyName = "recommendationName")]
public string RecommendationName { get; set; }
Property Value
Type | Description |
---|---|
string | The name assigned to the recommendation. |
Remarks
Required
ResourceActionId
Declaration
[Required(ErrorMessage = "ResourceActionId is required.")]
[JsonProperty(PropertyName = "resourceActionId")]
public string ResourceActionId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique OCID associated with the resource action. |
Remarks
Required
ResourceId
Declaration
[Required(ErrorMessage = "ResourceId is required.")]
[JsonProperty(PropertyName = "resourceId")]
public string ResourceId { get; set; }
Property Value
Type | Description |
---|---|
string | The unique OCID associated with the resource. |
Remarks
Required
ResourceType
Declaration
[Required(ErrorMessage = "ResourceType is required.")]
[JsonProperty(PropertyName = "resourceType")]
public string ResourceType { get; set; }
Property Value
Type | Description |
---|---|
string | The kind of resource. |
Remarks
Required
Status
Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Status? Status { get; set; }
Property Value
Type | Description |
---|---|
Status? | The current status of the resource action. |
Remarks
Required
TimeCreated
Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time the recommendation history was created, in the format defined by RFC3339. |