var stats = {
    type: "GROUP",
name: "Global Information",
path: "",
pathFormatted: "group_missing-name-b06d1",
stats: {
    "name": "Global Information",
    "numberOfRequests": {
        "total": "1000",
        "ok": "1000",
        "ko": "0"
    },
    "minResponseTime": {
        "total": "51",
        "ok": "51",
        "ko": "-"
    },
    "maxResponseTime": {
        "total": "3061",
        "ok": "3061",
        "ko": "-"
    },
    "meanResponseTime": {
        "total": "794",
        "ok": "794",
        "ko": "-"
    },
    "standardDeviation": {
        "total": "562",
        "ok": "562",
        "ko": "-"
    },
    "percentiles1": {
        "total": "591",
        "ok": "591",
        "ko": "-"
    },
    "percentiles2": {
        "total": "1229",
        "ok": "1229",
        "ko": "-"
    },
    "percentiles3": {
        "total": "1446",
        "ok": "1446",
        "ko": "-"
    },
    "percentiles4": {
        "total": "3043",
        "ok": "3043",
        "ko": "-"
    },
    "group1": {
        "name": "t < 800 ms",
        "count": 560,
        "percentage": 56
    },
    "group2": {
        "name": "800 ms < t < 1200 ms",
        "count": 169,
        "percentage": 17
    },
    "group3": {
        "name": "t > 1200 ms",
        "count": 271,
        "percentage": 27
    },
    "group4": {
        "name": "failed",
        "count": 0,
        "percentage": 0
    },
    "meanNumberOfRequestsPerSecond": {
        "total": "250",
        "ok": "250",
        "ko": "-"
    }
},
contents: {
"req_home-8cf04": {
        type: "REQUEST",
        name: "Home",
path: "Home",
pathFormatted: "req_home-8cf04",
stats: {
    "name": "Home",
    "numberOfRequests": {
        "total": "1000",
        "ok": "1000",
        "ko": "0"
    },
    "minResponseTime": {
        "total": "51",
        "ok": "51",
        "ko": "-"
    },
    "maxResponseTime": {
        "total": "3061",
        "ok": "3061",
        "ko": "-"
    },
    "meanResponseTime": {
        "total": "794",
        "ok": "794",
        "ko": "-"
    },
    "standardDeviation": {
        "total": "562",
        "ok": "562",
        "ko": "-"
    },
    "percentiles1": {
        "total": "591",
        "ok": "591",
        "ko": "-"
    },
    "percentiles2": {
        "total": "1229",
        "ok": "1229",
        "ko": "-"
    },
    "percentiles3": {
        "total": "1446",
        "ok": "1446",
        "ko": "-"
    },
    "percentiles4": {
        "total": "3043",
        "ok": "3043",
        "ko": "-"
    },
    "group1": {
        "name": "t < 800 ms",
        "count": 560,
        "percentage": 56
    },
    "group2": {
        "name": "800 ms < t < 1200 ms",
        "count": 169,
        "percentage": 17
    },
    "group3": {
        "name": "t > 1200 ms",
        "count": 271,
        "percentage": 27
    },
    "group4": {
        "name": "failed",
        "count": 0,
        "percentage": 0
    },
    "meanNumberOfRequestsPerSecond": {
        "total": "250",
        "ok": "250",
        "ko": "-"
    }
}
    }
}

}

function fillStats(stat){
    $("#numberOfRequests").append(stat.numberOfRequests.total);
    $("#numberOfRequestsOK").append(stat.numberOfRequests.ok);
    $("#numberOfRequestsKO").append(stat.numberOfRequests.ko);

    $("#minResponseTime").append(stat.minResponseTime.total);
    $("#minResponseTimeOK").append(stat.minResponseTime.ok);
    $("#minResponseTimeKO").append(stat.minResponseTime.ko);

    $("#maxResponseTime").append(stat.maxResponseTime.total);
    $("#maxResponseTimeOK").append(stat.maxResponseTime.ok);
    $("#maxResponseTimeKO").append(stat.maxResponseTime.ko);

    $("#meanResponseTime").append(stat.meanResponseTime.total);
    $("#meanResponseTimeOK").append(stat.meanResponseTime.ok);
    $("#meanResponseTimeKO").append(stat.meanResponseTime.ko);

    $("#standardDeviation").append(stat.standardDeviation.total);
    $("#standardDeviationOK").append(stat.standardDeviation.ok);
    $("#standardDeviationKO").append(stat.standardDeviation.ko);

    $("#percentiles1").append(stat.percentiles1.total);
    $("#percentiles1OK").append(stat.percentiles1.ok);
    $("#percentiles1KO").append(stat.percentiles1.ko);

    $("#percentiles2").append(stat.percentiles2.total);
    $("#percentiles2OK").append(stat.percentiles2.ok);
    $("#percentiles2KO").append(stat.percentiles2.ko);

    $("#percentiles3").append(stat.percentiles3.total);
    $("#percentiles3OK").append(stat.percentiles3.ok);
    $("#percentiles3KO").append(stat.percentiles3.ko);

    $("#percentiles4").append(stat.percentiles4.total);
    $("#percentiles4OK").append(stat.percentiles4.ok);
    $("#percentiles4KO").append(stat.percentiles4.ko);

    $("#meanNumberOfRequestsPerSecond").append(stat.meanNumberOfRequestsPerSecond.total);
    $("#meanNumberOfRequestsPerSecondOK").append(stat.meanNumberOfRequestsPerSecond.ok);
    $("#meanNumberOfRequestsPerSecondKO").append(stat.meanNumberOfRequestsPerSecond.ko);
}
