class OodCore::Job::Adapters::Kubernetes::Resources::TCPProbe
Attributes
failure_threshold[RW]
initial_delay_seconds[RW]
period_seconds[RW]
port[RW]
Public Class Methods
new(port, data)
click to toggle source
# File lib/ood_core/job/adapters/kubernetes/resources.rb, line 39 def initialize(port, data) data ||= {} @port = port @initial_delay_seconds = data[:initial_delay_seconds] || 2 @failure_threshold = data[:failure_threshold] || 5 @period_seconds = data[:period_seconds] || 5 end
Public Instance Methods
to_h()
click to toggle source
# File lib/ood_core/job/adapters/kubernetes/resources.rb, line 47 def to_h { port: port, initial_delay_seconds: initial_delay_seconds, failure_threshold: failure_threshold, period_seconds: period_seconds, } end