import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse_RequestsRetriedChart} */ export declare function createStatisticsGetResponse_RequestsRetriedChartFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse_RequestsSavedChart} */ export declare function createStatisticsGetResponse_RequestsSavedChartFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse} */ export declare function createStatisticsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse(statisticsGetResponse?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_RequestsRetriedChart(statisticsGetResponse_RequestsRetriedChart?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_RequestsSavedChart(statisticsGetResponse_RequestsSavedChart?: Partial | undefined): Record void>; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse(writer: SerializationWriter, statisticsGetResponse?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_RequestsRetriedChart(writer: SerializationWriter, statisticsGetResponse_RequestsRetriedChart?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_RequestsSavedChart(writer: SerializationWriter, statisticsGetResponse_RequestsSavedChart?: Partial | undefined | null): void; export interface StatisticsGetResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; /** * The constructed chart of requests retried */ requestsRetriedChart?: StatisticsGetResponse_RequestsRetriedChart | null; /** * The constructed chart of requests saved */ requestsSavedChart?: StatisticsGetResponse_RequestsSavedChart | null; /** * The total number of retried requests */ totalRequestsRetried?: number | null; /** * The total number of saved requests */ totalRequestsSaved?: number | null; } /** * The constructed chart of requests retried */ export interface StatisticsGetResponse_RequestsRetriedChart extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; } /** * The constructed chart of requests saved */ export interface StatisticsGetResponse_RequestsSavedChart extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; } /** * Builds and executes requests for operations under /pullzone/{-id}/safehop/statistics */ export interface StatisticsRequestBuilder extends BaseRequestBuilder { /** * [GetSafeHopStatistics API Docs](https://docs.bunny.net/reference/pullzonepublic_safehopstatistics) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [GetSafeHopStatistics API Docs](https://docs.bunny.net/reference/pullzonepublic_safehopstatistics) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * [GetSafeHopStatistics API Docs](https://docs.bunny.net/reference/pullzonepublic_safehopstatistics) */ export interface StatisticsRequestBuilderGetQueryParameters { /** * The start date of the statistics. If no value is passed, the last 30 days will be returned. */ dateFrom?: Date; /** * The end date of the statistics. If no value is passed, the last 30 days will be returned. */ dateTo?: Date; /** * If true, the statistics data will be returned in hourly grouping. */ hourly?: boolean; } /** * Uri template for the request builder. */ export declare const StatisticsRequestBuilderUriTemplate = "{+baseurl}/pullzone/{%2Did}/safehop/statistics{?dateFrom,dateTo,hourly}"; /** * Metadata for all the requests in the request builder. */ export declare const StatisticsRequestBuilderRequestsMetadata: RequestsMetadata;