Event analytics endpoint broken

Hello all.

We’ve been trying to get the Event Analytics endpoint to work (e.g.:slight_smile:

https://play.dhis2.org/dev/api/analytics/events

but we get a 404 error from the server. The same happens on our local installation of DHIS2.

Is there a reason why this is happening? Must something setting be enabled or is this endpoint broken?

Alternatively, we basically just want to get a list of the Data Elements used in a particular program (event). We think this endpoint will do that but if there’s another endpoint we can use feel free to suggest.

Otherwise our options are limited to looping and getting unique identifiers using the

/api/events?program=[…]

endpoint.

As always, thanks for your kind help.

Antonio Solano.

Broad Institute of MIT and Harvard. Boston, MA. USA

Hi Jesus,

the API endpoint should work. There are a few parameters which are mandatory:

https://play.dhis2.org/demo/api/26/analytics/events/aggregate/eBAyeGv0exc.json?dimension=ou:ImspTQPwCqd&dimension=pe:LAST_4_QUARTERS&dimension=fWIAEtYVEGk&dimension=oZg33kd9taw&stage=Zj7UnCAulEk&displayProperty=SHORTNAME&outputType=EVENT&value=vV9UWAZohSf&aggregationType=AVERAGE

Have a look at the docs here:

https://docs.dhis2.org/master/en/developer/html/webapi_event_analytics.html

regards,

Lars

···

On Thu, Jul 27, 2017 at 6:07 PM, Jesus Solano-Roman asolano@broadinstitute.org wrote:

Hello all.

We’ve been trying to get the Event Analytics endpoint to work (e.g.:slight_smile:

https://play.dhis2.org/dev/api/analytics/events

but we get a 404 error from the server. The same happens on our local installation of DHIS2.

Is there a reason why this is happening? Must something setting be enabled or is this endpoint broken?

Alternatively, we basically just want to get a list of the Data Elements used in a particular program (event). We think this endpoint will do that but if there’s another endpoint we can use feel free to suggest.

Otherwise our options are limited to looping and getting unique identifiers using the

/api/events?program=[…]

endpoint.

As always, thanks for your kind help.

Antonio Solano.

Broad Institute of MIT and Harvard. Boston, MA. USA


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Lars.

Thanks for the quick reply. This should fix it, my apologies for not reading more carefully.

Antonio Solano-Roman

Data Visualization & User Experience Design

Sabeti Lab - Broad Institute

···

On Jul 27 2017, at 12:19 pm, Lars Helge Øverland lars@dhis2.org wrote:

Hi Jesus,

the API endpoint should work. There are a few parameters which are mandatory:

https://play.dhis2.org/demo/api/26/analytics/events/aggregate/eBAyeGv0exc.json?dimension=ou:ImspTQPwCqd&dimension=pe:LAST_4_QUARTERS&dimension=fWIAEtYVEGk&dimension=oZg33kd9taw&stage=Zj7UnCAulEk&displayProperty=SHORTNAME&outputType=EVENT&value=vV9UWAZohSf&aggregationType=AVERAGE

Have a look at the docs here:

https://docs.dhis2.org/master/en/developer/html/webapi_event_analytics.html

regards,

Lars

On Thu, Jul 27, 2017 at 6:07 PM, Jesus Solano-Roman asolano@broadinstitute.org wrote:

Hello all.

We’ve been trying to get the Event Analytics endpoint to work (e.g.:slight_smile:

https://play.dhis2.org/dev/api/analytics/events

but we get a 404 error from the server. The same happens on our local installation of DHIS2.

Is there a reason why this is happening? Must something setting be enabled or is this endpoint broken?

Alternatively, we basically just want to get a list of the Data Elements used in a particular program (event). We think this endpoint will do that but if there’s another endpoint we can use feel free to suggest.

Otherwise our options are limited to looping and getting unique identifiers using the

/api/events?program=[…]

endpoint.

As always, thanks for your kind help.

Antonio Solano.

Broad Institute of MIT and Harvard. Boston, MA. USA


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

No worries.

Lars

···

On Thu, Jul 27, 2017 at 6:22 PM, Jesus Solano-Roman asolano@broadinstitute.org wrote:

Hi Lars.

Thanks for the quick reply. This should fix it, my apologies for not reading more carefully.

Antonio Solano-Roman

Data Visualization & User Experience Design

Sabeti Lab - Broad Institute

        On Jul 27 2017, at 12:19 pm, Lars Helge Øverland <lars@dhis2.org            > wrote:

Hi Jesus,

the API endpoint should work. There are a few parameters which are mandatory:

https://play.dhis2.org/demo/api/26/analytics/events/aggregate/eBAyeGv0exc.json?dimension=ou:ImspTQPwCqd&dimension=pe:LAST_4_QUARTERS&dimension=fWIAEtYVEGk&dimension=oZg33kd9taw&stage=Zj7UnCAulEk&displayProperty=SHORTNAME&outputType=EVENT&value=vV9UWAZohSf&aggregationType=AVERAGE

Have a look at the docs here:

https://docs.dhis2.org/master/en/developer/html/webapi_event_analytics.html

regards,

Lars

On Thu, Jul 27, 2017 at 6:07 PM, Jesus Solano-Roman asolano@broadinstitute.org wrote:

Hello all.

We’ve been trying to get the Event Analytics endpoint to work (e.g.:slight_smile:

https://play.dhis2.org/dev/api/analytics/events

but we get a 404 error from the server. The same happens on our local installation of DHIS2.

Is there a reason why this is happening? Must something setting be enabled or is this endpoint broken?

Alternatively, we basically just want to get a list of the Data Elements used in a particular program (event). We think this endpoint will do that but if there’s another endpoint we can use feel free to suggest.

Otherwise our options are limited to looping and getting unique identifiers using the

/api/events?program=[…]

endpoint.

As always, thanks for your kind help.

Antonio Solano.

Broad Institute of MIT and Harvard. Boston, MA. USA


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org