Class: Google::Apis::ScriptV1::Metrics

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

Resource containing usage stats for a given script, based on the supplied filter and mask present in the request.

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) ⇒ Metrics

Returns a new instance of Metrics.



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

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

Instance Attribute Details

#active_usersArray<Google::Apis::ScriptV1::MetricsValue>

Number of active users. Corresponds to the JSON property activeUsers



826
827
828
# File 'generated/google/apis/script_v1/classes.rb', line 826

def active_users
  @active_users
end

#failed_executionsArray<Google::Apis::ScriptV1::MetricsValue>

Number of failed executions. Corresponds to the JSON property failedExecutions



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

def failed_executions
  @failed_executions
end

#total_executionsArray<Google::Apis::ScriptV1::MetricsValue>

Number of total executions. Corresponds to the JSON property totalExecutions



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

def total_executions
  @total_executions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



843
844
845
846
847
# File 'generated/google/apis/script_v1/classes.rb', line 843

def update!(**args)
  @active_users = args[:active_users] if args.key?(:active_users)
  @failed_executions = args[:failed_executions] if args.key?(:failed_executions)
  @total_executions = args[:total_executions] if args.key?(:total_executions)
end