import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { DdsqlTabularQueryFetchRequest } from "../models/DdsqlTabularQueryFetchRequest"; import { DdsqlTabularQueryRequest } from "../models/DdsqlTabularQueryRequest"; import { DdsqlTabularQueryResponse } from "../models/DdsqlTabularQueryResponse"; export declare class DDSQLApiRequestFactory extends BaseAPIRequestFactory { executeDdsqlTabularQuery(body: DdsqlTabularQueryRequest, _options?: Configuration): Promise; fetchDdsqlTabularQuery(body: DdsqlTabularQueryFetchRequest, _options?: Configuration): Promise; } export declare class DDSQLApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to executeDdsqlTabularQuery * @throws ApiException if the response code was not in [200, 299] */ executeDdsqlTabularQuery(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to fetchDdsqlTabularQuery * @throws ApiException if the response code was not in [200, 299] */ fetchDdsqlTabularQuery(response: ResponseContext): Promise; } export interface DDSQLApiExecuteDdsqlTabularQueryRequest { /** * @type DdsqlTabularQueryRequest */ body: DdsqlTabularQueryRequest; } export interface DDSQLApiFetchDdsqlTabularQueryRequest { /** * @type DdsqlTabularQueryFetchRequest */ body: DdsqlTabularQueryFetchRequest; } export declare class DDSQLApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: DDSQLApiRequestFactory, responseProcessor?: DDSQLApiResponseProcessor); /** * Submit a DDSQL statement and return either a `running` state with an opaque `query_id` * for the client to poll, or a `completed` state with the column-major result set inlined * when the query finishes quickly enough to be served synchronously. * @param param The request object */ executeDdsqlTabularQuery(param: DDSQLApiExecuteDdsqlTabularQueryRequest, options?: Configuration): Promise; /** * Poll a previously submitted DDSQL query for results. Pass the opaque `query_id` returned * by a prior `ExecuteDdsqlTabularQuery` (or by a prior `FetchDdsqlTabularQuery` that * returned `state: running`) and the server returns either a `running` state to poll again * or a `completed` state with the column-major result set inlined. * @param param The request object */ fetchDdsqlTabularQuery(param: DDSQLApiFetchDdsqlTabularQueryRequest, options?: Configuration): Promise; }