Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleRateLimitOptionsThreshold

Returns a new instance of SecurityPolicyRuleRateLimitOptionsThreshold.



33866
33867
33868
# File 'generated/google/apis/compute_alpha/classes.rb', line 33866

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

Instance Attribute Details

#countFixnum

Number of HTTP(S) requests for calculating the threshold. Corresponds to the JSON property count

Returns:

  • (Fixnum)


33859
33860
33861
# File 'generated/google/apis/compute_alpha/classes.rb', line 33859

def count
  @count
end

#interval_secFixnum

Interval over which the threshold is computed. Corresponds to the JSON property intervalSec

Returns:

  • (Fixnum)


33864
33865
33866
# File 'generated/google/apis/compute_alpha/classes.rb', line 33864

def interval_sec
  @interval_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33871
33872
33873
33874
# File 'generated/google/apis/compute_alpha/classes.rb', line 33871

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @interval_sec = args[:interval_sec] if args.key?(:interval_sec)
end