Class: Google::Apis::ScriptV1::MetricsValue
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::MetricsValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/script_v1/classes.rb,
lib/google/apis/script_v1/representations.rb,
lib/google/apis/script_v1/representations.rb
Overview
Metrics value that holds number of executions counted.
Instance Attribute Summary collapse
-
#end_time ⇒ String
Required field indicating the end time of the interval.
-
#start_time ⇒ String
Required field indicating the start time of the interval.
-
#value ⇒ Fixnum
Indicates the number of executions counted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricsValue
constructor
A new instance of MetricsValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetricsValue
Returns a new instance of MetricsValue.
860 861 862 |
# File 'lib/google/apis/script_v1/classes.rb', line 860 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Required field indicating the end time of the interval.
Corresponds to the JSON property endTime
848 849 850 |
# File 'lib/google/apis/script_v1/classes.rb', line 848 def end_time @end_time end |
#start_time ⇒ String
Required field indicating the start time of the interval.
Corresponds to the JSON property startTime
853 854 855 |
# File 'lib/google/apis/script_v1/classes.rb', line 853 def start_time @start_time end |
#value ⇒ Fixnum
Indicates the number of executions counted.
Corresponds to the JSON property value
858 859 860 |
# File 'lib/google/apis/script_v1/classes.rb', line 858 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
865 866 867 868 869 |
# File 'lib/google/apis/script_v1/classes.rb', line 865 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) @value = args[:value] if args.key?(:value) end |