#-*-perl-*-
#
# $Id: Accounting.in,v 37.1 2011/03/10 20:41:00 anbrown Exp $
#
# (c) 2011 Morgan Stanley & Co. Incorporated
# See ..../src/LICENSE for terms of distribution.
#

package MQSeries::Message::Accounting;

#
# errata:
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13570_.htm
#   page says MQCAMO_CONNECTION_NAME
#   cmqcfc.h says MQCACH_CONNECTION_NAME
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13590_.htm
#   page does not list MQIAMO_GENERATED_MSGS (aka GeneratedMsgs)
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13590_.htm
#   page says QDefinitionType but we use DefinitionType for consistency
#
# http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13570_.htm
#  page says ConnName but we use ConnectionName for consistency
#

%ResponseParameters =
  (
   &MQBACF_CONNECTION_ID                => "ConnectionId",
   &MQCACF_APPL_NAME                    => "ApplicationName",
   &MQCACF_USER_IDENTIFIER              => "UserId",
   &MQCACH_CHANNEL_NAME                 => "ChannelName",
   &MQCACH_CONNECTION_NAME              => "ConnectionName",
   &MQCAMO_CLOSE_DATE                   => "CloseDate",
   &MQCAMO_CLOSE_TIME                   => "CloseTime",
   &MQCAMO_CONN_DATE                    => "ConnDate",
   &MQCAMO_CONN_TIME                    => "ConnTime",
   &MQCAMO_DISC_DATE                    => "DiscDate",
   &MQCAMO_DISC_TIME                    => "DiscTime",
   &MQCAMO_END_DATE                     => "IntervalEndDate",
   &MQCAMO_END_TIME                     => "IntervalEndTime",
   &MQCAMO_OPEN_DATE                    => "OpenDate",
   &MQCAMO_OPEN_TIME                    => "OpenTime",
   &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",
   &MQGACF_Q_ACCOUNTING_DATA            => "QAccountingData",
   &MQIACF_PROCESS_ID                   => "ApplicationPid",
   &MQIACF_SEQUENCE_NUMBER              => "SeqNumber",
   &MQIACF_THREAD_ID                    => "ApplicationTid",
   &MQIAMO64_BROWSE_BYTES               => "BrowseBytes",
   &MQIAMO64_GET_BYTES                  => "GetBytes",
   &MQIAMO64_PUT_BYTES                  => "PutBytes",
   &MQIAMO64_TOPIC_PUT_BYTES            => "PutTopicBytes",
   &MQIAMO_BACKOUTS                     => "BackCount",
   &MQIAMO_BROWSES                      => "BrowseCount",
   &MQIAMO_BROWSES_FAILED               => "BrowseFailCount",
   &MQIAMO_BROWSE_MAX_BYTES             => "BrowseMaxBytes",
   &MQIAMO_BROWSE_MIN_BYTES             => "BrowseMinBytes",
   &MQIAMO_CBS                          => "CBCount",
   &MQIAMO_CBS_FAILED                   => "CBFailCount",
   &MQIAMO_CLOSES                       => "CloseCount",
   &MQIAMO_CLOSES_FAILED                => "CloseFailCount",
   &MQIAMO_COMMITS                      => "CommitCount",
   &MQIAMO_COMMITS_FAILED               => "CommitFailCount",
   &MQIAMO_CTLS                         => "CtlCount",
   &MQIAMO_CTLS_FAILED                  => "CtlFailCount",
   &MQIAMO_DISC_TYPE                    => "DiscType",
   &MQIAMO_GENERATED_MSGS               => "GeneratedMsgs",
   &MQIAMO_GETS                         => "GetCount",
   &MQIAMO_GETS_FAILED                  => "GetFailCount",
   &MQIAMO_GET_MAX_BYTES                => "GetMaxBytes",
   &MQIAMO_GET_MIN_BYTES                => "GetMinBytes",
   &MQIAMO_INQS                         => "InqCount",
   &MQIAMO_INQS_FAILED                  => "InqFailCount",
   &MQIAMO_OBJECT_COUNT                 => "ObjectCount",
   &MQIAMO_OPENS                        => "OpenCount",
   &MQIAMO_OPENS_FAILED                 => "OpenFailCount",
   &MQIAMO_PUT1S                        => "Put1Count",
   &MQIAMO_PUT1S_FAILED                 => "Put1FailCount",
   &MQIAMO_PUTS                         => "PutCount",
   &MQIAMO_PUTS_FAILED                  => "PutFailCount",
   &MQIAMO_PUT_MAX_BYTES                => "PutMaxBytes",
   &MQIAMO_PUT_MIN_BYTES                => "PutMinBytes",
   &MQIAMO_Q_TIME_AVG                   => "TimeOnQAvg",
   &MQIAMO_Q_TIME_MAX                   => "TimeOnQMax",
   &MQIAMO_Q_TIME_MIN                   => "TimeOnQMin",
   &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_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;
