TSG-14890 TFE输出Intercept Policy Hits Metrics
This commit is contained in:
@@ -101,8 +101,12 @@ enum tfe_cmsg_tlv_type
|
||||
TFE_CMSG_FQDN_CAT_ID_NUM, // unsigned int
|
||||
TFE_CMSG_FQDN_CAT_ID_VAL, // max size 8 * sizeof(unsigned int)
|
||||
|
||||
TFE_CMSG_COMMON_DIRECTION,
|
||||
// according to KNI -> MESA_dir_link_to_human()
|
||||
// 'E' or 'e': 表示发包方向是从Internal to External.
|
||||
// 'I' or 'i': 表示发包方向是从External to Internal.
|
||||
TFE_CMSG_COMMON_DIRECTION, // unsigned int
|
||||
TFE_CMSG_SSL_PASSTHROUGH_REASON, // string max size 32
|
||||
TFE_CMSG_POLICY_VSYS_ID, // unsigned int
|
||||
/* Add new cmsg here */
|
||||
/* Add new cmsg here */
|
||||
/* Add new cmsg here */
|
||||
|
||||
@@ -38,6 +38,7 @@ struct tfe_fieldstat_metric_t
|
||||
struct fieldstat_dynamic_instance *instance;
|
||||
};
|
||||
|
||||
void tfe_set_intercept_metric(struct tfe_stream *stream, int hit_count, int downstream_rx_pkts, int downstream_rx_bytes, int upstream_rx_pkts, int upstream_rx_bytes);
|
||||
int tfe_fieldstat_metric_incrby(struct tfe_fieldstat_metric_t *fieldstat, unsigned int column_id, long long value, const struct fieldstat_tag tags[], int thread_id);
|
||||
struct tfe_fieldstat_metric_t *tfe_fieldstat_metric_create(char *telegraf_ip, int telegraf_port, char *app_name, int cycle, int max_thread, void *local_logger);
|
||||
void tfe_fieldstat_metric_destroy(struct tfe_fieldstat_metric_t *fieldstat);
|
||||
|
||||
Reference in New Issue
Block a user