diff options
| author | fengweihao <[email protected]> | 2024-10-30 16:26:38 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2024-10-30 16:26:38 +0800 |
| commit | 2b7d35c5c837cdf54f117d280a682057665123bf (patch) | |
| tree | 6d00ef718610e2667422c842d5c007077762b97c /common | |
| parent | edd0209fcd2efe2ebb45719b6facc3f4de74467f (diff) | |
TSG-23072 Change the Policies-Manipulation log field from proxy_rule_list to proxy_rule_uuid_listv4.10.6-20241030
TSG-23090 Change the action field in the Metric structure proxy_rule_hits to the string type
Diffstat (limited to 'common')
| -rw-r--r-- | common/src/tfe_fieldstat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/tfe_fieldstat.cpp b/common/src/tfe_fieldstat.cpp index e63e94c..8af2ee0 100644 --- a/common/src/tfe_fieldstat.cpp +++ b/common/src/tfe_fieldstat.cpp @@ -110,7 +110,7 @@ int tfe_fieldstat_intercept_incrby(struct fieldstat_easy_intercept *metrics, voi nr_tags++; } // action : 2 Intercept; 3 No Intercept - FIELDSTAT_TAG_INIT(tags, nr_tags, "action", FIELD_VALUE_INTEGER, (hit_no_intercept == 1 ? 3 : 2)); + FIELDSTAT_TAG_STR(tags, nr_tags, "action", FIELD_VALUE_CSTRING, (hit_no_intercept == 1 ? "no_intercept" : "intercept")); nr_tags++; if (hit_count > 0) @@ -216,7 +216,7 @@ struct fieldstat_easy_intercept *tfe_fieldstat_easy_intercept_create(char *app_n struct filedstat_easy_manipulation *tfe_fieldstat_easy_manipulation_create(char *app_name, char *outpath, int cycle, int max_thread, void *local_logger) { const char *counter_field[COLUMN_MAX] = {"hit_count", "in_bytes", "out_bytes", "in_pkts", "out_pkts"}; - struct field metric_tags[TAG_MAX - 1] = {{"vsys_id", FIELD_VALUE_INTEGER, -1}, {"rule_uuid", FIELD_VALUE_CSTRING, -1}, {"action", FIELD_VALUE_INTEGER, -1}, {"sub_action", FIELD_VALUE_CSTRING, -1}}; + struct field metric_tags[TAG_MAX - 1] = {{"vsys_id", FIELD_VALUE_INTEGER, -1}, {"rule_uuid", FIELD_VALUE_CSTRING, -1}, {"action", FIELD_VALUE_CSTRING, -1}, {"sub_action", FIELD_VALUE_CSTRING, -1}}; struct filedstat_easy_manipulation *fieldstat = ALLOC(struct filedstat_easy_manipulation, 1); |
