Skip to content

appd get-metrics

Get metric hierarchy

Description

Get metric hierarchy

Synopsis

appd get-metrics
    [--site <site>]
    [--cluster <cluster>]
    <application>
    [<metric_path>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of elastic search cluster
     Example: --cluster "appdynamics-default"
     Default: appdynamics-default      Attributes: optional

application - (string)

     application name or ID
     Example: "app-1"
     Default: _None_      Attributes: required

metric_path - (string)

     path to the metric in the metric hierarchy.
     Example: "Overall Application Performance"
     Default: _None_      Attributes: optional

Examples

Input:

x = ! appd get-metrics "bookinfo"
Output:
[
  {
    "name": "Overall Application Performance",
    "type": "folder"
  },
  {
    "name": "Business Transaction Performance",
    "type": "folder"
  },
  {
    "name": "Information Points",
    "type": "folder"
  },
  {
    "name": "Application Infrastructure Performance",
    "type": "folder"
  },
  {
    "name": "Errors",
    "type": "folder"
  },
  {
    "name": "End User Experience",
    "type": "folder"
  },
  {
    "name": "Mobile",
    "type": "folder"
  },
  {
    "name": "Backends",
    "type": "folder"
  },
  {
    "name": "Service Endpoints",
    "type": "folder"
  }
]
Input:
x = ! appd get-metrics "bookinfo"
Output:
TYPE    NAME                                   
folder  Overall Application Performance         
folder  Business Transaction Performance        
folder  Information Points                      
folder  Application Infrastructure Performance  
folder  Errors                                  
folder  End User Experience                     
folder  Mobile                                  
folder  Backends                                
folder  Service Endpoints                       

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "appd"
Service Instance cluster
Namespace
Object Type "application"
Object ID application

Please see Access Control for details.