TWITTERPROXY-MIB DEFINITIONS ::= BEGIN
 
IMPORTS
	OBJECT-TYPE, MODULE-IDENTITY, Integer32, TimeTicks, Unsigned32
		FROM SNMPv2-SMI
 
	DisplayString, DateAndTime, TruthValue
		FROM SNMPv2-TC
 
	inconcertAgents
		FROM INCONCERT-MIB;
 
twitterproxy 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
		"Twitter Proxy is a distributed server that manages twitter accounts."
	REVISION	"201111301500Z"
	DESCRIPTION
		"Initial published revision."
	::= { inconcertAgents 23 }
 
-- twitterproxyVersion

twitterproxyVersion                       OBJECT IDENTIFIER ::= { twitterproxy 1 }

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

twitterproxyConfiguration                 OBJECT IDENTIFIER ::= { twitterproxy 2 }

twitterproxyUpTime OBJECT-TYPE
	SYNTAX		TimeTicks
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Time ticks since this Twitter Proxy was started."
	::= { twitterproxyConfiguration 1 }
 
twitterproxyPid OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The process id of the running Twitter Proxy process."
	::= { twitterproxyConfiguration 2 }
 
twitterproxyPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"The port on which the Twitter Proxy listens for connections."
	::= { twitterproxyConfiguration 3 }
 
twitterproxyThreads OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of process threads."
	::= { twitterproxyConfiguration 4 }

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

twitterproxyMemoryUsage	 OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Memory in use by the process."
	::= { twitterproxyConfiguration 6 }


-- twitterproxyInformation

twitterproxyInformation                       OBJECT IDENTIFIER ::= { twitterproxy 3 }

twitterproxyTotalIncomingTweets OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total tweets received by the proxy since started"
	::= { twitterproxyInformation 1 }

twitterproxyTotalOutgoingTweets OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total tweets sent by the proxy since started"
	::= { twitterproxyInformation 2 }


twitterproxyMinuteIncomingTweets OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total tweets received by the proxy in the last minute"
	::= { twitterproxyInformation 3 }


twitterproxyMinuteOutgoingTweets OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total tweets sent by the proxy in the last minute"
	::= { twitterproxyInformation 4 }


twitterproxyTotalAPIFailures OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"How many times the twitter REST API failed on us since the proxy was started"
	::= { twitterproxyInformation 5}


twitterproxyTotalStreamReconnects OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total times a reconnect was needed against twitter stream API since the proxy was started"
	::= { twitterproxyInformation 6 }


twitterproxyMinuteAPIFailures OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"How many times the twitter REST API failed on us in the last minute"
	::= { twitterproxyInformation 7 }

twitterproxyMinuteStreamReconnects OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total times a reconnect was needed against twitter stream API in the last minute"
	::= { twitterproxyInformation 8 }


twitterproxyActiveAccounts OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total accounts being checked with no problems"
	::= { twitterproxyInformation 9 }


twitterproxyFailedAccounts OBJECT-TYPE
	SYNTAX		Integer32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Total accounts being checked having some problem"
	::= { twitterproxyInformation 10}


twitterproxyTotalFailedRedisRequests OBJECT-TYPE
		SYNTAX		Integer32
		MAX-ACCESS	read-only
		STATUS		current
		DESCRIPTION
			"Total redis request failed"
		::= { twitterproxyInformation 11}

-- twitterproxyNetwork

twitterproxyNetwork                       OBJECT IDENTIFIER ::= { twitterproxy 4 }

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

twitterproxySiblingTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF TwitterproxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the fellow Twitter Proxies on the cluster."
	::= { twitterproxyNetwork 2 }

twitterproxySiblingEntry OBJECT-TYPE
	SYNTAX		TwitterproxySiblingEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a fellow Twitter Proxy."
	INDEX	{ twitterproxySiblingAddress }
	::= { twitterproxySiblingTable 1 }
 
twitterproxySiblingAddress OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Address (IP:port) of the sibling."
	::= { twitterproxySiblingEntry 1 }

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

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

TwitterproxySiblingEntry ::= SEQUENCE {
	twitterproxySiblingAddress    DisplayString,
	twitterproxySiblingIP         DisplayString,
	twitterproxySiblingPort       Unsigned32
}

-- Known interaction routers

twitterproxyIRTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF TwitterproxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with details of the Interaction Routers connected to the Twitter Proxy."
	::= { twitterproxy 5 }

twitterproxyIREntry OBJECT-TYPE
	SYNTAX		TwitterproxyIREntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a known proxy."
	INDEX	{ twitterproxyIRIndex }
	::= { twitterproxyIRTable 1 }
 
TwitterproxyIREntry ::= SEQUENCE {
	twitterproxyIRIndex      Unsigned32,
	twitterproxyIRIP         DisplayString,
	twitterproxyIRPort       Unsigned32,
	twitterproxyIRStatus     DisplayString
}

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

twitterproxyIRIP OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"IP of the proxy."
	::= { twitterproxyIREntry 2 }

twitterproxyIRPort OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Port of the proxy."
	::= { twitterproxyIREntry 3 }

twitterproxyIRStatus OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Connection status of the proxy."
	::= { twitterproxyIREntry 4 }

-- Running accounts

twitterproxyAccountTable OBJECT-TYPE
	SYNTAX		SEQUENCE OF TwitterproxyAccountEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Table with the accounts that this Twitter Proxy is handling."
	::= { twitterproxy 6 }

twitterproxyAccountEntry OBJECT-TYPE
	SYNTAX		TwitterproxyAccountEntry
	MAX-ACCESS	not-accessible
	STATUS		current
	DESCRIPTION
		"Details of a account running on a Twitter Proxy."
	INDEX	{ twitterproxyAccountCampaign, twitterproxyAccountID }
	::= { twitterproxyAccountTable 1 }
 
twitterproxyAccountCampaign OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Campaign to which the account is assigned."
	::= { twitterproxyAccountEntry 1 }

twitterproxyAccountID OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"ID of the account."
	::= { twitterproxyAccountEntry 2 }

twitterproxyAccountUser OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Username used to connect to the account."
	::= { twitterproxyAccountEntry 3 }

twitterproxyAccountIncomingTweets OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of tweets received on this node for this account since it was managed here."
	::= { twitterproxyAccountEntry 4 }

twitterproxyAccountOutgoingTweets OBJECT-TYPE
	SYNTAX		Unsigned32
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Number of tweets sent from this node for this account since it was managed here."
	::= { twitterproxyAccountEntry 5 }

twitterproxyAccountStatus OBJECT-TYPE
	SYNTAX		DisplayString
	MAX-ACCESS	read-only
	STATUS		current
	DESCRIPTION
		"Status of the account"
	::= { twitterproxyAccountEntry 6 }

TwitterproxyAccountEntry ::= SEQUENCE {
	twitterproxyAccountCampaign             DisplayString,
	twitterproxyAccountID                   DisplayString,
	twitterproxyAccountUser                 DisplayString,
	twitterproxyAccountIncomingTweets		    Unsigned32,
	twitterproxyAccountOutgoingTweets		    Unsigned32,
	twitterproxyAccountStatus               DisplayString
}

END


