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": "45",
        "ok": "45",
        "ko": "-"
    },
    "maxResponseTime": {
        "total": "3045",
        "ok": "3045",
        "ko": "-"
    },
    "meanResponseTime": {
        "total": "718",
        "ok": "718",
        "ko": "-"
    },
    "standardDeviation": {
        "total": "491",
        "ok": "491",
        "ko": "-"
    },
    "percentiles1": {
        "total": "607",
        "ok": "607",
        "ko": "-"
    },
    "percentiles2": {
        "total": "1173",
        "ok": "1173",
        "ko": "-"
    },
    "percentiles3": {
        "total": "1393",
        "ok": "1393",
        "ko": "-"
    },
    "percentiles4": {
        "total": "1449",
        "ok": "1449",
        "ko": "-"
    },
    "group1": {
        "name": "t < 800 ms",
        "count": 619,
        "percentage": 62
    },
    "group2": {
        "name": "800 ms < t < 1200 ms",
        "count": 156,
        "percentage": 16
    },
    "group3": {
        "name": "t > 1200 ms",
        "count": 225,
        "percentage": 23
    },
    "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": "45",
        "ok": "45",
        "ko": "-"
    },
    "maxResponseTime": {
        "total": "3045",
        "ok": "3045",
        "ko": "-"
    },
    "meanResponseTime": {
        "total": "718",
        "ok": "718",
        "ko": "-"
    },
    "standardDeviation": {
        "total": "491",
        "ok": "491",
        "ko": "-"
    },
    "percentiles1": {
        "total": "607",
        "ok": "607",
        "ko": "-"
    },
    "percentiles2": {
        "total": "1173",
        "ok": "1173",
        "ko": "-"
    },
    "percentiles3": {
        "total": "1393",
        "ok": "1393",
        "ko": "-"
    },
    "percentiles4": {
        "total": "1449",
        "ok": "1449",
        "ko": "-"
    },
    "group1": {
        "name": "t < 800 ms",
        "count": 619,
        "percentage": 62
    },
    "group2": {
        "name": "800 ms < t < 1200 ms",
        "count": 156,
        "percentage": 16
    },
    "group3": {
        "name": "t > 1200 ms",
        "count": 225,
        "percentage": 23
    },
    "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);
}
