diff options
| author | liuxueli <[email protected]> | 2021-08-14 16:22:10 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2021-08-14 16:22:10 +0800 |
| commit | 97ea56eb8688c92283ed87df3dd2cd2de4c5bcff (patch) | |
| tree | 31cc57d22b0f74f56b315bf3b2724fa01185bdf8 /src/entry/Maat_api.cpp | |
| parent | 50934de91dfb60353432499d3783d99195df7a04 (diff) | |
TSG-7066: 支持--prefix参数安装,支持查看changelog
TSG-7390: 支持输出扫描状态到prometheus
Diffstat (limited to 'src/entry/Maat_api.cpp')
| -rw-r--r-- | src/entry/Maat_api.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/entry/Maat_api.cpp b/src/entry/Maat_api.cpp index ecdf880..798edea 100644 --- a/src/entry/Maat_api.cpp +++ b/src/entry/Maat_api.cpp @@ -671,7 +671,14 @@ int Maat_set_feather_opt(Maat_feather_t feather,enum MAAT_INIT_OPT type,const vo } _feather->garbage_collection_timeout_ms=intval; break; - + case MAAT_OPT_STATUS_OUTPUT_PROMETHEUS: + intval=*(const int*)value; + if(size!=sizeof(int)||intval<0) + { + return -1; + } + _feather->output_prometheus=intval; + break; case MAAT_OPT_JSON_IS_GZIPPED: intval=*(const int*)value; if(size!=sizeof(int)||intval<0) |
