Defines a location as a source of statistics. You can use this location to get statistics about a specific channel, or about all channels, in a resumed ou summarized way.
To get statistics about all channels in a summarized way you have to make a GET in this location without specify a name in the push_stream_channel_id variable.
To get statistics about all channels in a detailed way you have to specify "ALL" in the push_stream_channel_id.
To get statistics about prefixed channels in a detailed way you have to specify "_prefix_*" in the push_stream_channel_id.
To get statistics about a channel you have to specify the name in the push_stream_channel_id.
You can get statistics in the formats plain, xml, yaml and json. The default is json, to change this behavior you can use *Accept* header parameter passing values like "text/plain", "application/xml", "application/yaml" and "application/json" respectivelly.
...
...
@@ -208,6 +214,7 @@ You can get statistics in the formats plain, xml, yaml and json. The default is
# /channels-stats -> get statistics about all channels in a summarized way
# /channels-stats?id=ALL -> get statistics about all channels in a detailed way
# /channels-stats?id=channel_* -> get statistics about all channels which starts with 'channel_'
# /channels-stats?id=channel_id -> get statistics about a channel
assert_equal(403,multi.responses[:succeeded][i].response_header.status,"Channel was created")
assert_equal(0,multi.responses[:succeeded][i].response_header.content_length,"Received response for creating channel with id containing wildcard")
assert_equal("Channel id not authorized for this method.",multi.responses[:succeeded][i].response_header['X_NGINX_PUSHSTREAM_EXPLAIN'],"Didn't receive the right error message")
assert_equal(403,multi.responses[:succeeded][i].response_header.status,"Channel was created")
assert_equal(0,multi.responses[:succeeded][i].response_header.content_length,"Received response for creating channel with id containing wildcard")
assert_equal("Channel id not authorized for this method.",multi.responses[:succeeded][i].response_header['X_NGINX_PUSHSTREAM_EXPLAIN'],"Didn't receive the right error message")
assert_equal(403,multi.responses[:succeeded][i].response_header.status,"Channel was created")
assert_equal(0,multi.responses[:succeeded][i].response_header.content_length,"Received response for creating channel with id containing wildcard")
assert_equal("Channel id not authorized for this method.",multi.responses[:succeeded][i].response_header['X_NGINX_PUSHSTREAM_EXPLAIN'],"Didn't receive the right error message")