Page tree

Unsupported content

   

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Skip to end of metadata
Go to start of metadata

This page displays a listing of all available tagging rules, allowing you to activate or deactivate them, edit or delete custom rules, and create new ones.

Example of the Tagging Rules table

Adding a new tagging rule

To create a new tagging rule, navigate to Administration > Tag Management > Tagging rules and then perform the following steps:

  1. Click Add tagging Rule and provide values for the following parameters:
    1. Name: Name of the new tag type.
    2. Description: Brief description of the tag type.
    3. Rule status: Active or Inactive; that is whether the rule will be applied or not
    4. Rule type: Choose one of the available types, described in the following table; depending on your choice, additional options will be presented.
    5. Configuration metric: Select a configuration metric to apply to the tagging rule.
    6. Tag type: Select from a list of available and predefined tag types.
  2. Click Save.


    Rule types

    Rule type

    Description

    Additional options

    Copy the value of a configuration metric

    Looks for the selected configuration metric and creates a tag named as the value of the  metric (for example, if you choose OS_FAMILY, values will be "Linux", "Windows", etc.).

    Configuration Metric: choose the desired configuration metric from the drop-down menuTag Type: select the tag type to be used in this tagging rule.

    Use a regular expression based on a configuration metric

    Looks for the selected configuration metric, checks if it matches the given regular expression (e.g. "Windows(.*)"), and applies a tag with the value specified in the Tag parameter.

    Configuration Metric: choose the desired configuration metric from the drop-down menu.
    Regexp: type the regular expression that you wish to use, for example, "ApplicationServer (d+)"
    Tag: specify the tag that should be applied to matching entities; it can be a fixed value (for example, "Linux") or a dynamically constructed value.
    Tag Type: Select the tag type to be used in this tagging rule.

    Use a regular expression based on the name of a system or business driver

    Looks for a system (or business driver), checks if it matches the given regular expression, and applies a tag with the value specified in the Tag parameter.

    Apply to: choose whether you want to base the regular expression on a system or business driver.
    Regexp: type the regular expression that you wish to use .
    Tag: specify the tag that should be applied to matching systems (or business drivers); it can be a fixed value (for example, "Linux") or a dynamically constructed value.
    Tag Type: select the tag type to be used in this tagging rule.
    In advanced mode, you can also set Filtering options to filter entities.

    Use a custom script based on a configuration metric

    Allows you to define a custom script that assigns tag(s) to systems and business drivers based on the value of the selected configuration metrics.

    Configuration Metrics: choose the metrics that you wish to use as parameters in the script.
    Custom script: type the custom script that you wish to use (see note below). 
    Tag Type: select the tag type to be used in this tagging rule.

    Use a custom script based on the name of a system or business driver name

    Allows you to define a custom script that assigns tag(s) to systems and business drivers.

    Apply to: choose whether you want to base the script on a system or business driver.
    Custom script: type the custom script that you wish to use (see note below). 
    Tag Type: select the tag type to be used in this tagging rule. 
    In advanced mode, you can also set Filtering options to filter entities.

    Note on custom scripts

    The custom script must be written in JavaScript. The following variables are available:

    • Name: The name of the system (or business driver).
    • enttypeid: The ID of the entity type.
    • enttypenm: The string name of the entity type.

    If applicable, the values of the selected configuration metrics are provided in variables called as the resource name (for example, CPU_NUM).

    Tags must be placed in the out variable.

     

    Adding a new tagging rule

  • No labels