// JsonElement returns and JSON encoded form of the Stat struct.
JsonElement returns and JSON encoded form of the Stat struct.
// JsonElement returns and JSON encoded form of the Stat struct .
func (s *Stat) JsonString() string {
	return fmt.Sprintf("\"stat\":{\"captured\":%d,\"received\":%d,\"dropped\":%d,\"ifDropped\":%d}",
		s.Captured,
		s.Received,
		s.Dropped,
		s.IfDropped)
}
func ( s * Stat ) JsonString ( ) string { return fmt . Sprintf ( " \" \" \" \" \" \" \" \" \" \" " , s . Captured , s . Received , s . Dropped , s . IfDropped ) }
JsonElement returns and JSON encoded form of the Stat struct.
JsonElement returns and JSON encoded form of the Stat struct .