zeek/src/WeirdState.h
Tim Wojtulewicz fd5e15b116 The Great Embooleanating
A large number of functions had return values and/or arguments changed
to use ``bool`` types instead of ``int``.
2020-03-31 06:41:54 +00:00

17 lines
431 B
C++

// See the file "COPYING" in the main distribution directory for copyright.
#pragma once
#include <string>
#include <unordered_map>
struct WeirdState {
WeirdState() = default;
uint64_t count = 0;
double sampling_start_time = 0;
};
using WeirdStateMap = std::unordered_map<std::string, WeirdState>;
bool PermitWeird(WeirdStateMap& wsm, const char* name, uint64_t threshold,
uint64_t rate, double duration);