Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const errorCountParamsSchema = schema.object({
threshold: schema.number(),
serviceName: schema.maybe(schema.string()),
environment: schema.string(),
groupBy: schema.maybe(schema.arrayOf(schema.string())),
groupBy: schema.maybe(schema.arrayOf(schema.string(), { maxSize: 10 })),
errorGroupingKey: schema.maybe(schema.string()),
useKqlFilter: schema.maybe(schema.boolean()),
searchConfiguration: schema.maybe(searchConfigurationSchema),
Expand All @@ -44,7 +44,7 @@ export const transactionDurationParamsSchema = schema.object({
schema.literal(AggregationType.P99),
]),
environment: schema.string(),
groupBy: schema.maybe(schema.arrayOf(schema.string())),
groupBy: schema.maybe(schema.arrayOf(schema.string(), { maxSize: 10 })),
useKqlFilter: schema.maybe(schema.boolean()),
searchConfiguration: schema.maybe(searchConfigurationSchema),
});
Expand All @@ -67,7 +67,7 @@ export const anomalyParamsSchema = schema.object({
schema.literal(ML_ANOMALY_SEVERITY.MINOR),
schema.literal(ML_ANOMALY_SEVERITY.WARNING),
]),
anomalyDetectorTypes: schema.maybe(schema.arrayOf(detectorsSchema, { minSize: 1 })),
anomalyDetectorTypes: schema.maybe(schema.arrayOf(detectorsSchema, { minSize: 1, maxSize: 3 })),
});

export const transactionErrorRateParamsSchema = schema.object({
Expand All @@ -78,7 +78,7 @@ export const transactionErrorRateParamsSchema = schema.object({
transactionName: schema.maybe(schema.string()),
serviceName: schema.maybe(schema.string()),
environment: schema.string(),
groupBy: schema.maybe(schema.arrayOf(schema.string())),
groupBy: schema.maybe(schema.arrayOf(schema.string(), { maxSize: 10 })),
useKqlFilter: schema.maybe(schema.boolean()),
searchConfiguration: schema.maybe(searchConfigurationSchema),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const querySchema = schema.object({
timeFrom: schema.number(),
timeTo: schema.number(),
functionName: schema.string(),
serviceNames: schema.arrayOf(schema.string()),
serviceNames: schema.arrayOf(schema.string(), { maxSize: 10 }),
});

type QuerySchemaType = TypeOf<typeof querySchema>;
Expand Down