What method to use in JON CLI to create an AlertDefinition?

Solution Verified - Updated -

Issue

  • When I invoke the method AlertDefinitionManager.createAlertDefinition, it throws the exception:

    sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function createAlertDefinition. (<Unknown source>#43) in <Unknown source> at line number 43.
    
  • But I find the API , the AlertDefinitionManager has the method createAlertDefinition.

Environment

  • Red Hat JBoss Operations Network(JON)

    • 2
    • 3
  • Red Hat JBoss Operations Network Command Line Interface (CLI)

    • 2
    • 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content