Skip to content

Commit

Permalink
Add custom metrics macros (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
archigup committed Feb 15, 2021
1 parent 5a85979 commit ce98843
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions source/include/defender.h
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,66 @@ typedef enum
*/
#define DEFENDER_REPORT_LENGTH_PKS_OUT_KEY STRING_LITERAL_LENGTH( DEFENDER_REPORT_LENGTH_PKS_OUT_KEY )

/**
* @ingroup defender_constants
* @brief "custom_metrics" key in the defender report.
*/
#define DEFENDER_REPORT_CUSTOM_METRICS_KEY DEFENDER_REPORT_SELECT_KEY( "custom_metrics", "cmet" )

/**
* @ingroup defender_constants
* @brief Length of the "custom_metrics" key in the defender report.
*/
#define DEFENDER_REPORT_LENGTH_CUSTOM_METRICS_KEY STRING_LITERAL_LENGTH( DEFENDER_REPORT_LENGTH_CUSTOM_METRICS_KEY )

/**
* @ingroup defender_constants
* @brief "number" key in the defender report.
*/
#define DEFENDER_REPORT_NUMBER_KEY "number"

/**
* @ingroup defender_constants
* @brief Length of the "number" key in the defender report.
*/
#define DEFENDER_REPORT_LENGTH_NUMBER_KEY STRING_LITERAL_LENGTH( DEFENDER_REPORT_LENGTH_NUMBER_KEY )

/**
* @ingroup defender_constants
* @brief "number_list" key in the defender report.
*/
#define DEFENDER_REPORT_NUMBER_LIST_KEY "number_list"

/**
* @ingroup defender_constants
* @brief Length of the "number_list" key in the defender report.
*/
#define DEFENDER_REPORT_LENGTH_NUMBER_LIST_KEY STRING_LITERAL_LENGTH( DEFENDER_REPORT_LENGTH_NUMBER_LIST_KEY )

/**
* @ingroup defender_constants
* @brief "string_list" key in the defender report.
*/
#define DEFENDER_REPORT_STRING_LIST_KEY "string_list"

/**
* @ingroup defender_constants
* @brief Length of the "string_list" key in the defender report.
*/
#define DEFENDER_REPORT_LENGTH_STRING_LIST_KEY STRING_LITERAL_LENGTH( DEFENDER_REPORT_LENGTH_STRING_LIST_KEY )

/**
* @ingroup defender_constants
* @brief "ip_list" key in the defender report.
*/
#define DEFENDER_REPORT_IP_LIST_KEY "ip_list"

/**
* @ingroup defender_constants
* @brief Length of the "ip_list" key in the defender report.
*/
#define DEFENDER_REPORT_LENGTH_IP_LIST_KEY STRING_LITERAL_LENGTH( DEFENDER_REPORT_LENGTH_IP_LIST_KEY )

/*-----------------------------------------------------------*/

/**
Expand Down

0 comments on commit ce98843

Please sign in to comment.