fn push_metric(
    mut body: String,
    help: String,
    metric_type: String,
    metric_name: String,
    metric_line: String,
) -> String {
    body.push_str(&format!("# HELP {} {}", metric_name, help));
    body.push_str(&format!("\n# TYPE {} {}\n", metric_name, metric_type));
    body.push_str(&metric_line);
    body
}
/// Adds lines related to a metric in the body (String) of response.
Adds lines related to a metric in the body (String) of response.
Adds lines related to a metric in the body ( String ) of response .
fn push_metric(
    mut body: String,
    help: String,
    metric_type: String,
    metric_name: String,
    metric_line: String,
) -> String {
    body.push_str(&format!("# HELP {} {}", metric_name, help));
    body.push_str(&format!("\n# TYPE {} {}\n", metric_name, metric_type));
    body.push_str(&metric_line);
    body
}
fn push_metric ( mut body : String , help : String , metric_type : String , metric_name : String , metric_line : String , ) -> String { body . push_str ( & format ! ( " " metric_name help ) ) ; body . push_str ( & format ! ( " \n \n " metric_name metric_type ) ) ; body . push_str ( & metric_line ) ; body }
Adds lines related to a metric in the body (String) of response.
Adds lines related to a metric in the body ( String ) of response .
body
String
help
String
metric_type
String
metric_name
String
metric_line
String
body
String
help
String
metric_type
String
metric_name
String
metric_line
String