Show / Hide Table of Contents

Class MaintenanceWindow

Maintenance Window object. It contains all the information of the Maintenance window. Used in the Create and Get operations.

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

Properties

CompartmentId

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

Compartment Identifier OCID.

Remarks

Required

DefinedTags

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

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}}

Description

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

Maintenance Window description.

FreeformTags

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

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

Id

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

The OCID of maintenance window.

Remarks

Required

LifecycleDetails

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

Lifecycle Details of the Maintenance Window.

LifecycleState

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

Lifecycle state of the monitored resource.

Name

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

Maintenance Window name.

Remarks

Required

Resources

Declaration
[JsonProperty(PropertyName = "resources")]
public List<CreateMaintenanceWindowResourceDetails> Resources { get; set; }
Property Value
Type Description
List<CreateMaintenanceWindowResourceDetails>

List of resource Ids which are part of the Maintenance Window

ResourcesDetails

Declaration
[JsonProperty(PropertyName = "resourcesDetails")]
public List<MonitoredResourceDetails> ResourcesDetails { get; set; }
Property Value
Type Description
List<MonitoredResourceDetails>

List of resource details that are part of the Maintenance Window.

Schedule

Declaration
[JsonProperty(PropertyName = "schedule")]
public MaintenanceWindowSchedule Schedule { get; set; }
Property Value
Type Description
MaintenanceWindowSchedule

SystemTags

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

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}}

TimeCreated

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

The time the the maintenance window was created. An RFC3339 formatted datetime string

TimeUpdated

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

The time the the mainteance window was updated. An RFC3339 formatted datetime string

In this article
Back to top