Hierarchy

  • CommonHttpService
    • AnalyticsService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns AnalyticsService

Methods

  • Get the total number of distinct viewers a piece of content has.

    Parameters

    • params: {
          contentId: string;
          fromDate?: string;
      }
      • contentId: string

        The ID of the content to get the viewers for.

      • OptionalfromDate?: string

        The number of views for the content since the date.

        2021-03-21T00:00:00.000Z
        

    Returns Promise<{
        count?: number;
        id?: number;
    } & {
        [key: string]: unknown;
    }>

    Returns the total number of distinct viewers for the content.

    GET /wiki/rest/api/analytics/content/{contentId}/viewers @scopes-current read:confluence-content.summary @scopes-beta read:analytics.content:confluence

  • Get the total number of views a piece of content has.

    Parameters

    • params: {
          contentId: string;
          fromDate?: string;
      }
      • contentId: string

        The ID of the content to get the views for.

      • OptionalfromDate?: string

        The number of views for the content since the date.

        2021-03-21T00:00:00.000Z
        

    Returns Promise<{
        count?: number;
        id?: number;
    } & {
        [key: string]: unknown;
    }>

    Returns the total number of views for the content.

    GET /wiki/rest/api/analytics/content/{contentId}/views @scopes-current read:confluence-content.summary @scopes-beta read:analytics.content:confluence

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void