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 { Duration } from "../../../google/protobuf/duration"; import { Timestamp } from "../../../google/protobuf/timestamp"; import { LabelSet } from "../../profilestore/v1alpha1/profilestore"; /** * TargetsRequest contains the parameters for the set of targets to return * * @generated from protobuf message parca.scrape.v1alpha1.TargetsRequest */ export interface TargetsRequest { /** * state is the state of targets to returns * * @generated from protobuf field: parca.scrape.v1alpha1.TargetsRequest.State state = 1 */ state: TargetsRequest_State; } /** * State represents the current state of a target * * @generated from protobuf enum parca.scrape.v1alpha1.TargetsRequest.State */ export declare enum TargetsRequest_State { /** * STATE_ANY_UNSPECIFIED unspecified * * @generated from protobuf enum value: STATE_ANY_UNSPECIFIED = 0; */ ANY_UNSPECIFIED = 0, /** * STATE_ACTIVE target active state * * @generated from protobuf enum value: STATE_ACTIVE = 1; */ ACTIVE = 1, /** * STATE_DROPPED target dropped state * * @generated from protobuf enum value: STATE_DROPPED = 2; */ DROPPED = 2 } /** * TargetsResponse is the set of targets for the given requested state * * @generated from protobuf message parca.scrape.v1alpha1.TargetsResponse */ export interface TargetsResponse { /** * targets is the mapping of targets * * @generated from protobuf field: map targets = 1 */ targets: { [key: string]: Targets; }; } /** * Targets is a list of targets * * @generated from protobuf message parca.scrape.v1alpha1.Targets */ export interface Targets { /** * targets is a list of targets * * @generated from protobuf field: repeated parca.scrape.v1alpha1.Target targets = 1 */ targets: Target[]; } /** * Target is the scrape target representation * * @generated from protobuf message parca.scrape.v1alpha1.Target */ export interface Target { /** * discovered_labels are the set of labels for the target that have been discovered * * @generated from protobuf field: parca.profilestore.v1alpha1.LabelSet discovered_labels = 1 */ discoveredLabels?: LabelSet; /** * labels are the set of labels given for the target * * @generated from protobuf field: parca.profilestore.v1alpha1.LabelSet labels = 2 */ labels?: LabelSet; /** * last_error is the error message most recently received from a scrape attempt * * @generated from protobuf field: string last_error = 3 */ lastError: string; /** * last_scrape is the time stamp the last scrape request was performed * * @generated from protobuf field: google.protobuf.Timestamp last_scrape = 4 */ lastScrape?: Timestamp; /** * last_scrape_duration is the duration of the last scrape request * * @generated from protobuf field: google.protobuf.Duration last_scrape_duration = 5 */ lastScrapeDuration?: Duration; /** * url is the url of the target * * @generated from protobuf field: string url = 6 */ url: string; /** * health indicates the current health of the target * * @generated from protobuf field: parca.scrape.v1alpha1.Target.Health health = 7 */ health: Target_Health; } /** * Health are the possible health values of a target * * @generated from protobuf enum parca.scrape.v1alpha1.Target.Health */ export declare enum Target_Health { /** * HEALTH_UNKNOWN_UNSPECIFIED unspecified * * @generated from protobuf enum value: HEALTH_UNKNOWN_UNSPECIFIED = 0; */ UNKNOWN_UNSPECIFIED = 0, /** * HEALTH_GOOD healthy target * * @generated from protobuf enum value: HEALTH_GOOD = 1; */ GOOD = 1, /** * HEALTH_BAD unhealthy target * * @generated from protobuf enum value: HEALTH_BAD = 2; */ BAD = 2 } declare class TargetsRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): TargetsRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TargetsRequest): TargetsRequest; internalBinaryWrite(message: TargetsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.scrape.v1alpha1.TargetsRequest */ export declare const TargetsRequest: TargetsRequest$Type; declare class TargetsResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): TargetsResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TargetsResponse): TargetsResponse; private binaryReadMap1; internalBinaryWrite(message: TargetsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.scrape.v1alpha1.TargetsResponse */ export declare const TargetsResponse: TargetsResponse$Type; declare class Targets$Type extends MessageType { constructor(); create(value?: PartialMessage): Targets; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Targets): Targets; internalBinaryWrite(message: Targets, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.scrape.v1alpha1.Targets */ export declare const Targets: Targets$Type; declare class Target$Type extends MessageType { constructor(); create(value?: PartialMessage): Target; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Target): Target; internalBinaryWrite(message: Target, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message parca.scrape.v1alpha1.Target */ export declare const Target: Target$Type; /** * @generated ServiceType for protobuf service parca.scrape.v1alpha1.ScrapeService */ export declare const ScrapeService: ServiceType; export {}; //# sourceMappingURL=scrape.d.ts.map