github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/models/app.ts (about)

     1  import { SpyNameSchema } from '@pyroscope/models/src';
     2  import { UnitsSchema } from '@pyroscope/models/src/units';
     3  import { z } from 'zod';
     4  
     5  export const appModel = z.object({
     6    name: z.string(),
     7    spyName: SpyNameSchema,
     8    units: UnitsSchema,
     9  });
    10  
    11  export const appsModel = z.array(appModel);
    12  
    13  export type App = z.infer<typeof appModel>;