Class: Google::Apis::ScriptV1::Metrics
- Inherits:
-
Object
- Object
- Google::Apis::ScriptV1::Metrics
- 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
Resource containing usage stats for a given script, based on the supplied filter and mask present in the request.
Instance Attribute Summary collapse
-
#active_users ⇒ Array<Google::Apis::ScriptV1::MetricsValue>
Number of active users.
-
#failed_executions ⇒ Array<Google::Apis::ScriptV1::MetricsValue>
Number of failed executions.
-
#total_executions ⇒ Array<Google::Apis::ScriptV1::MetricsValue>
Number of total executions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Metrics
constructor
A new instance of Metrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Metrics
Returns a new instance of Metrics.
824 825 826 |
# File 'lib/google/apis/script_v1/classes.rb', line 824 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_users ⇒ Array<Google::Apis::ScriptV1::MetricsValue>
Number of active users.
Corresponds to the JSON property activeUsers
812 813 814 |
# File 'lib/google/apis/script_v1/classes.rb', line 812 def active_users @active_users end |
#failed_executions ⇒ Array<Google::Apis::ScriptV1::MetricsValue>
Number of failed executions.
Corresponds to the JSON property failedExecutions
817 818 819 |
# File 'lib/google/apis/script_v1/classes.rb', line 817 def failed_executions @failed_executions end |
#total_executions ⇒ Array<Google::Apis::ScriptV1::MetricsValue>
Number of total executions.
Corresponds to the JSON property totalExecutions
822 823 824 |
# File 'lib/google/apis/script_v1/classes.rb', line 822 def total_executions @total_executions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
829 830 831 832 833 |
# File 'lib/google/apis/script_v1/classes.rb', line 829 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 |