emqx_channel.hrl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. %%--------------------------------------------------------------------
  2. %% Copyright (c) 2017-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
  3. %%
  4. %% Licensed under the Apache License, Version 2.0 (the "License");
  5. %% you may not use this file except in compliance with the License.
  6. %% You may obtain a copy of the License at
  7. %%
  8. %% http://www.apache.org/licenses/LICENSE-2.0
  9. %%
  10. %% Unless required by applicable law or agreed to in writing, software
  11. %% distributed under the License is distributed on an "AS IS" BASIS,
  12. %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. %% See the License for the specific language governing permissions and
  14. %% limitations under the License.
  15. %%--------------------------------------------------------------------
  16. -define(CHANNEL_METRICS, [
  17. recv_pkt,
  18. recv_msg,
  19. 'recv_msg.qos0',
  20. 'recv_msg.qos1',
  21. 'recv_msg.qos2',
  22. 'recv_msg.dropped',
  23. 'recv_msg.dropped.await_pubrel_timeout',
  24. send_pkt,
  25. send_msg,
  26. 'send_msg.qos0',
  27. 'send_msg.qos1',
  28. 'send_msg.qos2',
  29. 'send_msg.dropped',
  30. 'send_msg.dropped.expired',
  31. 'send_msg.dropped.queue_full',
  32. 'send_msg.dropped.too_large'
  33. ]).
  34. -define(INFO_KEYS, [
  35. conninfo,
  36. conn_state,
  37. clientinfo,
  38. session,
  39. will_msg
  40. ]).
  41. -define(EXPIRE_INTERVAL_INFINITE, 4294967295000).