Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusStats

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

Overview

Stats for the requested dimensions: QPS, duration, and error/warning rate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusStats

Returns a new instance of EnterpriseCrmEventbusStats.



3529
3530
3531
# File 'lib/google/apis/integrations_v1/classes.rb', line 3529

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

Instance Attribute Details

#dimensionsGoogle::Apis::IntegrationsV1::EnterpriseCrmEventbusStatsDimensions

Dimensions that these stats have been aggregated on. Corresponds to the JSON property dimensions



3507
3508
3509
# File 'lib/google/apis/integrations_v1/classes.rb', line 3507

def dimensions
  @dimensions
end

#duration_in_secondsFloat

Average duration in seconds. Corresponds to the JSON property durationInSeconds

Returns:

  • (Float)


3512
3513
3514
# File 'lib/google/apis/integrations_v1/classes.rb', line 3512

def duration_in_seconds
  @duration_in_seconds
end

#error_rateFloat

Average error rate. Corresponds to the JSON property errorRate

Returns:

  • (Float)


3517
3518
3519
# File 'lib/google/apis/integrations_v1/classes.rb', line 3517

def error_rate
  @error_rate
end

#qpsFloat

Queries per second. Corresponds to the JSON property qps

Returns:

  • (Float)


3522
3523
3524
# File 'lib/google/apis/integrations_v1/classes.rb', line 3522

def qps
  @qps
end

#warning_rateFloat

Average warning rate. Corresponds to the JSON property warningRate

Returns:

  • (Float)


3527
3528
3529
# File 'lib/google/apis/integrations_v1/classes.rb', line 3527

def warning_rate
  @warning_rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3534
3535
3536
3537
3538
3539
3540
# File 'lib/google/apis/integrations_v1/classes.rb', line 3534

def update!(**args)
  @dimensions = args[:dimensions] if args.key?(:dimensions)
  @duration_in_seconds = args[:duration_in_seconds] if args.key?(:duration_in_seconds)
  @error_rate = args[:error_rate] if args.key?(:error_rate)
  @qps = args[:qps] if args.key?(:qps)
  @warning_rate = args[:warning_rate] if args.key?(:warning_rate)
end