Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Trend

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb

Overview

The trend of a compliance metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1Trend

Returns a new instance of GoogleCloudAssuredworkloadsV1beta1Trend.



1629
1630
1631
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1629

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#durationString

Output only. The duration for the trend. Corresponds to the JSON property duration

Returns:

  • (String)


1621
1622
1623
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1621

def duration
  @duration
end

#value_percentFloat

Output only. The trend value as a percentage. The value can be positive or negative. Corresponds to the JSON property valuePercent

Returns:

  • (Float)


1627
1628
1629
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1627

def value_percent
  @value_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1634
1635
1636
1637
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1634

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @value_percent = args[:value_percent] if args.key?(:value_percent)
end