@viamrobotics/sdk 0.74.2 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/audio-in/audio-in.d.ts +12 -1
- package/dist/components/audio-in/client.d.ts +1 -0
- package/dist/components/audio-out/audio-out.d.ts +12 -1
- package/dist/components/audio-out/client.d.ts +1 -0
- package/dist/components/board/board.d.ts +15 -0
- package/dist/components/board/client.d.ts +1 -0
- package/dist/components/encoder/client.d.ts +1 -0
- package/dist/components/encoder/encoder.d.ts +15 -0
- package/dist/components/input-controller/client.d.ts +1 -0
- package/dist/components/input-controller/input-controller.d.ts +15 -0
- package/dist/components/motor/client.d.ts +1 -0
- package/dist/components/motor/motor.d.ts +15 -0
- package/dist/components/movement-sensor/client.d.ts +1 -0
- package/dist/components/movement-sensor/movement-sensor.d.ts +15 -0
- package/dist/components/sensor/client.d.ts +1 -0
- package/dist/components/servo/client.d.ts +1 -0
- package/dist/components/servo/servo.d.ts +15 -0
- package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +6 -0
- package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +3 -3
- package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1 -1
- package/dist/gen/opentelemetry/proto/processcontext/v1development/process_context_pb.d.ts +79 -0
- package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +125 -87
- package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +13 -1
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +248 -0
- package/dist/main.es.js +4182 -3976
- package/dist/main.umd.js +8 -8
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Resource, Struct } from '../../types';
|
|
2
|
-
import type { AudioInfo } from '../../gen/common/v1/common_pb';
|
|
2
|
+
import type { AudioInfo, Geometry } from '../../gen/common/v1/common_pb';
|
|
3
3
|
import type { AudioProperties } from '../../audio-common';
|
|
4
4
|
export interface AudioChunk {
|
|
5
5
|
audioData: Uint8Array;
|
|
@@ -11,6 +11,17 @@ export interface AudioChunk {
|
|
|
11
11
|
}
|
|
12
12
|
/** Represents a device that takes audio input. */
|
|
13
13
|
export interface AudioIn extends Resource {
|
|
14
|
+
/**
|
|
15
|
+
* Get the geometries of the component in their current configuration.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* const audioIn = new VIAM.AudioInClient(machine, 'my_audio_in');
|
|
21
|
+
* const geometries = await audioIn.getGeometries();
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
14
25
|
/**
|
|
15
26
|
* Stream audio from the device.
|
|
16
27
|
*
|
|
@@ -9,6 +9,7 @@ export declare class AudioInClient implements AudioIn {
|
|
|
9
9
|
private readonly options;
|
|
10
10
|
callOptions: CallOptions;
|
|
11
11
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
12
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
12
13
|
getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: {}, callOptions?: CallOptions): AsyncIterable<AudioChunk>;
|
|
13
14
|
getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
14
15
|
supportedCodecs: string[];
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import type { Resource, Struct } from '../../types';
|
|
2
|
-
import type { AudioInfo } from '../../gen/common/v1/common_pb';
|
|
2
|
+
import type { AudioInfo, Geometry } from '../../gen/common/v1/common_pb';
|
|
3
3
|
import type { AudioProperties } from '../../audio-common';
|
|
4
4
|
/** Represents a device that outputs audio. */
|
|
5
5
|
export interface AudioOut extends Resource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the geometries of the component in their current configuration.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* const audioOut = new VIAM.AudioOutClient(machine, 'my_audio_out');
|
|
13
|
+
* const geometries = await audioOut.getGeometries();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
6
17
|
/**
|
|
7
18
|
* Play audio on the device.
|
|
8
19
|
*
|
|
@@ -15,6 +15,7 @@ export declare class AudioOutClient implements AudioOut {
|
|
|
15
15
|
private readonly options;
|
|
16
16
|
callOptions: CallOptions;
|
|
17
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
18
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
18
19
|
play(audioData: Uint8Array, audioInfo?: AudioInfo, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
19
20
|
playStream(audioInfo: AudioInfo, chunks: AsyncIterable<Uint8Array>, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
20
21
|
getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Duration, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Resource } from '../../types';
|
|
3
3
|
import * as boardApi from '../../gen/component/board/v1/board_pb';
|
|
4
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
4
5
|
export type AnalogValue = boardApi.ReadAnalogReaderResponse;
|
|
5
6
|
export type PowerMode = boardApi.PowerMode;
|
|
6
7
|
export declare const AnalogValue: typeof boardApi.ReadAnalogReaderResponse, PowerMode: typeof boardApi.PowerMode;
|
|
@@ -14,6 +15,20 @@ export interface Tick {
|
|
|
14
15
|
* analog readers, and digital interrupts.
|
|
15
16
|
*/
|
|
16
17
|
export interface Board extends Resource {
|
|
18
|
+
/**
|
|
19
|
+
* Get the geometries of the component in their current configuration.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* const board = new VIAM.BoardClient(machine, 'my_board');
|
|
25
|
+
* const geometries = await board.getGeometries();
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* For more information, see [Board
|
|
29
|
+
* API](https://docs.viam.com/dev/reference/apis/components/board/#getgeometries).
|
|
30
|
+
*/
|
|
31
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
17
32
|
/**
|
|
18
33
|
* Get the high/low state of the given pin.
|
|
19
34
|
*
|
|
@@ -14,6 +14,7 @@ export declare class BoardClient implements Board {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
setGPIO(pin: string, high: boolean, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
19
|
getGPIO(pin: string, extra?: {}, callOptions?: CallOptions): Promise<boolean>;
|
|
19
20
|
getPWM(pin: string, extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
@@ -14,6 +14,7 @@ export declare class EncoderClient implements Encoder {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
resetPosition(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
19
|
getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/encoder/v1/encoder_pb").GetPropertiesResponse>;
|
|
19
20
|
getPosition(positionType?: EncoderPositionType, extra?: {}, callOptions?: CallOptions): Promise<readonly [number, import("../../gen/component/encoder/v1/encoder_pb").PositionType]>;
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
import type { Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Resource } from '../../types';
|
|
3
3
|
import * as encoderApi from '../../gen/component/encoder/v1/encoder_pb';
|
|
4
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
4
5
|
export type EncoderProperties = encoderApi.GetPropertiesResponse;
|
|
5
6
|
export type EncoderPositionType = encoderApi.PositionType;
|
|
6
7
|
export declare const EncoderProperties: typeof encoderApi.GetPropertiesResponse, EncoderPositionType: typeof encoderApi.PositionType;
|
|
7
8
|
/** Represents a physical encoder. */
|
|
8
9
|
export interface Encoder extends Resource {
|
|
10
|
+
/**
|
|
11
|
+
* Get the geometries of the component in their current configuration.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* const encoder = new VIAM.EncoderClient(machine, 'my_encoder');
|
|
17
|
+
* const geometries = await encoder.getGeometries();
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* For more information, see [Encoder
|
|
21
|
+
* API](https://docs.viam.com/dev/reference/apis/components/encoder/#getgeometries).
|
|
22
|
+
*/
|
|
23
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
9
24
|
/**
|
|
10
25
|
* Set the current position of the encoder as the new zero position.
|
|
11
26
|
*
|
|
@@ -14,6 +14,7 @@ export declare class InputControllerClient implements InputController {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
getEvents(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/inputcontroller/v1/input_controller_pb").Event[]>;
|
|
18
19
|
triggerEvent(event: InputControllerEvent, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
19
20
|
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import type { PlainMessage, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import * as pb from '../../gen/component/inputcontroller/v1/input_controller_pb';
|
|
3
3
|
import type { Resource } from '../../types';
|
|
4
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
4
5
|
export type InputControllerEvent = PlainMessage<pb.Event>;
|
|
5
6
|
export declare const InputControllerEvent: typeof pb.Event;
|
|
6
7
|
/** Represents a human interface device like a mouse or keyboard that emits events for controls. */
|
|
7
8
|
export interface InputController extends Resource {
|
|
9
|
+
/**
|
|
10
|
+
* Get the geometries of the component in their current configuration.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* const controller = new VIAM.InputControllerClient(machine, 'my_controller');
|
|
16
|
+
* const geometries = await controller.getGeometries();
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* For more information, see [Input Controller
|
|
20
|
+
* API](https://docs.viam.com/dev/reference/apis/components/input-controller/#getgeometries).
|
|
21
|
+
*/
|
|
22
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
8
23
|
/**
|
|
9
24
|
* Returns a list of events representing the last event on each control.
|
|
10
25
|
*
|
|
@@ -14,6 +14,7 @@ export declare class MotorClient implements Motor {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
setPower(power: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
19
|
goFor(rpm: number, revolutions: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
19
20
|
goTo(rpm: number, positionRevolutions: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
import type { Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Resource } from '../../types';
|
|
3
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
3
4
|
export interface Properties {
|
|
4
5
|
/** Whether a motor supports position reporting. */
|
|
5
6
|
positionReporting: boolean;
|
|
6
7
|
}
|
|
7
8
|
/** Represents a physical motor. */
|
|
8
9
|
export interface Motor extends Resource {
|
|
10
|
+
/**
|
|
11
|
+
* Get the geometries of the component in their current configuration.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* const motor = new VIAM.MotorClient(machine, 'my_motor');
|
|
17
|
+
* const geometries = await motor.getGeometries();
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* For more information, see [Motor
|
|
21
|
+
* API](https://docs.viam.com/dev/reference/apis/components/motor/#getgeometries).
|
|
22
|
+
*/
|
|
23
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
9
24
|
/**
|
|
10
25
|
* Set the percentage of the motor's total power that should be employed.
|
|
11
26
|
*
|
|
@@ -14,6 +14,7 @@ export declare class MovementSensorClient implements MovementSensor {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
getLinearVelocity(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
|
|
18
19
|
getAngularVelocity(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
|
|
19
20
|
getCompassHeading(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Orientation, Resource, Vector3 } from '../../types';
|
|
3
3
|
import * as sensorApi from '../../gen/component/movementsensor/v1/movementsensor_pb';
|
|
4
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
4
5
|
export type MovementSensorAccuracy = sensorApi.GetAccuracyResponse;
|
|
5
6
|
export type MovementSensorPosition = sensorApi.GetPositionResponse;
|
|
6
7
|
export type MovementSensorProperties = sensorApi.GetPropertiesResponse;
|
|
@@ -10,6 +11,20 @@ export declare const MovementSensorAccuracy: typeof sensorApi.GetAccuracyRespons
|
|
|
10
11
|
* speed.
|
|
11
12
|
*/
|
|
12
13
|
export interface MovementSensor extends Resource {
|
|
14
|
+
/**
|
|
15
|
+
* Get the geometries of the component in their current configuration.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* const movementSensor = new VIAM.MovementSensorClient(machine, 'my_movement_sensor');
|
|
21
|
+
* const geometries = await movementSensor.getGeometries();
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* For more information, see [Movement Sensor
|
|
25
|
+
* API](https://docs.viam.com/dev/reference/apis/components/movement-sensor/#getgeometries).
|
|
26
|
+
*/
|
|
27
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
13
28
|
/**
|
|
14
29
|
* Get linear velocity across x/y/z axes.
|
|
15
30
|
*
|
|
@@ -14,6 +14,7 @@ export declare class SensorClient implements Sensor {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
|
|
18
19
|
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
20
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
@@ -14,6 +14,7 @@ export declare class ServoClient implements Servo {
|
|
|
14
14
|
private readonly options;
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
|
+
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
17
18
|
move(angleDeg: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
19
|
getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
19
20
|
stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import type { Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Resource } from '../../types';
|
|
3
|
+
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
3
4
|
/** Represents a physical servo. */
|
|
4
5
|
export interface Servo extends Resource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the geometries of the component in their current configuration.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* const servo = new VIAM.ServoClient(machine, 'my_servo');
|
|
13
|
+
* const geometries = await servo.getGeometries();
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* For more information, see [Servo
|
|
17
|
+
* API](https://docs.viam.com/dev/reference/apis/components/servo/#getgeometries).
|
|
18
|
+
*/
|
|
19
|
+
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
5
20
|
/**
|
|
6
21
|
* Move the servo by a given angle in degrees.
|
|
7
22
|
*
|
package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
22
22
|
import type { ProfilesDictionary, ResourceProfiles } from "../../../profiles/v1development/profiles_pb.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
+
* Status: [Alpha]
|
|
26
|
+
*
|
|
25
27
|
* @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceRequest
|
|
26
28
|
*/
|
|
27
29
|
export declare class ExportProfilesServiceRequest extends Message<ExportProfilesServiceRequest> {
|
|
@@ -59,6 +61,8 @@ export declare class ExportProfilesServiceRequest extends Message<ExportProfiles
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
/**
|
|
64
|
+
* Status: [Alpha]
|
|
65
|
+
*
|
|
62
66
|
* @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesServiceResponse
|
|
63
67
|
*/
|
|
64
68
|
export declare class ExportProfilesServiceResponse extends Message<ExportProfilesServiceResponse> {
|
|
@@ -99,6 +103,8 @@ export declare class ExportProfilesServiceResponse extends Message<ExportProfile
|
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
/**
|
|
106
|
+
* Status: [Alpha]
|
|
107
|
+
*
|
|
102
108
|
* @generated from message opentelemetry.proto.collector.profiles.v1development.ExportProfilesPartialSuccess
|
|
103
109
|
*/
|
|
104
110
|
export declare class ExportProfilesPartialSuccess extends Message<ExportProfilesPartialSuccess> {
|
|
@@ -87,7 +87,7 @@ export declare class AnyValue extends Message<AnyValue> {
|
|
|
87
87
|
* Profiling signal and process the data as if this value were absent or
|
|
88
88
|
* empty, ignoring its semantic content for the non-Profiling signal.
|
|
89
89
|
*
|
|
90
|
-
* Status: [
|
|
90
|
+
* Status: [Alpha]
|
|
91
91
|
*
|
|
92
92
|
* @generated from field: int32 string_value_strindex = 8;
|
|
93
93
|
*/
|
|
@@ -185,7 +185,7 @@ export declare class KeyValueList extends Message<KeyValueList> {
|
|
|
185
185
|
export declare class KeyValue extends Message<KeyValue> {
|
|
186
186
|
/**
|
|
187
187
|
* The key name of the pair.
|
|
188
|
-
*
|
|
188
|
+
* key_strindex MUST NOT be set if key is used.
|
|
189
189
|
*
|
|
190
190
|
* @generated from field: string key = 1;
|
|
191
191
|
*/
|
|
@@ -209,7 +209,7 @@ export declare class KeyValue extends Message<KeyValue> {
|
|
|
209
209
|
* Profiling signal and process the data as if this value were absent or
|
|
210
210
|
* empty, ignoring its semantic content for the non-Profiling signal.
|
|
211
211
|
*
|
|
212
|
-
* Status: [
|
|
212
|
+
* Status: [Alpha]
|
|
213
213
|
*
|
|
214
214
|
* @generated from field: int32 key_strindex = 3;
|
|
215
215
|
*/
|
|
@@ -400,7 +400,7 @@ export declare class Metric extends Message<Metric> {
|
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
402
|
* The unit in which the metric value is reported. Follows the format
|
|
403
|
-
* described by https://
|
|
403
|
+
* described by https://ucum.org/ucum and https://units-of-measurement.org/
|
|
404
404
|
*
|
|
405
405
|
* @generated from field: string unit = 3;
|
|
406
406
|
*/
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// Copyright The OpenTelemetry Authors
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0
|
|
16
|
+
// @generated from file opentelemetry/proto/processcontext/v1development/process_context.proto (package opentelemetry.proto.processcontext.v1development, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
|
+
import type { Resource } from "../../resource/v1/resource_pb.js";
|
|
23
|
+
import type { KeyValue } from "../../common/v1/common_pb.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* ProcessContext represents the payload for the process context sharing mechanism.
|
|
27
|
+
*
|
|
28
|
+
* This message is designed to be published by OpenTelemetry SDKs via a memory-mapped
|
|
29
|
+
* region, allowing external readers (such as the OpenTelemetry eBPF Profiler) to
|
|
30
|
+
* discover and read resource attributes from instrumented processes without requiring
|
|
31
|
+
* direct integration or process activity. It is not part of OTLP and is not
|
|
32
|
+
* exchanged via the OpenTelemetry Collector.
|
|
33
|
+
*
|
|
34
|
+
* See OTEP 4719 (https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/profiles/4719-process-ctx.md)
|
|
35
|
+
* for details of this mechanism.
|
|
36
|
+
*
|
|
37
|
+
* Status: [Development]
|
|
38
|
+
*
|
|
39
|
+
* @generated from message opentelemetry.proto.processcontext.v1development.ProcessContext
|
|
40
|
+
*/
|
|
41
|
+
export declare class ProcessContext extends Message<ProcessContext> {
|
|
42
|
+
/**
|
|
43
|
+
* The resource for this process.
|
|
44
|
+
* If this field is not set then no resource info is known.
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
|
|
47
|
+
*/
|
|
48
|
+
resource?: Resource;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Additional attributes to share with external readers that are not part of
|
|
52
|
+
* the standard Resource. [Optional]
|
|
53
|
+
*
|
|
54
|
+
* This field allows publishers to include supplementary key-value pairs that
|
|
55
|
+
* may be useful for external readers but are not part of the SDK's configured
|
|
56
|
+
* Resource.
|
|
57
|
+
*
|
|
58
|
+
* Consider adding any keys here to the profiles semantic conventions in
|
|
59
|
+
* https://opentelemetry.io/docs/specs/semconv/general/profiles/
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 2;
|
|
62
|
+
*/
|
|
63
|
+
attributes: KeyValue[];
|
|
64
|
+
|
|
65
|
+
constructor(data?: PartialMessage<ProcessContext>);
|
|
66
|
+
|
|
67
|
+
static readonly runtime: typeof proto3;
|
|
68
|
+
static readonly typeName = "opentelemetry.proto.processcontext.v1development.ProcessContext";
|
|
69
|
+
static readonly fields: FieldList;
|
|
70
|
+
|
|
71
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProcessContext;
|
|
72
|
+
|
|
73
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProcessContext;
|
|
74
|
+
|
|
75
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProcessContext;
|
|
76
|
+
|
|
77
|
+
static equals(a: ProcessContext | PlainMessage<ProcessContext> | undefined, b: ProcessContext | PlainMessage<ProcessContext> | undefined): boolean;
|
|
78
|
+
}
|
|
79
|
+
|