blob: 0437634c688cc909519d4bf3d9bb63aeb1713b3a [file] [log] [blame]
Nicolas Palpacuer0f19b1a2018-06-07 17:29:31 -04001#ifndef OPENOLT_STATS_COLLECTION_H_
2#define OPENOLT_STATS_COLLECTION_H_
3
4#include <openolt.grpc.pb.h>
5
6extern "C"
7{
8#include <bal_model_types.h>
9}
10
Shad Ansariedef2132018-08-10 22:14:50 +000011#define COLLECTION_PERIOD 15
12
13void init_stats();
Nicolas Palpacuer0f19b1a2018-06-07 17:29:31 -040014void stop_collecting_statistics();
15openolt::PortStatistics* get_default_port_statistics();
16openolt::PortStatistics* collectPortStatistics(int intf_id, bcmbal_intf_type intf_type);
Shad Ansaricb004c52018-05-30 18:07:23 +000017#if 0
Nicolas Palpacuer0f19b1a2018-06-07 17:29:31 -040018openolt::FlowStatistics* get_default_flow_statistics();
19openolt::FlowStatistics* collectFlowStatistics(bcmbal_flow_id flow_id, bcmbal_flow_type flow_type);
Shad Ansaricb004c52018-05-30 18:07:23 +000020#endif
Shad Ansariedef2132018-08-10 22:14:50 +000021void* stats_collection();
Nicolas Palpacuer0f19b1a2018-06-07 17:29:31 -040022void register_new_flow(bcmbal_flow_key key);
23
24
25#endif