WHATSAPPPROXY-MIB DEFINITIONS ::= BEGIN

IMPORTS
	OBJECT-TYPE, MODULE-IDENTITY, Integer32, TimeTicks, Unsigned32
		FROM SNMPv2-SMI

	DisplayString, DateAndTime, TruthValue
		FROM SNMPv2-TC

	inconcertAgents
		FROM INCONCERT-MIB;

whatsappproxy MODULE-IDENTITY
	LAST-UPDATED	"201111301500Z"
	ORGANIZATION	"inConcert Corporation"
	CONTACT-INFO
		"Guillermo Winkler
		Postal: inConcert Corporation
		        8 de Octubre 2297
		        Montevideo
		        Uruguay
		   Tel: +598 99 691341
		 Email: gwinkler@inconcertcc.com"
	DESCRIPTION
		"WHATSAPP Proxy is a distributed server that manages WHATSAPP accounts."
	REVISION	"201111301500Z"
	DESCRIPTION
		"Initial published revision."
	::= { inconcertAgents 13 }

whatsappproxyVersion                       OBJECT IDENTIFIER ::= { whatsappproxy 1 }
whatsappproxyConfiguration                 OBJECT IDENTIFIER ::= { whatsappproxy 2 }
whatsappproxyNetwork                       OBJECT IDENTIFIER ::= { whatsappproxy 3 }
whatsappproxyInformation                   OBJECT IDENTIFIER ::= { whatsappproxy 4 }


-- whatsappproxyVersionString
whatsappproxyVersionString OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Text version string of the version of WHATSAPP Proxy that
		the SNMP Agent was compiled to run against."
	::= { whatsappproxyVersion 1 }

-- whatsappproxyConfiguration

whatsappproxyUpTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Time ticks since this WHATSAPP Proxy was started."
	::= { whatsappproxyConfiguration 1 }

whatsappproxyPid OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The process id of the running WHATSAPP Proxy process."
	::= { whatsappproxyConfiguration 2 }

whatsappproxyPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The port on which the WHATSAPP Proxy listens for connections."
	::= { whatsappproxyConfiguration 3 }

whatsappproxyThreads OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process threads."
	::= { whatsappproxyConfiguration 4 }

whatsappproxyHandles	 OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process handles."
	::= { whatsappproxyConfiguration 5 }

-- whatsappproxyNetwork

whatsappproxyCluster OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Cluster of which the WHATSAPP Proxy is part."
	::= { whatsappproxyNetwork 1 }

whatsappproxySiblingTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF WHATSAPPProxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the fellow WHATSAPP Proxies on the cluster."
	::= { whatsappproxyNetwork 2 }

whatsappproxySiblingEntry OBJECT-TYPE
	SYNTAX		WHATSAPPProxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a fellow WHATSAPP Proxy."
	INDEX	{ whatsappproxySiblingAddress }
	::= { whatsappproxySiblingTable 1 }

whatsappproxySiblingAddress OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Address (IP:port) of the sibling."
	::= { whatsappproxySiblingEntry 1 }

whatsappproxySiblingIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the sibling."
	::= { whatsappproxySiblingEntry 2 }

whatsappproxySiblingPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the sibling."
	::= { whatsappproxySiblingEntry 3 }

WHATSAPPProxySiblingEntry ::= SEQUENCE {
	whatsappproxySiblingAddress    DisplayString,
	whatsappproxySiblingIP         DisplayString,
	whatsappproxySiblingPort       Unsigned32
}

whatsappproxyIRTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF WHATSAPPProxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the Interaction Routers connected to the WHATSAPP Proxy."
	::= { whatsappproxyNetwork 3 }

whatsappproxyIREntry OBJECT-TYPE
	SYNTAX		WHATSAPPProxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a known IR."
	INDEX	{ whatsappproxyIRIndex }
	::= { whatsappproxyIRTable 1 }

whatsappproxyIRIndex OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Index table."
	::= { whatsappproxyIREntry 1 }

whatsappproxyIRIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the IR."
	::= { whatsappproxyIREntry 2 }

whatsappproxyIRPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the IR."
	::= { whatsappproxyIREntry 3 }

whatsappproxyIRStatus OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Connection status of the IR."
	::= { whatsappproxyIREntry 4 }

WHATSAPPProxyIREntry ::= SEQUENCE {
	whatsappproxyIRIndex      Unsigned32,
	whatsappproxyIRIP         DisplayString,
	whatsappproxyIRPort       Unsigned32,
	whatsappproxyIRStatus     DisplayString
}

-- whatsappproxyInformation

whatsappproxyBoundAccounts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number bound (connected) accounts."
	::= { whatsappproxyInformation 1 }

whatsappproxyOfflineAccounts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of accounts wich bind failed."
	::= { whatsappproxyInformation 2 }

whatsappproxyIncomingMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total count of incoming messages successfully handled by the system"
	::= { whatsappproxyInformation 3 }

whatsappproxyOutgoingMessages OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total count of outgoing messages successfully sent"
	::= { whatsappproxyInformation 4 }

whatsappproxyLastSentTexts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of WHATSAPP sent in the last minute."
	::= { whatsappproxyInformation 5 }

whatsappproxyLastReceivedTexts OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of WHATSAPP received in the last minute."
	::= { whatsappproxyInformation 6 }

whatsappproxyActiveConversations OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of currently active conversations."
	::= { whatsappproxyInformation 7 }

whatsappproxyIVRConversations OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of conversations currently in IVR."
	::= { whatsappproxyInformation 8 }

whatsappproxyAssignedConversations OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of conversations being attended by an agent."
	::= { whatsappproxyInformation 9 }

whatsappproxySMPPTotalIncoming OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Count of DELIVER_SM requests handled by this system,
		includes those who ended up being successful and those who didn't."
	::= { whatsappproxyInformation 10 }

whatsappproxySMPPTotalOutgoing OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of SUBMIT_SM request sent by this system"
	::= { whatsappproxyInformation 11 }

whatsappproxySMPPTotalBinds OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of BIND requests sent by this system"
	::= { whatsappproxyInformation 12 }

whatsappproxySMPPLastBinds OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of BIND requests sent in the last 20 minutes"
	::= { whatsappproxyInformation 13 }

whatsappproxySMPPLastConnectionErrors OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of SMPP connection erros in the last 20 minutes"
	::= { whatsappproxyInformation 14 }

-- whatsappproxyInformation/Active conversations

whatsappproxyConversationTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF WHATSAPPProxyConversationEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with the conversations that this WHATSAPP Proxy is handling."
	::= { whatsappproxyInformation 15 }

whatsappproxyConversationEntry OBJECT-TYPE
	SYNTAX		WHATSAPPProxyConversationEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a conversation running on an WHATSAPP Proxy."
	INDEX	{ whatsappproxyConversationID }
	::= { whatsappproxyConversationTable 1 }

whatsappproxyConversationID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the conversation."
	::= { whatsappproxyConversationEntry 1 }

whatsappproxyConversationTimestamp OBJECT-TYPE
	SYNTAX		DateAndTime
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Timestamp of the last change in the conversation."
	::= { whatsappproxyConversationEntry 2 }

whatsappproxyConversationSessionID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the chatserver session."
	::= { whatsappproxyConversationEntry 3 }

whatsappproxyConversationSessionParticipants OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Participants of the chatserver session."
	::= { whatsappproxyConversationEntry 4 }

whatsappproxyConversationSessionProperties OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Properties of the chatserver session."
	::= { whatsappproxyConversationEntry 5 }

whatsappproxyConversationClientNumber OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Client number associated with this conversation."
	::= { whatsappproxyConversationEntry 6 }

whatsappproxyConversationAccountNumber OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"WHATSAPP account number of this conversation."
	::= { whatsappproxyConversationEntry 7 }

whatsappproxyConversationAccountId OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"WHATSAPP account id of this conversation."
	::= { whatsappproxyConversationEntry 8 }

WHATSAPPProxyConversationEntry ::= SEQUENCE {
	whatsappproxyConversationID                   DisplayString,
	whatsappproxyConversationTimestamp            DateAndTime,
	whatsappproxyConversationSessionID            DisplayString,
	whatsappproxyConversationSessionParticipants  DisplayString,
	whatsappproxyConversationSessionProperties    DisplayString,
	whatsappproxyConversationClientNumber         DisplayString,
	whatsappproxyConversationAccountNumber        DisplayString,
	whatsappproxyConversationAccountId            DisplayString,
}

END

