emqx_auth_pgsql.hrl 382 B

12345678910111213
  1. -define(APP, emqx_auth_pgsql).
  2. -record(auth_metrics, {
  3. success = 'client.auth.success',
  4. failure = 'client.auth.failure',
  5. ignore = 'client.auth.ignore'
  6. }).
  7. -define(METRICS(Type), tl(tuple_to_list(#Type{}))).
  8. -define(METRICS(Type, K), #Type{}#Type.K).
  9. -define(AUTH_METRICS, ?METRICS(auth_metrics)).
  10. -define(AUTH_METRICS(K), ?METRICS(auth_metrics, K)).