Skip to content

Job File Examples

Daniel Odievich edited this page Jul 24, 2018 · 26 revisions

Example 1 - Single Application

ECommerce application from demo1 Controller:

{
    "Input": {
        "TimeRange": {
            "From": "2017-12-29T18:00:00",
            "To": "2017-12-29T20:00:00"
        },
        "Metrics": true,
        "MetricsSelectionCriteria": ["Transaction", "AgentStats", "OSHardware", "CLRStats", "IISStats", "JVMStats", "BusinessTransactionPercentiles"],
        "Flowmaps": true,
        "Configuration": true,
        "ConfigurationComparisonReferenceCriteria": {
            "Controller": "https://reference.controller",
            "Application": "ReferenceApp"
        },
        "Events": true,
        "Snapshots": true,
        "SnapshotSelectionCriteria": {
            "Tiers": [],
            "TierType": {
                "All": true
            },
            "BusinessTransactions": [],
            "BusinessTransactionType": {
                "All": true
            },
            "UserExperience": {
                "Normal": true,
                "Slow": true,
                "VerySlow": true,
                "Stall": true,
                "Error": true
            },
            "SnapshotType": {
                "Full": true,
                "Partial": true,
                "None": true
            }
        }
    },
    "Output": {
        "DetectedEntities": true,
        "EntityMetrics": true,
        "EntityMetricGraphs": true,
        "EntityDetails": true,
        "Events": true,
        "Configuration": true,
        "Snapshots": true,
        "FlameGraphs": true
    },
    "Target":
    [
        {
            "Controller": "http://demo1.appdynamics.com/",
            "UserName": "resty@customer1",
            "UserPassword": "",
            "Application": "ECommerce",
            "NameRegex": false,
            "Type": "APM"
        }
    ]
}

Example 2 - Multiple Applications, single Controller

ECommerce and ECommerce-Fulfillment from demo1 Controller:

{
    "Input": {
        "TimeRange": {
            "From": "2017-12-29T18:00:00",
            "To": "2017-12-29T20:00:00"
        },
        "Metrics": true,
        "MetricsSelectionCriteria": ["Transaction", "AgentStats", "OSHardware", "CLRStats", "IISStats", "JVMStats", "BusinessTransactionPercentiles"],
        "Flowmaps": true,
        "Configuration": true,
        "ConfigurationComparisonReferenceCriteria": {
            "Controller": "https://reference.controller",
            "Application": "ReferenceApp"
        },
        "Events": true,
        "Snapshots": true,
        "SnapshotSelectionCriteria": {
            "Tiers": [],
            "TierType": {
                "All": true
            },
            "BusinessTransactions": [],
            "BusinessTransactionType": {
                "All": true
            },
            "UserExperience": {
                "Normal": true,
                "Slow": true,
                "VerySlow": true,
                "Stall": true,
                "Error": true
            },
            "SnapshotType": {
                "Full": true,
                "Partial": true,
                "None": true
            }
        }
    },
    "Output": {
        "DetectedEntities": true,
        "EntityMetrics": true,
        "EntityMetricGraphs": true,
        "EntityDetails": true,
        "Events": true,
        "Configuration": true,
        "Snapshots": true,
        "FlameGraphs": true
    },
    "Target":
    [
        {
            "Controller": "http://demo1.appdynamics.com/",
            "UserName": "resty@customer1",
            "UserPassword": "",
            "Application": "ECommerce",
            "NameRegex": false,
            "Type": "APM"
        },
        {
            "Controller": "http://demo1.appdynamics.com/",
            "UserName": "resty@customer1",
            "UserPassword": "",
            "Application": "ECommerce-Fulfillment",
            "NameRegex": false,
            "Type": "APM"
        }
    ]
}

Example 3 - Multiple Applications, Regex, single Controller

All Applications from demo1 Controller

{
    "Input": {
        "TimeRange": {
            "From": "2017-12-29T18:00:00",
            "To": "2017-12-29T20:00:00"
        },
        "Metrics": true,
        "MetricsSelectionCriteria": ["Transaction", "AgentStats", "OSHardware", "CLRStats", "IISStats", "JVMStats", "BusinessTransactionPercentiles"],
        "Flowmaps": true,
        "Configuration": true,
        "ConfigurationComparisonReferenceCriteria": {
            "Controller": "https://reference.controller",
            "Application": "ReferenceApp"
        },
        "Events": true,
        "Snapshots": true,
        "SnapshotSelectionCriteria": {
            "Tiers": [],
            "TierType": {
                "All": true
            },
            "BusinessTransactions": [],
            "BusinessTransactionType": {
                "All": true
            },
            "UserExperience": {
                "Normal": true,
                "Slow": true,
                "VerySlow": true,
                "Stall": true,
                "Error": true
            },
            "SnapshotType": {
                "Full": true,
                "Partial": true,
                "None": true
            }
        }
    },
    "Output": {
        "DetectedEntities": true,
        "EntityMetrics": true,
        "EntityMetricGraphs": true,
        "EntityDetails": true,
        "Events": true,
        "Configuration": true,
        "Snapshots": true,
        "FlameGraphs": true
    },
    "Target":
    [
        {
            "Controller": "http://demo1.appdynamics.com/",
            "UserName": "resty@customer1",
            "UserPassword": "",
            "Application": ".*",
            "NameRegex": true,
            "Type": "APM"
        }
    ]
}

Example 4 - Multiple Application, Multiple Controllers

All Applications from demo1 and demo2 Controllers

{
    "Input": {
        "TimeRange": {
            "From": "2017-12-29T18:00:00",
            "To": "2017-12-29T20:00:00"
        },
        "Metrics": true,
        "MetricsSelectionCriteria": ["Transaction", "AgentStats", "OSHardware", "CLRStats", "IISStats", "JVMStats", "BusinessTransactionPercentiles"],
        "Flowmaps": true,
        "Configuration": true,
        "ConfigurationComparisonReferenceCriteria": {
            "Controller": "https://reference.controller",
            "Application": "ReferenceApp"
        },
        "Events": true,
        "Snapshots": true,
        "SnapshotSelectionCriteria": {
            "Tiers": [],
            "TierType": {
                "All": true
            },
            "BusinessTransactions": [],
            "BusinessTransactionType": {
                "All": true
            },
            "UserExperience": {
                "Normal": true,
                "Slow": true,
                "VerySlow": true,
                "Stall": true,
                "Error": true
            },
            "SnapshotType": {
                "Full": true,
                "Partial": true,
                "None": true
            }
        }
    },
    "Output": {
        "DetectedEntities": true,
        "EntityMetrics": true,
        "EntityMetricGraphs": true,
        "EntityDetails": true,
        "Events": true,
        "Configuration": true,
        "Snapshots": true,
        "FlameGraphs": true
    },
    "Target":
    [
        {
            "Controller": "http://demo1.appdynamics.com/",
            "UserName": "resty@customer1",
            "UserPassword": "",
            "Application": "*",
            "NameRegex": true,
            "Type": "APM"
        },
        {
            "Controller": "http://demo1.appdynamics.com/",
            "UserName": "resty@customer1",
            "UserPassword": "",
            "Application": ".*",
            "NameRegex": true,
            "Type": "APM"
        }
    ]
}

Example 5 - Filtering Which Snapshots to Get

Use the following example to retrieve only Snapshots that match the following criteria:

  • Come from "Web" tier
  • Comes from .NET Agent tier type
  • Comes from "/api/data", "Login-AuthenticationEngine", "Web-List-.*", "Async-Svc.SendEmailActivityService" Business Transactions, including regular expression matches
  • Comes from ASP.NET Business Transaction type
  • Are any user experience except Normal
  • Are only Full call graphs
{
    "Input": {
        "TimeRange": {
            "From": "2017-12-29T18:00:00",
            "To": "2017-12-29T20:00:00"
        },
        "Metrics": true,
        "MetricsSelectionCriteria": ["Transaction", "AgentStats", "OSHardware", "CLRStats", "IISStats", "JVMStats", "BusinessTransactionPercentiles"],
        "Flowmaps": true,
        "Configuration": true,
        "ConfigurationComparisonReferenceCriteria": {
            "Controller": "https://reference.controller",
            "Application": "ReferenceApp"
        },
        "Events": true,
        "Snapshots": true,
"SnapshotSelectionCriteria" : {
            "Tiers" : [ "Web" ],
            "TierType" : {
                "All" : false,
                "APP_AGENT" : false,
                "DOT_NET_APP_AGENT" : true,
                "NATIVE_APP_AGENT" : false,
                "NATIVE_DYNAMIC" : false,
                "NATIVE_SDK" : false,
                "NATIVE_WEB_SERVER" : false,
                "NODEJS_APP_AGENT" : false,
                "PHP_APP_AGENT" : false,
                "PYTHON_APP_AGENT" : false,
                "RUBY_APP_AGENT" : false
            },
            "BusinessTransactions" : [ 
                 "/api/data", 
                 "Login-AuthenticationEngine", 
                 "Web-List-.*", 
                 "Async-Svc.SendEmailActivityService" ],
            "BusinessTransactionType": {
                "All": false,
                "SERVLET" : false, "HTTP" : false, "WEB_SERVICE" : false, "POJO" : false, "JMS" : false, "EJB" : false, "SPRING_BEAN" : false, "STRUTS_ACTION" : false,
                "ASP_DOTNET" : true, "ASP_DOTNET_WEB_SERVICE" : false, "DOTNET_REMOTING" : false, "WCF" : true, "DOTNET_JMS" : false, "POCO" : false,
                "PHP_WEB" : false, "PHP_MVC" : false, "PHP_DRUPAL" : false, "PHP_WORDPRESS" : false, "PHP_CLI" : false, "PHP_WEB_SERVICE" : false,
                "NODEJS_WEB" : false, 
                "NATIVE" : false, "WEB" : false, 
                "PYTHON_WEB" : false, 
                "RUBY_WEB" : false, "RUBY_RAILS" : false,
                "BINARY_REMOTING" : false
            },
            "UserExperience" : {
                "Normal" : false,
                "Slow" : true,
                "VerySlow" : true,
                "Stall" : true,
                "Error" : true
            },
            "SnapshotType" : {
                "Full" : true,
                "Partial" : false,
                "None" : false
            }
        }
    },
    "Output": {
        "DetectedEntities": true,
        "EntityMetrics": true,
        "EntityMetricGraphs": true,
        "EntityDetails": true,
        "Events": true,
        "Configuration": true,
        "Snapshots": true,
        "FlameGraphs": true
    },
    "Target":
    [
        {
            "Controller": "https://account.saas.appdynamics.com",
            "UserName": "username@account",
            "UserPassword": "",
            "Application": "ABCDEFG",
            "NameRegex": false,
            "Type": "APM"
        }
    ]
}
Clone this wiki locally