@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
33 lines • 1.52 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type GetObservabilitySchemaByMetricIdRequest = {
metricId: string;
};
export type Dimensions = {
name: string;
label: string;
description?: string | undefined;
};
export type ResponseBody = {
id: string;
description: string;
dimensions: Array<Dimensions>;
unit: string;
aggregations: Array<string>;
defaultAggregation: string;
};
/** @internal */
export type GetObservabilitySchemaByMetricIdRequest$Outbound = {
metricId: string;
};
/** @internal */
export declare const GetObservabilitySchemaByMetricIdRequest$outboundSchema: z.ZodType<GetObservabilitySchemaByMetricIdRequest$Outbound, z.ZodTypeDef, GetObservabilitySchemaByMetricIdRequest>;
export declare function getObservabilitySchemaByMetricIdRequestToJSON(getObservabilitySchemaByMetricIdRequest: GetObservabilitySchemaByMetricIdRequest): string;
/** @internal */
export declare const Dimensions$inboundSchema: z.ZodType<Dimensions, z.ZodTypeDef, unknown>;
export declare function dimensionsFromJSON(jsonString: string): SafeParseResult<Dimensions, SDKValidationError>;
/** @internal */
export declare const ResponseBody$inboundSchema: z.ZodType<ResponseBody, z.ZodTypeDef, unknown>;
export declare function responseBodyFromJSON(jsonString: string): SafeParseResult<ResponseBody, SDKValidationError>;
//# sourceMappingURL=getobservabilityschemabymetricidop.d.ts.map