diff --git a/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs
new file mode 100644
index 0000000..ed58407
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.BasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs
@@ -0,0 +1,503 @@
+
+#nullable enable
+
+namespace Baseten
+{
+ public partial class BasetenClient
+ {
+
+
+ private static readonly global::Baseten.EndPointSecurityRequirement s_CreateLoopsDeploymentsByDeploymentIdMetricsSecurityRequirement0 =
+ new global::Baseten.EndPointSecurityRequirement
+ {
+ Authorizations = new global::Baseten.EndPointAuthorizationRequirement[]
+ { new global::Baseten.EndPointAuthorizationRequirement
+ {
+ Type = "Http",
+ SchemeId = "HttpBearer",
+ Location = "Header",
+ Name = "Bearer",
+ FriendlyName = "Bearer",
+ },
+ },
+ };
+ private static readonly global::Baseten.EndPointSecurityRequirement[] s_CreateLoopsDeploymentsByDeploymentIdMetricsSecurityRequirements =
+ new global::Baseten.EndPointSecurityRequirement[]
+ { s_CreateLoopsDeploymentsByDeploymentIdMetricsSecurityRequirement0,
+ };
+ partial void PrepareCreateLoopsDeploymentsByDeploymentIdMetricsArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string deploymentId,
+ global::Baseten.GetLoopsDeploymentMetricsRequestV1 request);
+ partial void PrepareCreateLoopsDeploymentsByDeploymentIdMetricsRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string deploymentId,
+ global::Baseten.GetLoopsDeploymentMetricsRequestV1 request);
+ partial void ProcessCreateLoopsDeploymentsByDeploymentIdMetricsResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessCreateLoopsDeploymentsByDeploymentIdMetricsResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Get metrics for a Loops trainer deployment.
+ /// Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/loops/deployments/{deployment_id}/metrics \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "end_epoch_millis": null,
+ /// "start_epoch_millis": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task CreateLoopsDeploymentsByDeploymentIdMetricsAsync(
+ string deploymentId,
+
+ global::Baseten.GetLoopsDeploymentMetricsRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await CreateLoopsDeploymentsByDeploymentIdMetricsAsResponseAsync(
+ deploymentId: deploymentId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Get metrics for a Loops trainer deployment.
+ /// Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/loops/deployments/{deployment_id}/metrics \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "end_epoch_millis": null,
+ /// "start_epoch_millis": null
+ /// }'
+ ///
+ public async global::System.Threading.Tasks.Task> CreateLoopsDeploymentsByDeploymentIdMetricsAsResponseAsync(
+ string deploymentId,
+
+ global::Baseten.GetLoopsDeploymentMetricsRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareCreateLoopsDeploymentsByDeploymentIdMetricsArguments(
+ httpClient: HttpClient,
+ deploymentId: ref deploymentId,
+ request: request);
+
+
+ var __authorizations = global::Baseten.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_CreateLoopsDeploymentsByDeploymentIdMetricsSecurityRequirements,
+ operationName: "CreateLoopsDeploymentsByDeploymentIdMetricsAsync");
+
+ using var __timeoutCancellationTokenSource = global::Baseten.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken);
+ var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken;
+ var __effectiveReadResponseAsString = global::Baseten.AutoSDKRequestOptionsSupport.GetReadResponseAsString(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ fallbackValue: ReadResponseAsString);
+ var __maxAttempts = global::Baseten.AutoSDKRequestOptionsSupport.GetMaxAttempts(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ supportsRetry: true);
+
+ global::System.Net.Http.HttpRequestMessage __CreateHttpRequest()
+ {
+
+ var __pathBuilder = new global::Baseten.PathBuilder(
+ path: $"/v1/loops/deployments/{deploymentId}/metrics",
+ baseUri: HttpClient.BaseAddress);
+ var __path = __pathBuilder.ToString();
+ __path = global::Baseten.AutoSDKRequestOptionsSupport.AppendQueryParameters(
+ path: __path,
+ clientParameters: Options.QueryParameters,
+ requestParameters: requestOptions?.QueryParameters);
+ var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));
+#if NET6_0_OR_GREATER
+ __httpRequest.Version = global::System.Net.HttpVersion.Version11;
+ __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher;
+#endif
+
+ foreach (var __authorization in __authorizations)
+ {
+ if (__authorization.Type == "Http" ||
+ __authorization.Type == "OAuth2" ||
+ __authorization.Type == "OpenIdConnect")
+ {
+ __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
+ scheme: __authorization.Name,
+ parameter: __authorization.Value);
+ }
+ else if (__authorization.Type == "ApiKey" &&
+ __authorization.Location == "Header")
+ {
+ __httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
+ }
+ }
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Baseten.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareCreateLoopsDeploymentsByDeploymentIdMetricsRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ deploymentId: deploymentId!,
+ request: request);
+
+ return __httpRequest;
+ }
+
+ global::System.Net.Http.HttpRequestMessage? __httpRequest = null;
+ global::System.Net.Http.HttpResponseMessage? __response = null;
+ var __attemptNumber = 0;
+ try
+ {
+ for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++)
+ {
+ __attemptNumber = __attempt;
+ __httpRequest = __CreateHttpRequest();
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createLoopsDeploymentsByDeploymentIdMetrics",
+ methodName: "CreateLoopsDeploymentsByDeploymentIdMetricsAsync",
+ pathTemplate: "$\"/v1/loops/deployments/{deploymentId}/metrics\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ try
+ {
+ __response = await HttpClient.SendAsync(
+ request: __httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ }
+ catch (global::System.Net.Http.HttpRequestException __exception)
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: null,
+ attempt: __attempt);
+ var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested;
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createLoopsDeploymentsByDeploymentIdMetrics",
+ methodName: "CreateLoopsDeploymentsByDeploymentIdMetricsAsync",
+ pathTemplate: "$\"/v1/loops/deployments/{deploymentId}/metrics\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: null,
+ exception: __exception,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: __willRetry,
+ retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null,
+ retryReason: "exception",
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ if (!__willRetry)
+ {
+ throw;
+ }
+
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ if (__response != null &&
+ __attempt < __maxAttempts &&
+ global::Baseten.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode))
+ {
+ var __retryDelay = global::Baseten.AutoSDKRequestOptionsSupport.GetRetryDelay(
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ response: __response,
+ attempt: __attempt);
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createLoopsDeploymentsByDeploymentIdMetrics",
+ methodName: "CreateLoopsDeploymentsByDeploymentIdMetricsAsync",
+ pathTemplate: "$\"/v1/loops/deployments/{deploymentId}/metrics\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attempt,
+ maxAttempts: __maxAttempts,
+ willRetry: true,
+ retryDelay: __retryDelay,
+ retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture),
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ __response.Dispose();
+ __response = null;
+ __httpRequest.Dispose();
+ __httpRequest = null;
+ await global::Baseten.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync(
+ retryDelay: __retryDelay,
+ cancellationToken: __effectiveCancellationToken).ConfigureAwait(false);
+ continue;
+ }
+
+ break;
+ }
+
+ if (__response == null)
+ {
+ throw new global::System.InvalidOperationException("No response received.");
+ }
+
+ using (__response)
+ {
+
+ ProcessResponse(
+ client: HttpClient,
+ response: __response);
+ ProcessCreateLoopsDeploymentsByDeploymentIdMetricsResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createLoopsDeploymentsByDeploymentIdMetrics",
+ methodName: "CreateLoopsDeploymentsByDeploymentIdMetricsAsync",
+ pathTemplate: "$\"/v1/loops/deployments/{deploymentId}/metrics\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+ else
+ {
+ await global::Baseten.AutoSDKRequestOptionsSupport.OnAfterErrorAsync(
+ clientOptions: Options,
+ context: global::Baseten.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "createLoopsDeploymentsByDeploymentIdMetrics",
+ methodName: "CreateLoopsDeploymentsByDeploymentIdMetricsAsync",
+ pathTemplate: "$\"/v1/loops/deployments/{deploymentId}/metrics\"",
+ httpMethod: "POST",
+ baseUri: BaseUri,
+ request: __httpRequest!,
+ response: __response,
+ exception: null,
+ clientOptions: Options,
+ requestOptions: requestOptions,
+ attempt: __attemptNumber,
+ maxAttempts: __maxAttempts,
+ willRetry: false,
+ retryDelay: null,
+ retryReason: global::System.String.Empty,
+ cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
+ }
+
+ if (__effectiveReadResponseAsString)
+ {
+ var __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
+ ProcessCreateLoopsDeploymentsByDeploymentIdMetricsResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Baseten.GetLoopsDeploymentMetricsResponseV1.FromJson(__content, JsonSerializerContext) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+ else
+ {
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+ using var __content = await __response.Content.ReadAsStreamAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+
+ var __value = await global::Baseten.GetLoopsDeploymentMetricsResponseV1.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ throw new global::System.InvalidOperationException("Response deserialization failed.");
+ return new global::Baseten.AutoSDKHttpResponse(
+ statusCode: __response.StatusCode,
+ headers: global::Baseten.AutoSDKHttpResponse.CreateHeaders(__response),
+ requestUri: __response.RequestMessage?.RequestUri,
+ body: __value);
+ }
+ catch (global::System.Exception __ex)
+ {
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+ #if NET5_0_OR_GREATER
+ __effectiveCancellationToken
+ #endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
+ throw new global::Baseten.ApiException(
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
+ innerException: __ex,
+ statusCode: __response.StatusCode)
+ {
+ ResponseBody = __content,
+ ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
+ __response.Headers,
+ h => h.Key,
+ h => h.Value),
+ };
+ }
+ }
+
+ }
+ }
+ finally
+ {
+ __httpRequest?.Dispose();
+ }
+ }
+ ///
+ /// Get metrics for a Loops trainer deployment.
+ /// Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
+ ///
+ ///
+ ///
+ /// Epoch millis to end fetching metrics.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// Epoch millis to start fetching metrics.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreateLoopsDeploymentsByDeploymentIdMetricsAsync(
+ string deploymentId,
+ int? endEpochMillis = default,
+ int? startEpochMillis = default,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Baseten.GetLoopsDeploymentMetricsRequestV1
+ {
+ EndEpochMillis = endEpochMillis,
+ StartEpochMillis = startEpochMillis,
+ };
+
+ return await CreateLoopsDeploymentsByDeploymentIdMetricsAsync(
+ deploymentId: deploymentId,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs
new file mode 100644
index 0000000..030782b
--- /dev/null
+++ b/src/libs/Baseten/Generated/Baseten.IBasetenClient.CreateLoopsDeploymentsByDeploymentIdMetrics.g.cs
@@ -0,0 +1,78 @@
+#nullable enable
+
+namespace Baseten
+{
+ public partial interface IBasetenClient
+ {
+ ///
+ /// Get metrics for a Loops trainer deployment.
+ /// Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/loops/deployments/{deployment_id}/metrics \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "end_epoch_millis": null,
+ /// "start_epoch_millis": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task CreateLoopsDeploymentsByDeploymentIdMetricsAsync(
+ string deploymentId,
+
+ global::Baseten.GetLoopsDeploymentMetricsRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get metrics for a Loops trainer deployment.
+ /// Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
+ ///
+ ///
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ ///
+ /// curl --request POST \
+ /// --url https://api.baseten.co/v1/loops/deployments/{deployment_id}/metrics \
+ /// --header "Authorization: Api-Key $BASETEN_API_KEY" \
+ /// --data '{
+ /// "end_epoch_millis": null,
+ /// "start_epoch_millis": null
+ /// }'
+ ///
+ global::System.Threading.Tasks.Task> CreateLoopsDeploymentsByDeploymentIdMetricsAsResponseAsync(
+ string deploymentId,
+
+ global::Baseten.GetLoopsDeploymentMetricsRequestV1 request,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Get metrics for a Loops trainer deployment.
+ /// Returns per-node GPU/CPU/memory utilization and Knative queue-proxy request rate / concurrency / latency for the trainer pods. The sampler half of a Loops deployment is an OracleVersion and uses the existing model-metrics endpoint.
+ ///
+ ///
+ ///
+ /// Epoch millis to end fetching metrics.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ ///
+ /// Epoch millis to start fetching metrics.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
+ ///
+ /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
+ /// The token to cancel the operation with
+ ///
+ global::System.Threading.Tasks.Task CreateLoopsDeploymentsByDeploymentIdMetricsAsync(
+ string deploymentId,
+ int? endEpochMillis = default,
+ int? startEpochMillis = default,
+ global::Baseten.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
index 33acc08..4e729b1 100644
--- a/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
+++ b/src/libs/Baseten/Generated/Baseten.JsonSerializerContext.g.cs
@@ -396,6 +396,15 @@ namespace Baseten
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.DeactivateLoopsDeploymentResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetLoopsDeploymentResponseV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetLoopsDeploymentMetricsRequestV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.InferenceVolumeByStatusDatapointV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsDeploymentMetricsV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.ResponseTimeDatapointV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.LoopsDeploymentNodeMetricsV1))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetLoopsDeploymentMetricsResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.TrainingGpuCapacityItemV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Baseten.GetTrainingGpuCapacityResponseV1))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))]
@@ -515,6 +524,9 @@ namespace Baseten
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List