diff --git a/trunk/src/app/srs_app_heartbeat.cpp b/trunk/src/app/srs_app_heartbeat.cpp index 3878bcab06..85c85c8e59 100644 --- a/trunk/src/app/srs_app_heartbeat.cpp +++ b/trunk/src/app/srs_app_heartbeat.cpp @@ -19,6 +19,7 @@ using namespace std; #include #include #include +#include SrsHttpHeartbeat::SrsHttpHeartbeat() { @@ -61,6 +62,11 @@ srs_error_t SrsHttpHeartbeat::do_heartbeat() obj->set("device_id", SrsJsonAny::str(device_id.c_str())); obj->set("ip", SrsJsonAny::str(ip->ip.c_str())); + + SrsStatistic* stat = SrsStatistic::instance(); + obj->set("server", SrsJsonAny::str(stat->server_id().c_str())); + obj->set("service", SrsJsonAny::str(stat->service_id().c_str())); + obj->set("pid", SrsJsonAny::str(stat->service_pid().c_str())); if (_srs_config->get_heartbeat_summaries()) { SrsJsonObject* summaries = SrsJsonAny::object();