Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
useBinInterval.tsx590 B
import { useMemo } from "react"; import { assertUnreachable } from "@phoenix/typeUtils"; /** * A react hook that returns the interval between ticks for a time series chart */ export function useBinInterval({ scale }: { scale: TimeBinScale }): number { return useMemo(() => { switch (scale) { case "YEAR": return 1; case "MONTH": return 1; case "WEEK": case "DAY": return 1; case "HOUR": return 1; case "MINUTE": return 5; default: { assertUnreachable(scale); } } }, [scale]); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server