Skip to content

Commit 1cd1779

Browse files
committed
GRPC clients version 12.2.1
1 parent 09089ef commit 1cd1779

File tree

7 files changed

+316
-3
lines changed

7 files changed

+316
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.2.0
1+
12.2.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clarifai-nodejs-grpc",
3-
"version": "12.2.0",
3+
"version": "12.2.1",
44
"description": "The official Clarifai Node.js gRPC client",
55
"main": "src/index.js",
66
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",

proto/clarifai/api/resources.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4923,6 +4923,17 @@ message AutoscaleConfig {
49234923

49244924

49254925

4926+
// DeploymentMetrics captures metrics and status for a Deployment's underlying runners.
4927+
// This allows tracking of the desired replica count and the actual live replica count.
4928+
message DeploymentMetrics {
4929+
// The number of replicas desired by the orchestrator.
4930+
uint32 desired_replicas = 1;
4931+
// The actual number of live replicas connected and ready to process requests.
4932+
uint32 live_replicas = 2;
4933+
// If true, the deployment is currently rolling out a new version.
4934+
bool rollout_in_progress = 3;
4935+
}
4936+
49264937
// A deployment allows you to configure how runners for a particular type of resource will
49274938
// scale up and down. These are unique per user_id, nodepool and model so for differnet nodepools
49284939
// you can scale differently.
@@ -5004,6 +5015,9 @@ message Deployment {
50045015
// When any priority value is non-zero, the response will populate this field instead
50055016
// of 'nodepools'.
50065017
repeated DeploymentNodepool deployment_nodepools = 19;
5018+
5019+
// Real-time metrics for this deployment, including the desired and live replica counts.
5020+
DeploymentMetrics deployment_metrics = 20;
50075021
}
50085022

50095023
// DeploymentNodepool associates a nodepool with a deployment and holds per-nodepool settings.

proto/clarifai/api/resources_pb.d.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8689,6 +8689,32 @@ export namespace AutoscaleConfig {
86898689
}
86908690
}
86918691

8692+
export class DeploymentMetrics extends jspb.Message {
8693+
getDesiredReplicas(): number;
8694+
setDesiredReplicas(value: number): DeploymentMetrics;
8695+
getLiveReplicas(): number;
8696+
setLiveReplicas(value: number): DeploymentMetrics;
8697+
getRolloutInProgress(): boolean;
8698+
setRolloutInProgress(value: boolean): DeploymentMetrics;
8699+
8700+
serializeBinary(): Uint8Array;
8701+
toObject(includeInstance?: boolean): DeploymentMetrics.AsObject;
8702+
static toObject(includeInstance: boolean, msg: DeploymentMetrics): DeploymentMetrics.AsObject;
8703+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
8704+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
8705+
static serializeBinaryToWriter(message: DeploymentMetrics, writer: jspb.BinaryWriter): void;
8706+
static deserializeBinary(bytes: Uint8Array): DeploymentMetrics;
8707+
static deserializeBinaryFromReader(message: DeploymentMetrics, reader: jspb.BinaryReader): DeploymentMetrics;
8708+
}
8709+
8710+
export namespace DeploymentMetrics {
8711+
export type AsObject = {
8712+
desiredReplicas: number,
8713+
liveReplicas: number,
8714+
rolloutInProgress: boolean,
8715+
}
8716+
}
8717+
86928718
export class Deployment extends jspb.Message {
86938719
getId(): string;
86948720
setId(value: string): Deployment;
@@ -8755,6 +8781,11 @@ export class Deployment extends jspb.Message {
87558781
setDeploymentNodepoolsList(value: Array<DeploymentNodepool>): Deployment;
87568782
addDeploymentNodepools(value?: DeploymentNodepool, index?: number): DeploymentNodepool;
87578783

8784+
hasDeploymentMetrics(): boolean;
8785+
clearDeploymentMetrics(): void;
8786+
getDeploymentMetrics(): DeploymentMetrics | undefined;
8787+
setDeploymentMetrics(value?: DeploymentMetrics): Deployment;
8788+
87588789
serializeBinary(): Uint8Array;
87598790
toObject(includeInstance?: boolean): Deployment.AsObject;
87608791
static toObject(includeInstance: boolean, msg: Deployment): Deployment.AsObject;
@@ -8784,6 +8815,7 @@ export namespace Deployment {
87848815
emailReminderAfter?: google_protobuf_duration_pb.Duration.AsObject,
87858816
gracefulDeploy: boolean,
87868817
deploymentNodepoolsList: Array<DeploymentNodepool.AsObject>,
8818+
deploymentMetrics?: DeploymentMetrics.AsObject,
87878819
}
87888820

87898821
export enum SchedulingChoice {

0 commit comments

Comments
 (0)