Class: DatadogAPIClient::V2::FleetSchedulePatchAttributes

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb

Overview

Attributes for partially updating a schedule. All fields are optional.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



46
47
48
# File 'lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb', line 46

def additional_properties
  @additional_properties
end

#nameObject

Human-readable name for the schedule.



25
26
27
# File 'lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb', line 25

def name
  @name
end

#queryObject

Query used to filter and select target hosts for scheduled deployments. Uses the Datadog query syntax.



28
29
30
# File 'lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb', line 28

def query
  @query
end

#ruleObject

Defines the recurrence pattern for the schedule. Specifies when deployments should be automatically triggered based on maintenance windows.



32
33
34
# File 'lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb', line 32

def rule
  @rule
end

#statusObject

The status of the schedule.

  • active: The schedule is active and will create deployments according to its recurrence rule.
  • inactive: The schedule is inactive and will not create any deployments.


37
38
39
# File 'lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb', line 37

def status
  @status
end

#version_to_latestObject

Number of major versions behind the latest to target for upgrades.

  • 0: Always upgrade to the latest version
  • 1: Upgrade to latest minus 1 major version
  • 2: Upgrade to latest minus 2 major versions Maximum value is 2.


44
45
46
# File 'lib/datadog_api_client/v2/models/fleet_schedule_patch_attributes.rb', line 44

def version_to_latest
  @version_to_latest
end