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
resp+=`You can find more details about the application at ${dtEnvironment}/ui/apps/dynatrace.kubernetes/explorer/workload?detailsId=${entityDetails.entityId}`;
368
369
}
369
370
371
+
resp+=`\n\n**Filter**:`;
372
+
373
+
// Use entityTypeTable as the filter (e.g., fetch logs | filter dt.entity.service == "SERVICE-1234")
374
+
if(entityDetails.entityTypeTable){
375
+
resp+=` You can use the following filter to get relevant information from other tools: \`| filter ${entityDetails.entityTypeTable} == "${entityDetails.entityId}"\`. `;
376
+
}else{
377
+
resp+=` Try to use search command as follows: \`| search "${entityDetails.entityId}"\`. `;
378
+
}
379
+
380
+
resp+=`\n\n**Next Steps**\n\n`;
381
+
resp+=`1. Find available metrics for this entity, by using execute_dql tool with the following DQL statement: "fetch metric.series" and the filter defined above\n`;
382
+
resp+=`2. Find out whether any problems exist for this entity using the list_problems tool\n`;
383
+
resp+=`3. Explore logs for this entity by using execute_dql with "fetch logs" and applying the filter mentioned above'\n`;
384
+
370
385
returnresp;
371
386
},
372
387
);
@@ -430,13 +445,13 @@ const main = async () => {
430
445
tool(
431
446
'execute_dql',
432
447
'Get Logs, Metrics, Spans or Events from Dynatrace GRAIL by executing a Dynatrace Query Language (DQL) statement. '+
433
-
'You can also use "generate_dql_from_natural_language" to generate a DQL statement based on your request. '+
448
+
'You can also use the "generate_dql_from_natural_language" tool upfront to generate or refine a DQL statement based on your request. '+
434
449
'Note: For more information about available fields for filters and aggregation, use the query "fetch dt.semantic_dictionary.models | filter data_object == \"logs\""',
0 commit comments