PDFs

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCS-386

...

The basic parts of a rulebook are shown in the following example:

No Format
{     "name": "default",
    "comments": "Installs and starts AppDynamics agents",
    "config":         {
            "version": "4.3.0.0",
            "controller_host": "192.168.99.100",
             "controller_port": "8080",
            "account_name": "customer1",
            "account_access_key": "c61f32-nnnn"
        },
   
    "rules": [
        {
            "name": "Machine Agent Rule",
            "comments": "Install and start the machine agent",
            "monitor": "machine",
            "condition": "True",
            "config": {
                "state": "started",
            }
        },
        {
            "name": "Java Agent Install Rule 1",
            "comments": "Inject the Java Agent as JVMs are started",
            "monitor": "java",
            "config": {
                "state": "installed",
                "application_name": "MyApp",
                "tier_name": "MyTier",
                "node_name": "MyNode"
            }
        },
        {
            "name": "Java Agent Install Rule 2",
            "comments": "Attach the Java Agent to running JVMs",
            "monitor": "java",
            "config": {
                "state": "attached",
                "application_name": "MyApp2",
                "tier_name": "MyTier2",
                "node_name": "MyNode2"
            }
        }, 
       {
            "name": "Universal Agent rule",
            "comments": "Universal Agent Default Rule",
            "monitor": "universal",
            "config": {
                "version": "4.3.0.0",
                "state": "started"
            },
            "condition": "True"
       }
    ]
}

The example rulebook contains three rules that define three runtime agents, two Java app agents and one Machine Agent. The example shows the following fields: 

...