Re: [Dhis2-devs] Run analytics from the API?

2017-03-16 Thread Stian Sandvold
You can look at the api call here: 
https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_generating_resource_analytics_tables
 


Then you can create a curl based on that.

Remember you need to have the right authority to start this process. 
(Administrate data mart)

Hope this helps

——
Stian Sandvold
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org




> On 16 Mar 2017, at 10:08, Trøyel Nerbø  wrote:
> 
> Hi,
> Does anyone know if there is a API call or similar to run analytics from 
> command line? Useful whenever I am restoring a database I need to immediately 
> run analytics if the table is removed from the backup. Couldn’t find anything 
> in the documentation on that.
>  
> Thanks!
> Trøyel
>  
> 
> Best Regards
> Halvar Trøyel Nerbø
> Reporting Advisor
> +47 992 39 817
> Skype: nrc_troyel
> www.nrc.no 
>  
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-devs 
> 
> Post to : dhis2-devs@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-devs 
> 
> More help   : https://help.launchpad.net/ListHelp 
> 
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Run analytics from the API?

2017-03-16 Thread Trøyel Nerbø
Oh I missed that, thanks Lars!

Trøyel

From: Lars Helge Øverland [mailto:l...@dhis2.org]
Sent: torsdag 16. mars 2017 10.09
To: Trøyel Nerbø <troyel.ne...@nrc.no>
Cc: DHIS 2 Developers list <dhis2-devs@lists.launchpad.net>
Subject: Re: [Dhis2-devs] Run analytics from the API?

Hi Trøyel,

see here:

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

Lars


On Thu, Mar 16, 2017 at 10:08 AM, Trøyel Nerbø 
<troyel.ne...@nrc.no<mailto:troyel.ne...@nrc.no>> wrote:
Hi,
Does anyone know if there is a API call or similar to run analytics from 
command line? Useful whenever I am restoring a database I need to immediately 
run analytics if the table is removed from the backup. Couldn’t find anything 
in the documentation on that.

Thanks!
Trøyel


Best Regards
Halvar Trøyel Nerbø
Reporting Advisor
+47 992 39 817<tel:992%2039%20817>
Skype: nrc_troyel
www.nrc.no<http://www.nrc.no/>
[nrclogo]<http://www.nrc.no/>


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : 
dhis2-devs@lists.launchpad.net<mailto:dhis2-devs@lists.launchpad.net>
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp



--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org<mailto:l...@dhis2.org>
http://www.dhis2.org<https://www.dhis2.org/>

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Run analytics from the API?

2017-03-16 Thread Lars Helge Øverland
Hi Trøyel,

see here:

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

Lars


On Thu, Mar 16, 2017 at 10:08 AM, Trøyel Nerbø  wrote:

> Hi,
>
> Does anyone know if there is a API call or similar to run analytics from
> command line? Useful whenever I am restoring a database I need to
> immediately run analytics if the table is removed from the backup. Couldn’t
> find anything in the documentation on that.
>
>
>
> Thanks!
>
> Trøyel
>
>
>
>
> Best Regards
> *Halvar Trøyel Nerbø*
> Reporting Advisor
>
> +47 992 39 817 <992%2039%20817>
>
> Skype: nrc_troyel
> www.nrc.no
>
> [image: nrclogo] 
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Run analytics from the API?

2017-03-16 Thread Trøyel Nerbø
Hi,
Does anyone know if there is a API call or similar to run analytics from 
command line? Useful whenever I am restoring a database I need to immediately 
run analytics if the table is removed from the backup. Couldn't find anything 
in the documentation on that.

Thanks!
Trøyel


Best Regards
Halvar Trøyel Nerbø
Reporting Advisor
+47 992 39 817
Skype: nrc_troyel
www.nrc.no
[nrclogo]

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp