module:api/DataSetApi

module:api/DataSetApi

new module:api/DataSetApi(apiClient)

Source:

Constructs a new DataSetApi.

Parameters:
Name Type Description
apiClient module:ApiClient

Optional API client implementation to use,
default to module:ApiClient#instance if unspecified.

Methods

getStream(version, dataSetName, optsOrCallback, callback)

Source:

Gets customer event data for an organization.
Gets customer event data for the organization that owns the integration key.

The results for this endpoint are paginated by event timestamp. Use the cursor parameter to specify where the query begins in the dataset. Use the limit parameter to set the number of records returned.

Parameters:
Name Type Description
version String

Must be 2.

dataSetName String

Must be monitor.

optsOrCallback Object

Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.

Properties
Name Type Description
cursor String

Specifies a pointer into the dataset where your query will begin. You can either provide an ISO DateTime or a string cursor (from the endCursor value in the response). If no value is provided, the query begins from seven days ago. For example, to fetch event data beginning from January 1, 2022, set this value to 2022-01-01T00:00:00Z. The response will include data about events starting from that date in chronological order. The response also includes an endCursor property. To fetch the next page of event data, call this endpoint again with cursor set to the previous endCursor value.

limit Number

The maximum number of records to return. The default value is 1000. (default to 1000)

callback module:api/DataSetApi~getStreamCallback

The callback function, accepting three arguments: error, data, response
data is of type: module:model/CursoredResult

Type Definitions

getStreamCallback(error, data, If)

Source:

(Optional) Callback function to receive the result of the getStream operation. If none specified a Promise will be returned.

Parameters:
Name Type Description
error String

Error message, if any.

data module:model/CursoredResult

The data returned by the service call.

If String

a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.