Class: Google::Apis::GmailpostmastertoolsV1beta1::DeliveryError

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

Overview

Metric on a particular delivery error type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeliveryError

Returns a new instance of DeliveryError.



44
45
46
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 44

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

Instance Attribute Details

#error_classString

The class of delivery error. Corresponds to the JSON property errorClass

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 32

def error_class
  @error_class
end

#error_ratioFloat

The ratio of messages where the error occurred vs all authenticated traffic. Corresponds to the JSON property errorRatio

Returns:

  • (Float)


37
38
39
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 37

def error_ratio
  @error_ratio
end

#error_typeString

The type of delivery error. Corresponds to the JSON property errorType

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 42

def error_type
  @error_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
53
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 49

def update!(**args)
  @error_class = args[:error_class] if args.key?(:error_class)
  @error_ratio = args[:error_ratio] if args.key?(:error_ratio)
  @error_type = args[:error_type] if args.key?(:error_type)
end