@@ -24,7 +24,6 @@ import { getPackageJsonVersion } from './utils/version';
2424import { createDtHttpClient } from './authentication/dynatrace-clients' ;
2525import { listVulnerabilities } from './capabilities/list-vulnerabilities' ;
2626import { listProblems } from './capabilities/list-problems' ;
27- import { getOwnershipInformation } from './capabilities/get-ownership-information' ;
2827import { getEventsForCluster } from './capabilities/get-events-for-cluster' ;
2928import { createWorkflowForProblemNotification } from './capabilities/create-workflow-for-problem-notification' ;
3029import { updateWorkflow } from './capabilities/update-workflow' ;
@@ -90,8 +89,6 @@ const allRequiredScopes = scopesBase.concat([
9089
9190 // Settings and configuration scopes
9291 'app-settings:objects:read' , // Read app settings objects
93- 'settings:objects:read' , // Read settings objects
94- 'environment-api:entities:read' , // Read entities via environment API
9592
9693 // Davis CoPilot scopes
9794 'davis-copilot:nl2dql:execute' , // Convert natural language to DQL
@@ -1031,28 +1028,6 @@ const main = async () => {
10311028 } ,
10321029 ) ;
10331030
1034- tool (
1035- 'get_ownership' ,
1036- 'Get detailed Ownership information for one or multiple entities on Dynatrace' ,
1037- {
1038- entityIds : z . string ( ) . optional ( ) . describe ( 'Comma separated list of entityIds' ) ,
1039- } ,
1040- {
1041- readOnlyHint : true ,
1042- } ,
1043- async ( { entityIds } ) => {
1044- const dtClient = await createAuthenticatedHttpClient (
1045- scopesBase . concat ( 'environment-api:entities:read' , 'settings:objects:read' ) ,
1046- ) ;
1047- console . error ( `Fetching ownership for ${ entityIds } ` ) ;
1048- const ownershipInformation = await getOwnershipInformation ( dtClient , entityIds ) ;
1049- console . error ( `Done!` ) ;
1050- let resp = 'Ownership information:\n' ;
1051- resp += JSON . stringify ( ownershipInformation ) ;
1052- return resp ;
1053- } ,
1054- ) ;
1055-
10561031 tool (
10571032 'reset_grail_budget' ,
10581033 'Reset the Grail query budget after it was exhausted, allowing new queries to be executed. This clears all tracked bytes scanned in the current session.' ,
0 commit comments