Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Trend

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

Overview

The trend of a compliance metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1Trend

Returns a new instance of GoogleCloudAssuredworkloadsV1Trend.



1655
1656
1657
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1655

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)


1647
1648
1649
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1647

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)


1653
1654
1655
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1653

def value_percent
  @value_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1660
1661
1662
1663
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1660

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