mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the stat api, support query specified stream.
This commit is contained in:
parent
c75f05c88b
commit
ab4620870d
3 changed files with 144 additions and 99 deletions
|
@ -47,6 +47,7 @@ struct SrsStatisticVhost
|
|||
public:
|
||||
int64_t id;
|
||||
std::string vhost;
|
||||
int nb_clients;
|
||||
public:
|
||||
/**
|
||||
* vhost total kbps.
|
||||
|
@ -55,6 +56,8 @@ public:
|
|||
public:
|
||||
SrsStatisticVhost();
|
||||
virtual ~SrsStatisticVhost();
|
||||
public:
|
||||
virtual int dumps(std::stringstream& ss);
|
||||
};
|
||||
|
||||
struct SrsStatisticStream
|
||||
|
@ -66,6 +69,7 @@ public:
|
|||
std::string stream;
|
||||
std::string url;
|
||||
std::string status;
|
||||
int nb_clients;
|
||||
public:
|
||||
/**
|
||||
* stream total kbps.
|
||||
|
@ -93,6 +97,8 @@ public:
|
|||
public:
|
||||
SrsStatisticStream();
|
||||
virtual ~SrsStatisticStream();
|
||||
public:
|
||||
virtual int dumps(std::stringstream& ss);
|
||||
public:
|
||||
/**
|
||||
* publish the stream.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue