@@ -44,6 +44,7 @@ const (
4444 ATTR_CHL_MESSAGES = "messages"
4545 ATTR_CHL_STATUS = "status"
4646 ATTR_CHL_STATUS_SQUASH = ATTR_CHL_STATUS + "_squash"
47+ ATTR_CHL_SUBSTATE = "substate"
4748 ATTR_CHL_TYPE = "type"
4849 ATTR_CHL_INSTANCE_TYPE = "instance_type"
4950
@@ -86,8 +87,12 @@ func ChannelInitAttributes() {
8687 ChannelStatus .Attributes [attr ] = newStatusAttribute (attr , "Messages (API Calls for SVRCONN)" , ibmmq .MQIACH_MSGS )
8788 ChannelStatus .Attributes [attr ].delta = true // We have to manage the differences as MQ reports cumulative values
8889
90+ // This is decoded by MQCHS_* values
8991 attr = ATTR_CHL_STATUS
9092 ChannelStatus .Attributes [attr ] = newStatusAttribute (attr , "Channel Status" , ibmmq .MQIACH_CHANNEL_STATUS )
93+ // The next value can be decoded from the MQCHSSTATE_* values
94+ attr = ATTR_CHL_SUBSTATE
95+ ChannelStatus .Attributes [attr ] = newStatusAttribute (attr , "Channel Substate" , ibmmq .MQIACH_CHANNEL_SUBSTATE )
9196 attr = ATTR_CHL_TYPE
9297 ChannelStatus .Attributes [attr ] = newStatusAttribute (attr , "Channel Type" , ibmmq .MQIACH_CHANNEL_TYPE )
9398 attr = ATTR_CHL_INSTANCE_TYPE
@@ -103,7 +108,7 @@ func ChannelInitAttributes() {
103108
104109// If we need to list the channels that match a pattern. Not needed for
105110// the status queries as they (unlike the pub/sub resource stats) accept
106- // patterns in the
111+ // patterns in the PCF command
107112func InquireChannels (patterns string ) ([]string , error ) {
108113 ChannelInitAttributes ()
109114 return inquireObjects (patterns , ibmmq .MQOT_CHANNEL )
0 commit comments