/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import * as components from "../components/index.js"; export type GetMetricsDeprecatedGlobals = { appId?: string | undefined; }; export type GetMetricsDeprecatedRequest = { appId?: string | undefined; processId: string; /** * Available metrics to query over time. */ metrics?: Array | undefined; /** * Unix timestamp. Default is current time. */ end?: number | undefined; /** * Unix timestamp. Default is -1 hour from `end`. */ start?: number | undefined; step?: number | undefined; }; /** @internal */ export type GetMetricsDeprecatedRequest$Outbound = { appId?: string | undefined; processId: string; metrics?: Array | undefined; end?: number | undefined; start?: number | undefined; step: number; }; /** @internal */ export const GetMetricsDeprecatedRequest$outboundSchema: z.ZodType< GetMetricsDeprecatedRequest$Outbound, z.ZodTypeDef, GetMetricsDeprecatedRequest > = z.object({ appId: z.string().optional(), processId: z.string(), metrics: z.array(components.DeprecatedProcessMetricName$outboundSchema) .optional(), end: z.number().optional(), start: z.number().optional(), step: z.number().int().default(60), }); export function getMetricsDeprecatedRequestToJSON( getMetricsDeprecatedRequest: GetMetricsDeprecatedRequest, ): string { return JSON.stringify( GetMetricsDeprecatedRequest$outboundSchema.parse( getMetricsDeprecatedRequest, ), ); }