import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { ProfileMetadata } from "../../query/v1alpha1/query"; import { TableArrow } from "../../query/v1alpha1/query"; import { Source } from "../../query/v1alpha1/query"; import { FlamegraphArrow } from "../../query/v1alpha1/query"; import { Callgraph } from "../../query/v1alpha1/query"; import { Top } from "../../query/v1alpha1/query"; import { Flamegraph } from "../../query/v1alpha1/query"; import { ProfileType } from "../../query/v1alpha1/query"; import { Filter } from "../../query/v1alpha1/query"; import { GroupBy } from "../../query/v1alpha1/query"; import { RuntimeFilter } from "../../query/v1alpha1/query"; import { QueryRequest_ReportType } from "../../query/v1alpha1/query"; /** * UploadRequest represents the request with profile bytes and description. * * @generated from protobuf message parca.share.v1alpha1.UploadRequest */ export interface UploadRequest { /** * pprof bytes of the profile to be uploaded. * * @generated from protobuf field: bytes profile = 1 */ profile: Uint8Array; /** * Description of the profile. * * @generated from protobuf field: string description = 2 */ description: string; } /** * UploadResponse represents the response with the link that can be used to access the profile. * * @generated from protobuf message parca.share.v1alpha1.UploadResponse */ export interface UploadResponse { /** * id of the uploaded profile. * * @generated from protobuf field: string id = 1 */ id: string; /** * link that can be used to access the profile. * * @generated from protobuf field: string link = 2 */ link: string; } /** * QueryRequest represents the request with the id of the profile to be queried. * * @generated from protobuf message parca.share.v1alpha1.QueryRequest */ export interface QueryRequest { /** * id of the profile to be queried. * * @generated from protobuf field: string id = 1 */ id: string; /** * Type of the profile to be queried. * * @generated from protobuf field: optional string profile_type = 2 */ profileType?: string; /** * report_type is the type of report to return * * @generated from protobuf field: parca.query.v1alpha1.QueryRequest.ReportType report_type = 3 */ reportType: QueryRequest_ReportType; /** * filter_query is the query string to filter the profile samples * * @deprecated * @generated from protobuf field: optional string filter_query = 4 [deprecated = true] */ filterQuery?: string; /** * node_trim_threshold is the threshold % where the nodes with Value less than this will be removed from the report * * @generated from protobuf field: optional float node_trim_threshold = 5 */ nodeTrimThreshold?: number; /** * which runtime frames to filter out, often interpreter frames like python or ruby are not super useful by default * * @deprecated * @generated from protobuf field: optional parca.query.v1alpha1.RuntimeFilter runtime_filter = 6 [deprecated = true] */ runtimeFilter?: RuntimeFilter; /** * group_by indicates the fields to group by * * @generated from protobuf field: optional parca.query.v1alpha1.GroupBy group_by = 7 */ groupBy?: GroupBy; /** * invert_call_stack inverts the call stacks in the flamegraph * * @generated from protobuf field: optional bool invert_call_stack = 8 */ invertCallStack?: boolean; /** * filter is a varying set of filter to apply to the query * * @generated from protobuf field: repeated parca.query.v1alpha1.Filter filter = 9 */ filter: Filter[]; /** * sandwich_by_function is a function name to use for sandwich view functionality * * @generated from protobuf field: optional string sandwich_by_function = 10 */ sandwichByFunction?: string; } /** * ProfileTypesRequest represents the profile types request with the id of the profile to be queried. * * @generated from protobuf message parca.share.v1alpha1.ProfileTypesRequest */ export interface ProfileTypesRequest { /** * id of the profile's types to be queried. * * @generated from protobuf field: string id = 1 */ id: string; } /** * ProfileTypesResponse represents the response with the list of available profile types. * * @generated from protobuf message parca.share.v1alpha1.ProfileTypesResponse */ export interface ProfileTypesResponse { /** * list of available profile types. * * @generated from protobuf field: repeated parca.query.v1alpha1.ProfileType types = 1 */ types: ProfileType[]; /** * description of the profile uploaded. * * @generated from protobuf field: string description = 2 */ description: string; } /** * QueryResponse is the returned report for the given query. * * @generated from protobuf message parca.share.v1alpha1.QueryResponse */ export interface QueryResponse { /** * report is the generated report * * @generated from protobuf oneof: report */ report: { oneofKind: "flamegraph"; /** * flamegraph is a flamegraph representation of the report * * @generated from protobuf field: parca.query.v1alpha1.Flamegraph flamegraph = 1 */ flamegraph: Flamegraph; } | { oneofKind: "pprof"; /** * pprof is a pprof profile as compressed bytes * * @generated from protobuf field: bytes pprof = 2 */ pprof: Uint8Array; } | { oneofKind: "top"; /** * top is a top list representation of the report * * @generated from protobuf field: parca.query.v1alpha1.Top top = 3 */ top: Top; } | { oneofKind: "callgraph"; /** * callgraph is a callgraph nodes and edges representation of the report * * @generated from protobuf field: parca.query.v1alpha1.Callgraph callgraph = 4 */ callgraph: Callgraph; } | { oneofKind: "flamegraphArrow"; /** * flamegraph_arrow is a flamegraph encoded as a arrow record * * @generated from protobuf field: parca.query.v1alpha1.FlamegraphArrow flamegraph_arrow = 7 */ flamegraphArrow: FlamegraphArrow; } | { oneofKind: "source"; /** * source is the source report type result * * @generated from protobuf field: parca.query.v1alpha1.Source source = 8 */ source: Source; } | { oneofKind: "tableArrow"; /** * table_arrow is a table encoded as a arrow record * * @generated from protobuf field: parca.query.v1alpha1.TableArrow table_arrow = 9 */ tableArrow: TableArrow; } | { oneofKind: "profileMetadata"; /** * profile_metadata contains metadata about the profile i.e. binaries, labels * * @generated from protobuf field: parca.query.v1alpha1.ProfileMetadata profile_metadata = 10 */ profileMetadata: ProfileMetadata; } | { oneofKind: undefined; }; /** * total is the total number of samples shown in the report. * * @generated from protobuf field: int64 total = 5 */ total: bigint; /** * filtered is the number of samples filtered out of the report. * * @generated from protobuf field: int64 filtered = 6 */ filtered: bigint; } declare class UploadRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): UploadRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadRequest): UploadRequest; internalBinaryWrite(message: UploadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.share.v1alpha1.UploadRequest */ export declare const UploadRequest: UploadRequest$Type; declare class UploadResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): UploadResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadResponse): UploadResponse; internalBinaryWrite(message: UploadResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.share.v1alpha1.UploadResponse */ export declare const UploadResponse: UploadResponse$Type; declare class QueryRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): QueryRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryRequest): QueryRequest; internalBinaryWrite(message: QueryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.share.v1alpha1.QueryRequest */ export declare const QueryRequest: QueryRequest$Type; declare class ProfileTypesRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): ProfileTypesRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProfileTypesRequest): ProfileTypesRequest; internalBinaryWrite(message: ProfileTypesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.share.v1alpha1.ProfileTypesRequest */ export declare const ProfileTypesRequest: ProfileTypesRequest$Type; declare class ProfileTypesResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): ProfileTypesResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProfileTypesResponse): ProfileTypesResponse; internalBinaryWrite(message: ProfileTypesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.share.v1alpha1.ProfileTypesResponse */ export declare const ProfileTypesResponse: ProfileTypesResponse$Type; declare class QueryResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): QueryResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryResponse): QueryResponse; internalBinaryWrite(message: QueryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.share.v1alpha1.QueryResponse */ export declare const QueryResponse: QueryResponse$Type; /** * @generated ServiceType for protobuf service parca.share.v1alpha1.ShareService */ export declare const ShareService: ServiceType; export {}; //# sourceMappingURL=share.d.ts.map