gstorage.h (goaccess-1.7) | : | gstorage.h (goaccess-1.7.1) | ||
---|---|---|---|---|
/** | /** | |||
* ______ ___ | * ______ ___ | |||
* / ____/___ / | _____________ __________ | * / ____/___ / | _____________ __________ | |||
* / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ | * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ | |||
* / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) | * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) | |||
* \____/\____/_/ |_\___/\___/\___/____/____/ | * \____/\____/_/ |_\___/\___/\___/____/____/ | |||
* | * | |||
* The MIT License (MIT) | * The MIT License (MIT) | |||
* Copyright (c) 2009-2022 Gerardo Orellana <hello @ goaccess.io> | * Copyright (c) 2009-2023 Gerardo Orellana <hello @ goaccess.io> | |||
* | * | |||
* Permission is hereby granted, free of charge, to any person obtaining a copy | * Permission is hereby granted, free of charge, to any person obtaining a copy | |||
* of this software and associated documentation files (the "Software"), to deal | * of this software and associated documentation files (the "Software"), to deal | |||
* in the Software without restriction, including without limitation the rights | * in the Software without restriction, including without limitation the rights | |||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
* copies of the Software, and to permit persons to whom the Software is | * copies of the Software, and to permit persons to whom the Software is | |||
* furnished to do so, subject to the following conditions: | * furnished to do so, subject to the following conditions: | |||
* | * | |||
* The above copyright notice and this permission notice shall be included in al l | * The above copyright notice and this permission notice shall be included in al l | |||
* copies or substantial portions of the Software. | * copies or substantial portions of the Software. | |||
skipping to change at line 36 | skipping to change at line 36 | |||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
* SOFTWARE. | * SOFTWARE. | |||
*/ | */ | |||
#ifndef GSTORAGE_H_INCLUDED | #ifndef GSTORAGE_H_INCLUDED | |||
#define GSTORAGE_H_INCLUDED | #define GSTORAGE_H_INCLUDED | |||
#include "commons.h" | #include "commons.h" | |||
#include "parser.h" | #include "parser.h" | |||
/* Total number of storage metrics (GSMetric) */ | ||||
#define GSMTRC_TOTAL 19 | ||||
#define DB_PATH "/tmp" | #define DB_PATH "/tmp" | |||
/* Enumerated Storage Metrics */ | ||||
typedef enum GSMetric_ { | ||||
MTRC_KEYMAP, | ||||
MTRC_ROOTMAP, | ||||
MTRC_DATAMAP, | ||||
MTRC_UNIQMAP, | ||||
MTRC_ROOT, | ||||
MTRC_HITS, | ||||
MTRC_VISITORS, | ||||
MTRC_BW, | ||||
MTRC_CUMTS, | ||||
MTRC_MAXTS, | ||||
MTRC_METHODS, | ||||
MTRC_PROTOCOLS, | ||||
MTRC_AGENTS, | ||||
MTRC_METADATA, | ||||
MTRC_UNIQUE_KEYS, | ||||
MTRC_AGENT_KEYS, | ||||
MTRC_AGENT_VALS, | ||||
MTRC_CNT_VALID, | ||||
MTRC_CNT_BW, | ||||
} GSMetric; | ||||
#define GAMTRC_TOTAL 8 | #define GAMTRC_TOTAL 8 | |||
/* Enumerated App Metrics */ | /* Enumerated App Metrics */ | |||
typedef enum GAMetric_ { | typedef enum GAMetric_ { | |||
MTRC_DATES, | MTRC_DATES, | |||
MTRC_SEQS, | MTRC_SEQS, | |||
MTRC_CNT_OVERALL, | MTRC_CNT_OVERALL, | |||
MTRC_HOSTNAMES, | MTRC_HOSTNAMES, | |||
MTRC_LAST_PARSE, | MTRC_LAST_PARSE, | |||
MTRC_JSON_LOGFMT, | MTRC_JSON_LOGFMT, | |||
MTRC_METH_PROTO, | MTRC_METH_PROTO, | |||
End of changes. 3 change blocks. | ||||
26 lines changed or deleted | 1 lines changed or added |