/** * Gravitee.io Portal Rest API * API dedicated to the devportal part of Gravitee * * The version of the OpenAPI document: 3.0.0 * Contact: contact@graviteesource.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http'; import { Observable } from 'rxjs'; import { DateHistoAnalytics, GroupByAnalytics, CountAnalytics } from '../model/models'; import { Log } from '../model/log'; import { LogsResponse } from '../model/logsResponse'; import { Configuration } from '../configuration'; export interface ExportApplicationLogsByApplicationIdRequestParams { applicationId: string; page?: number; size?: number; from?: number; to?: number; query?: string; field?: string; order?: 'ASC' | 'DESC'; } export interface GetApplicationAnalyticsRequestParams { applicationId: string; page?: number; size?: number; from?: number; to?: number; interval?: number; query?: string; field?: string; type?: 'GROUP_BY' | 'DATE_HISTO' | 'COUNT'; range?: string; aggs?: string; order?: string; } export interface GetApplicationLogByApplicationIdAndLogIdRequestParams { applicationId: string; logId: string; timestamp?: number; } export interface GetApplicationLogsRequestParams { applicationId: string; page?: number; size?: number; from?: number; to?: number; query?: string; field?: string; order?: 'ASC' | 'DESC'; } export declare class AnalyticsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * Export application logs as CSV * Export application logs as CSV. User must have the APPLICATION_LOG[READ] permission. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exportApplicationLogsByApplicationId(requestParameters: ExportApplicationLogsByApplicationIdRequestParams, observe?: 'body', reportProgress?: boolean): Observable; exportApplicationLogsByApplicationId(requestParameters: ExportApplicationLogsByApplicationIdRequestParams, observe?: 'response', reportProgress?: boolean): Observable>; exportApplicationLogsByApplicationId(requestParameters: ExportApplicationLogsByApplicationIdRequestParams, observe?: 'events', reportProgress?: boolean): Observable>; /** * Get Application analytics * Get the application analytics. User must have the APPLICATION_ANALYTICS[READ] permission. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getApplicationAnalytics(requestParameters: GetApplicationAnalyticsRequestParams, observe?: 'body', reportProgress?: boolean): Observable; getApplicationAnalytics(requestParameters: GetApplicationAnalyticsRequestParams, observe?: 'response', reportProgress?: boolean): Observable>; getApplicationAnalytics(requestParameters: GetApplicationAnalyticsRequestParams, observe?: 'events', reportProgress?: boolean): Observable>; /** * Get a specific log of an application * Get a specific log of an application. User must have the APPLICATION_LOG[READ] permission. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getApplicationLogByApplicationIdAndLogId(requestParameters: GetApplicationLogByApplicationIdAndLogIdRequestParams, observe?: 'body', reportProgress?: boolean): Observable; getApplicationLogByApplicationIdAndLogId(requestParameters: GetApplicationLogByApplicationIdAndLogIdRequestParams, observe?: 'response', reportProgress?: boolean): Observable>; getApplicationLogByApplicationIdAndLogId(requestParameters: GetApplicationLogByApplicationIdAndLogIdRequestParams, observe?: 'events', reportProgress?: boolean): Observable>; /** * Get Application logs * Get the application logs. User must have the APPLICATION_LOG[READ] permission. * @param requestParameters * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getApplicationLogs(requestParameters: GetApplicationLogsRequestParams, observe?: 'body', reportProgress?: boolean): Observable; getApplicationLogs(requestParameters: GetApplicationLogsRequestParams, observe?: 'response', reportProgress?: boolean): Observable>; getApplicationLogs(requestParameters: GetApplicationLogsRequestParams, observe?: 'events', reportProgress?: boolean): Observable>; }