Class: DatadogAPIClient::V2::FleetScheduleAttributes

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

Overview

Attributes of a schedule in the response.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



58
59
60
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 58

def additional_properties
  @additional_properties
end

#created_at_unixObject

Unix timestamp (seconds since epoch) when the schedule was created.



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

def created_at_unix
  @created_at_unix
end

#created_byObject

User handle of the person who created the schedule.



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

def created_by
  @created_by
end

#nameObject

Human-readable name for the schedule.



31
32
33
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 31

def name
  @name
end

#queryObject

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



34
35
36
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 34

def query
  @query
end

#ruleObject

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



38
39
40
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 38

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.


43
44
45
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 43

def status
  @status
end

#updated_at_unixObject

Unix timestamp (seconds since epoch) when the schedule was last updated.



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

def updated_at_unix
  @updated_at_unix
end

#updated_byObject

User handle of the person who last updated the schedule.



49
50
51
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 49

def updated_by
  @updated_by
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.


56
57
58
# File 'lib/datadog_api_client/v2/models/fleet_schedule_attributes.rb', line 56

def version_to_latest
  @version_to_latest
end