Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Trend
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1Trend
- 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
-
#duration ⇒ String
Output only.
-
#value_percent ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1Trend
constructor
A new instance of GoogleCloudAssuredworkloadsV1Trend.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#duration ⇒ String
Output only. The duration for the trend.
Corresponds to the JSON property duration
1647 1648 1649 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1647 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
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 |