#-*-perl-*-
#
# $Id: Statistics.in,v 37.4 2012/03/02 21:04:43 anbrown Exp $
#
# (c) 2011 Morgan Stanley & Co. Incorporated
# See ..../src/LICENSE for terms of distribution.
#

package MQSeries::Message::Statistics;

#
# errata:
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13650_.htm
#   page says MQIAMO_AVG_BATCHE_SIZE
#   cmqcfc.h says MQIAMO_AVG_BATCH_SIZE
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13610_.htm
#   page says MQIAMO_PUBLISH_MSG_BYTES
#   cmqcfc.h says MQIAMO64_PUBLISH_MSG_BYTES
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13630_.htm
#   page does not list MQIAMO_GENERATED_MSGS (aka GeneratedMsgs)
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13630_.htm
#   page says QDefinitionType but we use DefinitionType for consistency
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13610_.htm
#   page says "Description: MQIAMO_UNSUBS_FAILED" and "Identifier:
#   MQIAMO_UNSUBS_NDUR".  you figure it out.
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13610_.htm
#   page says nothing about MQIAMO_SUBRQS, but a v7 qmgr sends them to
#   me
#

%ResponseParameters =
  (
   &MQCACH_CHANNEL_NAME                 => "ChannelName",
   &MQCACH_CONNECTION_NAME              => "ConnectionName",
   &MQCAMO_END_DATE                     => "IntervalEndDate",
   &MQCAMO_END_TIME                     => "IntervalEndTime",
   &MQCAMO_START_DATE                   => "IntervalStartDate",
   &MQCAMO_START_TIME                   => "IntervalStartTime",
   &MQCA_CREATION_DATE                  => "CreateDate",
   &MQCA_CREATION_TIME                  => "CreateTime",
   &MQCA_Q_MGR_NAME                     => "QueueManager",
   &MQCA_Q_NAME                         => "QName",
   &MQCA_REMOTE_Q_MGR_NAME              => "RemoteQMgrName",
   &MQGACF_CHL_STATISTICS_DATA          => "ChlStatisticsData",
   &MQGACF_Q_STATISTICS_DATA            => "QStatisticsData",
   &MQIACH_CHANNEL_TYPE                 => [ "ChannelType", {
       &MQCHT_CLNTCONN                      => "Clntconn",
       &MQCHT_CLUSRCVR                      => "ClusterReceiver",
       &MQCHT_CLUSSDR                       => "ClusterSender",
       &MQCHT_RECEIVER                      => "Receiver",
       &MQCHT_REQUESTER                     => "Requester",
       &MQCHT_SENDER                        => "Sender",
       &MQCHT_SERVER                        => "Server",
       &MQCHT_SVRCONN                       => "Svrconn",
       }, ],
   &MQIAMO64_BROWSE_BYTES               => "BrowseBytes",
   &MQIAMO64_BYTES                      => "TotalBytes",
   &MQIAMO64_GET_BYTES                  => "GetBytes",
   &MQIAMO64_PUBLISH_MSG_BYTES          => "PublishMsgBytes",
   &MQIAMO64_PUT_BYTES                  => "PutBytes",
   &MQIAMO64_TOPIC_PUT_BYTES            => "PutTopicBytes",
   &MQIAMO_AVG_BATCH_SIZE               => "AverageBatchSize",
   &MQIAMO_AVG_Q_TIME                   => "AvgTimeOnQ",
   &MQIAMO_BACKOUTS                     => "BackCount",
   &MQIAMO_BROWSES                      => "BrowseCount",
   &MQIAMO_BROWSES_FAILED               => "BrowseFailCount",
   &MQIAMO_CBS                          => "CBCount",
   &MQIAMO_CBS_FAILED                   => "CBFailCount",
   &MQIAMO_CLOSES                       => "CloseCount",
   &MQIAMO_CLOSES_FAILED                => "CloseFailCount",
   &MQIAMO_COMMITS                      => "CommitCount",
   &MQIAMO_COMMITS_FAILED               => "CommitFailCount",
   &MQIAMO_CONNS                        => "ConnCount",
   &MQIAMO_CONNS_FAILED                 => "ConnFailCount",
   &MQIAMO_CONNS_MAX                    => "ConnsMax",
   &MQIAMO_CTLS                         => "CtlCount",
   &MQIAMO_CTLS_FAILED                  => "CtlFailCount",
   &MQIAMO_DISCS                        => "DiscCount",
   &MQIAMO_EXIT_TIME_AVG                => "ExitTimeAvg",
   &MQIAMO_EXIT_TIME_MAX                => "ExitTimeMax",
   &MQIAMO_EXIT_TIME_MIN                => "ExitTimeMin",
   &MQIAMO_FULL_BATCHES                 => "FullBatchCount",
   &MQIAMO_GENERATED_MSGS               => "GeneratedMsgs",
   &MQIAMO_GETS                         => "GetCount",
   &MQIAMO_GETS_FAILED                  => "GetFailCount",
   &MQIAMO_INCOMPLETE_BATCHES           => "IncmplBatchCount",
   &MQIAMO_INQS                         => "InqCount",
   &MQIAMO_INQS_FAILED                  => "InqFailCount",
   &MQIAMO_MSGS                         => "MsgCount",
   &MQIAMO_MSGS_EXPIRED                 => "ExpiredMsgCount",
   &MQIAMO_MSGS_NOT_QUEUED              => "NonQueuedMsgCount",
   &MQIAMO_MSGS_PURGED                  => "PurgeCount",
   &MQIAMO_NET_TIME_AVG                 => "NetTimeAvg",
   &MQIAMO_NET_TIME_MAX                 => "NetTimeMax",
   &MQIAMO_NET_TIME_MIN                 => "NetTimeMin",
   &MQIAMO_OBJECT_COUNT                 => "ObjectCount",
   &MQIAMO_OPENS                        => "OpenCount",
   &MQIAMO_OPENS_FAILED                 => "OpenFailCount",
   &MQIAMO_PUBLISH_MSG_COUNT            => "PublishMsgCount",
   &MQIAMO_PUT1S                        => "Put1Count",
   &MQIAMO_PUT1S_FAILED                 => "Put1FailCount",
   &MQIAMO_PUTS                         => "PutCount",
   &MQIAMO_PUTS_FAILED                  => "PutFailCount",
   &MQIAMO_PUT_RETRIES                  => "PutRetryCount",
   &MQIAMO_Q_MAX_DEPTH                  => "QMaxDepth",
   &MQIAMO_Q_MIN_DEPTH                  => "QMinDepth",
   &MQIAMO_SETS                         => "SetCount",
   &MQIAMO_SETS_FAILED                  => "SetFailCount",
   &MQIAMO_STATS                        => "StatCount",
   &MQIAMO_STATS_FAILED                 => "StatFailCount",
   &MQIAMO_SUBRQS                       => "SubRqCount",
   &MQIAMO_SUBRQS_FAILED                => "SubRqFailCount",
   &MQIAMO_SUBS_DUR                     => "SubCountDur",
   &MQIAMO_SUBS_FAILED                  => "SubFailCount",
   &MQIAMO_SUBS_NDUR                    => "SubCountNDur",
   &MQIAMO_SUB_DUR_HIGHWATER            => "SubCountDurHighWater",
   &MQIAMO_SUB_DUR_LOWWATER             => "SubCountDurLowWater",
   &MQIAMO_SUB_NDUR_HIGHWATER           => "SubCountNDurHighWater",
   &MQIAMO_SUB_NDUR_LOWWATER            => "SubCountNDurLowWater",
   &MQIAMO_TOPIC_PUT1S                  => "Put1TopicCount",
   &MQIAMO_TOPIC_PUT1S_FAILED           => "Put1TopicFailCount",
   &MQIAMO_TOPIC_PUTS                   => "PutTopicCount",
   &MQIAMO_TOPIC_PUTS_FAILED            => "PutTopicFailCount",
   &MQIAMO_UNSUBS_DUR                   => "UnsubCountDur",
   &MQIAMO_UNSUBS_FAILED                => "UnsubFailCount",
   &MQIAMO_UNSUBS_NDUR                  => "UnsubCountNDur",
   &MQIA_COMMAND_LEVEL                  => "CommandLevel",
   &MQIA_DEFINITION_TYPE                => [ "DefinitionType", {
       &MQQDT_PERMANENT_DYNAMIC             => "Permanent",
       &MQQDT_PREDEFINED                    => "Predefined",
       &MQQDT_TEMPORARY_DYNAMIC             => "Temporary",
       }, ],
   &MQIA_Q_TYPE                         => [ "QType", {
       &MQQT_ALIAS                          => "Alias",
       &MQQT_CLUSTER                        => "Cluster",
       &MQQT_LOCAL                          => "Local",
       &MQQT_MODEL                          => "Model",
       &MQQT_REMOTE                         => "Remote",
       }, ],
  );

1;
