mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Log: Support write log to tencentcloud CLS. v5.0.44
This commit is contained in:
parent
3da0b57121
commit
95cd0e84eb
15 changed files with 1631 additions and 7 deletions
|
@ -24,6 +24,9 @@ class ISrsExpire;
|
|||
class SrsJsonObject;
|
||||
class SrsJsonArray;
|
||||
class ISrsKbpsDelta;
|
||||
class SrsClsSugar;
|
||||
class SrsClsSugars;
|
||||
class SrsPps;
|
||||
|
||||
struct SrsStatisticVhost
|
||||
{
|
||||
|
@ -55,11 +58,12 @@ public:
|
|||
// The publisher connection id.
|
||||
std::string publisher_id;
|
||||
int nb_clients;
|
||||
uint64_t nb_frames;
|
||||
public:
|
||||
// The stream total kbps.
|
||||
SrsKbps* kbps;
|
||||
SrsWallClock* clk;
|
||||
// The fps of stream.
|
||||
SrsPps* frames;
|
||||
public:
|
||||
bool has_video;
|
||||
SrsVideoCodecId vcodec;
|
||||
|
@ -200,6 +204,10 @@ public:
|
|||
virtual srs_error_t dumps_clients(SrsJsonArray* arr, int start, int count);
|
||||
// Dumps the hints about SRS server.
|
||||
void dumps_hints_kv(std::stringstream & ss);
|
||||
public:
|
||||
// Dumps the CLS summary.
|
||||
void dumps_cls_summaries(SrsClsSugar* sugar);
|
||||
void dumps_cls_streams(SrsClsSugars* sugars);
|
||||
private:
|
||||
virtual SrsStatisticVhost* create_vhost(SrsRequest* req);
|
||||
virtual SrsStatisticStream* create_stream(SrsStatisticVhost* vhost, SrsRequest* req);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue