Github
  • Preparing search index...
  • The search index is not available
Trieve Typescript SDK - v0.0.97
  • Trieve Typescript SDK
  • Analytics Methods
  • getComponentAnalytics

Function getComponentAnalytics

  • getComponentAnalytics(data, signal?): Promise<ComponentAnalyticsResponse>
  • Function that allows you to view the component analytics for a dataset.

    Example:

    const data = await trieve.getComponentAnalytics({
    filter: {
    date_range: {
    gt: "2021-01-01 00:00:00.000",
    gte: "2021-01-01 00:00:00.000",
    lt: "2021-01-01 00:00:00.000",
    lte: "2021-01-01 00:00:00.000",
    },
    },
    granularity: "minute",
    type: "total_unique_visitors",
    });

    Parameters

    • data: ComponentAnalytics
    • Optionalsignal: AbortSignal

    Returns Promise<ComponentAnalyticsResponse>

    • Defined in clients/ts-sdk/src/functions/analytics/index.ts:317

Settings

Member Visibility
Github
Trieve Typescript SDK - v0.0.97
  • Loading...

Generated using TypeDoc

Please reach out if you'd like assistance; we are responsive! Contact humans@trieve.ai or see trieve.ai for links to Discord and Matrix.