lib/purecloud/models/campaign_stats.rb in purecloud-0.68.1 vs lib/purecloud/models/campaign_stats.rb in purecloud-0.69.1

- old
+ new

@@ -22,38 +22,50 @@ attr_accessor :contact_rate # Number of available agents not currently being utilized attr_accessor :idle_agents + # Number of effective available agents not currently being utilized + attr_accessor :effective_idle_agents + # Calls per agent adjusted by pace attr_accessor :adjusted_calls_per_agent # Number of campaign calls currently ongoing attr_accessor :outstanding_calls + # Number of campaign calls currently scheduled + attr_accessor :scheduled_calls + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'contact_rate' => :'contactRate', :'idle_agents' => :'idleAgents', + :'effective_idle_agents' => :'effectiveIdleAgents', + :'adjusted_calls_per_agent' => :'adjustedCallsPerAgent', - :'outstanding_calls' => :'outstandingCalls' + :'outstanding_calls' => :'outstandingCalls', + :'scheduled_calls' => :'scheduledCalls' + } end # Attribute type mapping. def self.swagger_types { :'contact_rate' => :'ConnectRate', :'idle_agents' => :'Integer', + :'effective_idle_agents' => :'Float', :'adjusted_calls_per_agent' => :'Float', - :'outstanding_calls' => :'Integer' + :'outstanding_calls' => :'Integer', + :'scheduled_calls' => :'Integer' } end def initialize(attributes = {}) @@ -69,37 +81,47 @@ if attributes[:'idleAgents'] self.idle_agents = attributes[:'idleAgents'] end + if attributes[:'effectiveIdleAgents'] + self.effective_idle_agents = attributes[:'effectiveIdleAgents'] + end + if attributes[:'adjustedCallsPerAgent'] self.adjusted_calls_per_agent = attributes[:'adjustedCallsPerAgent'] end if attributes[:'outstandingCalls'] self.outstanding_calls = attributes[:'outstandingCalls'] end + if attributes[:'scheduledCalls'] + self.scheduled_calls = attributes[:'scheduledCalls'] + end + end # Check equality by comparing each attribute. def ==(o) return true if self.equal?(o) self.class == o.class && contact_rate == o.contact_rate && idle_agents == o.idle_agents && + effective_idle_agents == o.effective_idle_agents && adjusted_calls_per_agent == o.adjusted_calls_per_agent && - outstanding_calls == o.outstanding_calls + outstanding_calls == o.outstanding_calls && + scheduled_calls == o.scheduled_calls end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [contact_rate, idle_agents, adjusted_calls_per_agent, outstanding_calls].hash + [contact_rate, idle_agents, effective_idle_agents, adjusted_calls_per_agent, outstanding_calls, scheduled_calls].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)