Comments (1)
Thanks for the comment.
In MQ, there are two ways of getting the current queue depth, both of which can be extrapolated from examples already in the Go source code. Neither do exactly what you want directly, but if you understand the general MQ API or how PCF operations work, then you can use those pieces as starting points.
-
MQINQ: in mqitest.go, there's code showing how MQINQ is called. The particular example code is opening the qmgr object and getting the qmgr name and a couple of other attributes. For qdepth, you would open a queue object and build a suitable selector array.
-
PCF is the more general interface for administration, as MQINQ can only return a small number of attributes for an object. In mqmetric/discover.go there's code showing how to make a PCF query, get a response and parse it. The code here is doing INQUIRE_Q_NAMES, but could just as easily be INQUIRE_Q_STATUS to get the depth.
What I'm hoping is that people can read the MQ documentation, for example on PCF programming, and use that general material as the basis of any further PCF operations using the Go interface. The principles don't change, only the detailed spelling for each operation and its parameters.
The mqmetric package is not the right place to add more general admin code; I intended that specifically to work with the published resource statistics. But I might consider adding fragments to another package or perhaps as simple commands (or _test functions) later; and of course there's always the opportunity for other people to contribute examples if they want.
from mq-golang.
Related Issues (20)
- 'keyRepoPasswordPtr' undeclared HOT 2
- Getting the Application Data in Messages
- Listing MQ Queues and which Clusters they belong to ? HOT 4
- CCDTurl in http and ftp format throwing MQRC_NOT_AUTHORIZED [2035] HOT 5
- Don`t connect to server. "MQCONNX: MQCC = MQCC_FAILED [2] MQRC = MQRC_CONNECTION_BROKEN [2009] HOT 7
- Not sharing Session when multi connecting to an SSL channel HOT 5
- Grafana and Prometheus IBM MQ metric for total messages count. HOT 1
- What types of key repositories work with this library? HOT 1
- Is same kdb store used for client certs and server certs? HOT 1
- How to utilize mqclient.ini HOT 1
- feat: Queue stops and queue-to-pageset mapping HOT 2
- MQ Client SDK for ARM64 HOT 1
- Manual message acknowledge HOT 1
- User HOT 4
- Concurrency issue with Inq: concurrent map writes HOT 1
- After using MQGMO_ACCEPT_TRUNCATED_MSG option getting message with data length 0 HOT 5
- errorCode=2539, reason=MQRC_CHANNEL_CONFIG_ERROR #172
- LIBC Incompatible HOT 2
- getReplies in amqspcf.go sample doesn't support messages bigger than the buffer HOT 2
- errors while compiling cross platform from Linux to Windows HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mq-golang.