Class: Google::Apis::ScriptV1::MetricsValue

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

Overview

Metrics value that holds number of executions counted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MetricsValue

Returns a new instance of MetricsValue



831
832
833
# File 'generated/google/apis/script_v1/classes.rb', line 831

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

Instance Attribute Details

#end_timeString

Required field indicating the end time of the interval. Corresponds to the JSON property endTime

Returns:

  • (String)


819
820
821
# File 'generated/google/apis/script_v1/classes.rb', line 819

def end_time
  @end_time
end

#start_timeString

Required field indicating the start time of the interval. Corresponds to the JSON property startTime

Returns:

  • (String)


824
825
826
# File 'generated/google/apis/script_v1/classes.rb', line 824

def start_time
  @start_time
end

#valueFixnum

Indicates the number of executions counted. Corresponds to the JSON property value

Returns:

  • (Fixnum)


829
830
831
# File 'generated/google/apis/script_v1/classes.rb', line 829

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
840
# File 'generated/google/apis/script_v1/classes.rb', line 836

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