JobDatasetValues
  • 22 Nov 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

JobDatasetValues

  • Dark
    Light
  • PDF

Article summary

Job Dataset Values

/v1/dru/jobdatasetvalues/

The Data Reporting Utility enables users to define aggregation jobs and generate aggregated results. The job definitions and results are stored in your database and can be accessed through this API

List Of Dataset Values aggregated from a Data Reporting Utility Job.

Example for calling:

http://server/v1/dru/jobdatasetvalues?id=2 – retrieves values from the job with id 2


Allowed Methods:

[GET]

API Controller: dru_jobresult

Description:

  1. Retrieves aggregated results of a Job.

Parameters:

NameTypeDescriptionNotes
idintegerThe ID of the JobMandatory


Response Fields:

NameTypeDescriptionNotes
job_idintegerThe ID of the Job
jobdatafield_idintegerThe ID of the datafield
groupgroup[]The groups of the dataset result, see jobdatasetvalues.group
periodperiod[]Period of the Dataset, see jobdatasetvalues.period
valuevalue[]Aggregated values found in the Dataset result, see jobdatasetvalues.value


jobdatasetvalues.group

The groups of the Dataset result

Group table

NameTypeDescriptionNotes
short1stringThe short value of group 1
short2stringThe short value of group 2
short3stringThe short value of group 3
short4stringThe short value of group 4
short5stringThe short value of group 5


jobdatasetvalues.period

Period found in the Dataset result. The number of items idenfies the numer of periods of the result set

Period table

NameTypeDescriptionNotes
startdatetime
finishdatetimeAt times aligns with the cutoff date


jobdatasetvalues.value

Aggregated values found in the Dataset result

Value table

NameTypeDescriptionNotes
periodfloatAggregated value
cumulativefloatAggregated value
manpowerfloatAggregated value


Show JSON Response

json result

[
    {
        "job_id": 1,
        "jobdatafield_id": 1,
        "group": {
            "short1": "00010",
            "short2": "0",
            "short3": "No",
            "short4": "0",
            "short5": "<Total>"
        },
        "period": {
            "start": "2024-08-05T00:00:00",
            "finish": "2024-08-12T00:00:00"
        },
        "value": {
            "period": 50,
            "cumulative": 50,
            "manpower": 0.297619
        }
    },
    {
        "job_id": 1,
        "jobdatafield_id": 1,
        "group": {
            "short1": "00010",
            "short2": "0",
            "short3": "No",
            "short4": "0",
            "short5": "<Total>"
        },
        "period": {
            "start": "2024-08-12T00:00:00",
            "finish": "2024-08-19T00:00:00"
        },
        "value": {
            "period": 0,
            "cumulative": 50,
            "manpower": 0
        }
    }
]


Was this article helpful?

What's Next
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence