Project

General

Profile

Actions

Evolution #1796

open

API : multiple indicator - implement ability to parse the following format

Added by Simon 10 days ago.

Status:
Nouveau
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
04/29/2025
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

{
    "count_values": 5,
    "values": [
        {
            "sdiv_value": 0,
            "sdiv_multivalue": [
                {
                    "value": 175,
                    "label": "PLAI",
                    "_percentage": 54.347826086956516,
                    "_total": 322,
                    "_mean": 107.33333333333333
                },
                {
                    "value": 102,
                    "label": "PLUS",
                    "_percentage": 31.67701863354037,
                    "_total": 322,
                    "_mean": 107.33333333333333
                },
                {
                    "value": 45,
                    "label": "PLS",
                    "_percentage": 13.975155279503104,
                    "_total": 322,
                    "_mean": 107.33333333333333
                }
            ],
            "sdiv_threshold": 80,
            "sdiv_analysis": "",
            "sdiv_comment": "",
            "sdiv_comment_display": "Y",
            "sdiv_scale": 1,
            "sdiv_date_published": "2021-12-31",
            "date_m_short": "14-06-2024" 
        },
        {
            "sdiv_value": 0,
            "sdiv_multivalue": [
                {
                    "value": 145,
                    "label": "PLAI",
                    "_percentage": 44.07294832826747,
                    "_total": 329,
                    "_mean": 109.66666666666667
                },
                {
                    "value": 105,
                    "label": "PLUS",
                    "_percentage": 31.914893617021278,
                    "_total": 329,
                    "_mean": 109.66666666666667
                },
                {
                    "value": 79,
                    "label": "PLS",
                    "_percentage": 24.012158054711247,
                    "_total": 329,
                    "_mean": 109.66666666666667
                }
            ],
            "sdiv_threshold": 90,
            "sdiv_analysis": "",
            "sdiv_comment": "",
            "sdiv_comment_display": "Y",
            "sdiv_scale": 1,
            "sdiv_date_published": "2022-12-31",
            "date_m_short": "13-06-2024" 
        },
        {
            "sdiv_value": 0,
            "sdiv_multivalue": [
                {
                    "value": null,
                    "label": "PLAI",
                    "_percentage": null,
                    "_total": null,
                    "_mean": null
                },
                {
                    "value": null,
                    "label": "PLUS",
                    "_percentage": null,
                    "_total": null,
                    "_mean": null
                },
                {
                    "value": null,
                    "label": "PLS",
                    "_percentage": null,
                    "_total": null,
                    "_mean": null
                }
            ],
            "sdiv_threshold": 90,
            "sdiv_analysis": "",
            "sdiv_comment": "",
            "sdiv_comment_display": "Y",
            "sdiv_scale": 1,
            "sdiv_date_published": "2023-12-31",
            "date_m_short": "29-04-2025" 
        },
        {
            "sdiv_value": 0,
            "sdiv_multivalue": [
                {
                    "value": 152,
                    "label": "PLAI",
                    "_percentage": 48.717948717948715,
                    "_total": 312,
                    "_mean": 104
                },
                {
                    "value": 97,
                    "label": "PLUS",
                    "_percentage": 31.08974358974359,
                    "_total": 312,
                    "_mean": 104
                },
                {
                    "value": 63,
                    "label": "PLS",
                    "_percentage": 20.192307692307693,
                    "_total": 312,
                    "_mean": 104
                }
            ],
            "sdiv_threshold": 90,
            "sdiv_analysis": "",
            "sdiv_comment": "",
            "sdiv_comment_display": "Y",
            "sdiv_scale": 1,
            "sdiv_date_published": "2024-06-12",
            "date_m_short": "14-06-2024" 
        },
        {
            "sdiv_value": 0,
            "sdiv_multivalue": [
                {
                    "value": 113,
                    "label": "PLAI",
                    "_percentage": 46.69421487603306,
                    "_total": 242,
                    "_mean": 80.66666666666667
                },
                {
                    "value": 47,
                    "label": "PLUS",
                    "_percentage": 19.421487603305785,
                    "_total": 242,
                    "_mean": 80.66666666666667
                },
                {
                    "value": 82,
                    "label": "PLS",
                    "_percentage": 33.88429752066116,
                    "_total": 242,
                    "_mean": 80.66666666666667
                }
            ],
            "sdiv_threshold": 90,
            "sdiv_analysis": "",
            "sdiv_comment": "",
            "sdiv_comment_display": "Y",
            "sdiv_scale": 1,
            "sdiv_date_published": "2024-06-14",
            "date_m_short": "14-06-2024" 
        }
    ]
}

see local sample : http://localhost/linea21-dv/api/index.php?m=indicator&a=values&id=225

No data to display

Actions

Also available in: Atom PDF