Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Trend
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1Trend
- 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
-
#duration ⇒ String
Output only.
-
#value_percent ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1Trend
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1Trend.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#duration ⇒ String
Output only. The duration for the trend.
Corresponds to the JSON property duration
1621 1622 1623 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 1621 def duration @duration end |
#value_percent ⇒ Float
Output only. The trend value as a percentage. The value can be positive or
negative.
Corresponds to the JSON property valuePercent
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 |