blob: 0437634c688cc909519d4bf3d9bb63aeb1713b3a [file] [log] [blame]
#ifndef OPENOLT_STATS_COLLECTION_H_
#define OPENOLT_STATS_COLLECTION_H_
#include <openolt.grpc.pb.h>
extern "C"
{
#include <bal_model_types.h>
}
#define COLLECTION_PERIOD 15
void init_stats();
void stop_collecting_statistics();
openolt::PortStatistics* get_default_port_statistics();
openolt::PortStatistics* collectPortStatistics(int intf_id, bcmbal_intf_type intf_type);
#if 0
openolt::FlowStatistics* get_default_flow_statistics();
openolt::FlowStatistics* collectFlowStatistics(bcmbal_flow_id flow_id, bcmbal_flow_type flow_type);
#endif
void* stats_collection();
void register_new_flow(bcmbal_flow_key key);
#endif