@@ -44,6 +44,7 @@ const (
44
44
ATTR_CHL_MESSAGES = "messages"
45
45
ATTR_CHL_STATUS = "status"
46
46
ATTR_CHL_STATUS_SQUASH = ATTR_CHL_STATUS + "_squash"
47
+ ATTR_CHL_SUBSTATE = "substate"
47
48
ATTR_CHL_TYPE = "type"
48
49
ATTR_CHL_INSTANCE_TYPE = "instance_type"
49
50
@@ -86,8 +87,12 @@ func ChannelInitAttributes() {
86
87
ChannelStatus .Attributes [attr ] = newStatusAttribute (attr , "Messages (API Calls for SVRCONN)" , ibmmq .MQIACH_MSGS )
87
88
ChannelStatus .Attributes [attr ].delta = true // We have to manage the differences as MQ reports cumulative values
88
89
90
+ // This is decoded by MQCHS_* values
89
91
attr = ATTR_CHL_STATUS
90
92
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 )
91
96
attr = ATTR_CHL_TYPE
92
97
ChannelStatus .Attributes [attr ] = newStatusAttribute (attr , "Channel Type" , ibmmq .MQIACH_CHANNEL_TYPE )
93
98
attr = ATTR_CHL_INSTANCE_TYPE
@@ -103,7 +108,7 @@ func ChannelInitAttributes() {
103
108
104
109
// If we need to list the channels that match a pattern. Not needed for
105
110
// the status queries as they (unlike the pub/sub resource stats) accept
106
- // patterns in the
111
+ // patterns in the PCF command
107
112
func InquireChannels (patterns string ) ([]string , error ) {
108
113
ChannelInitAttributes ()
109
114
return inquireObjects (patterns , ibmmq .MQOT_CHANNEL )
0 commit comments