You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+25-6Lines changed: 25 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -399,40 +399,59 @@ const main = async () => {
399
399
400
400
tool(
401
401
'list_problems',
402
-
'List all problems (dt.davis.problems) known on Dynatrace, sorted by their recency, for the last 12h. An additional DQL based filter, like filtering for specific entities, can be provided.',
402
+
'List all problems (based on "fetch dt.davis.problems") known on Dynatrace, sorted by their recency.',
403
403
{
404
+
timeframe: z
405
+
.string()
406
+
.optional()
407
+
.default('24h')
408
+
.describe(
409
+
'Timeframe to query problems (e.g., "12h", "24h", "7d", "30d"). Default: "24h". Supports hours (h) and days (d).',
410
+
),
411
+
status: z
412
+
.enum(['ACTIVE','CLOSED','ALL'])
413
+
.optional()
414
+
.default('ALL')
415
+
.describe(
416
+
'Fitler problems by their status. "ACTIVE": only active problems (those without an end time set), "CLOSED": only closed problems (those with an end time set), "ALL": active and closed problems (default)',
417
+
),
404
418
additionalFilter: z
405
419
.string()
406
420
.optional()
407
421
.describe(
408
422
'Additional DQL filter for dt.davis.problems - filter by entity type (preferred), like \'dt.entity.<service|host|application|$type> == "<entity-id>"\', or by entity tags \'entity_tags == array("dt.owner:team-foobar", "tag:tag")\'',
409
423
),
410
-
maxProblemsToDisplay: z.number().default(10).describe('Maximum number of problems to display in the response.'),
424
+
maxProblemsToDisplay: z
425
+
.number()
426
+
.min(1)
427
+
.max(5000)
428
+
.default(10)
429
+
.describe('Maximum number of problems to display in the response.'),
0 commit comments