API Module

import api from 'api';

Methods

logs(options) stats(options)

logs(options)

Queries the org's log. Very useful for creating daily activity reports, searching for access anomalies, etc.

Arguments

  • options (Object)

    • where

    • map

    • group

    • sort

    • limit

    • skip

stats(options)

Queries the org's stats.

Arguments

  • options (Object)

    • where

    • map

    • group

    • sort

    • limit

    • skip

Examples

The following example finds statistics on all the scripts that ran yesterday (does not factor in script errors or local time).Logs Example

Logs Example Response

The following example returns the login statistics for the previous two days.Stats Example

Stats Example Response

Last updated

Was this helpful?