This documentation supports releases of BMC Helix Continuous Optimization up to December 31, 2021. To view the latest version, select the version from the Product version menu.

Using the advanced editor of the summary data mart wizard


The Advanced Editor of the summary data mart wizard is a JSON editor that includes the same values as of basic editor, but in the JSON format. You can view, add, and update the properties in this editor. While the Basic Editor includes all essential features to build a data mart, the Advanced Editor supports additional functionalities such as thresholds and tags. 

To launch the Advanced Editor, click Advanced Editor toggle button in the summary page of the data mart wizard. All properties and values that were defined in other pages of the Summary Data Mart wizard are displayed in the Advanced Editor. Any changes that you make in the Advanced Editor are saved and reflected in other pages of the Summary Data Mart  wizard.

The Advanced Editor consists of the following fields:

data_mart_wizard_summary_advanced.png

1

Editor toggle

Use the toggle button to switch between the Basic and Advanced editors.

2

Editor pane

Use this pane to add or update the properties and their values.

3

Properties list

List of top level properties supported in the Advanced Editor.
When you click the property name, the code sample and documentation for that property is displayed.
If the property has sub properties, their details are also displayed.

You can copy the code sample to the editor and make the required changes.

data_mart_wizard_advanced_help.PNG

4

Search

Specify the property that you want to search for in the Advanced Editor.

5

Home

Home button to navigate back to the list of properties

To use the advanced editor

  1. In the summary page of the Summary Data Mart wizard, click Advanced Editor
    In the Editor pane, all properties and values that were defined in the other pages of summary data mart wizard are displayed.
  2. Review the properties and make the required changes:

    • Update the values of existing properties.
    • Add new properties:

      1. Search for the property in the help pane. 
      2. Copy the code sample. You can either copy entire sample, or drag and drop the desired code to the editor.
      3. Make the necessary modifications to the sample code.
  3. Click Apply. If you receive any validation errors, correct the code and click Apply again. 
    The changes you made to the advanced editor are saved and reflected in the basic editor.

Error handling

  • Syntax or schema errors:
    • As you add or modify properties in the editor, if there are any syntax or schema errors, they are displayed runtime and the Apply option is disabled. You must fix these issues to save the changes. 
  • Validation errors:
    • If you click Basic Editor or Close the editor without applying the changes, any changes made to the editor will be lost.
    • If you click Reset, any changes made to the editor in the current session will be lost.
      A warning message is displayed indicating the same.

Properties

The following table lists the properties that can be used in the editor. While some properties can be configured in both basic and advanced editors, some properties are available in the advanced editor only.

Property

Sub property

Level 1

Sub property

Level 2

Description

Requirement

Available/editable in the advanced editor only?

name



Name of the data mart.

Click here to view the code sample
"name": "Virtual Clusters Overview"

Required


description



Description of the data mart.

Click here to view the code sample
"description": "Extract data for all virtual clusters"

Optional


structureid



Category of entity types to be included in the data mart. Specify SYS for System and WKLD for Business driver.

Click here to view the code sample

  "structureid": "SYS"

Required


entitytypenames



List of entity types for which to extract data. For details on all entity types, see Entity-types.

Click here to view the code sample

"entitytypenames": [
 "sys:cp:aix",
 "sys:cp:spp",
 "sys:vh:vmw"
 ]


Required


timefilter



Filter Used for specifying the time range of data extracted by the data mart. Four different types are supported.

Click here to view the code sample

"timefilter": {
 "type": "LASTEX",
 "lastex": {
 "period": "D",
 "quantity": 7,
 "include_current": false
 }
 }

Required



type


Type of the time filter to be used in the data mart. You can include one of the following values:

  • GLOBAL: based on a global time filter configured in the Capacity Optimization console.
  • SINCE_TO: based on a period defined with a from and to dates
  • LASTEX: based on last hours, days, months, or years
  • ROLL: based on predefined roll periods

Required



label


Label for the time filter.

Optional



resolution


Resolution used for summarization of data saved in the metric store.

Optional



globalfilterid


Unique identifier of the global time filter. You can check the list of available global filter IDs from Helix Capacity Optimization Console > Workspace > Filters. For details, see Managing-time-filters.

Required when type = GLOBAL

Optional



since


Start date of the time range option (YYYY-MM-DD).  Required when type = SINCE_TO

Optional



to


End date of the Time range option (YYYY-MM-DD). Required when type = SINCE_TO

Optional



lastex


Time filter definition based on the last 'x' hours, days, months, or years. Required when type = LASTEX

Optional




period

Type of last 'x' period.  period: "H" for hours, "D" for days, "M" for months or "Y" for years

Required




quantity

Numeric value that specifies the last 'x' period to summarize.

Required




includeCurrent

Indicates if the time filter includes the current date.

Required


columns



Detailed information for each column (metric) included in the data mart.

Click here to view the code sample

"columns": [
 {
 "name": "CPU_UTIL",
 "label": "CPU Utilization %",
 "description": "Percentage of time the CPU was not idle during the interval.",
 "resname": "CPU_UTIL",
 "type": "RESOURCE",
 "statistic": {
 "name": "AVGVALUE"
 },
 "sort_order": 1,
 "sort_direction": "DESC",
 "include_threshold_column": true
 }
 ]

Required



type


Type used to distinguish metrics. Valid values are: "GENERIC" or "RESOURCE"

Required



name


Unique name used to identify the column in this data mart.

Required



label


Label that can be used when displaying this column in the view or report

Required



description


Detailed description of the column.

Required



statistics


Statistics data

Optional



statistic


Statistic to use in the summarized output. Basic editor lists the statistics available for each metric

Click here to view the code sample

"statistic": {
 "name": "AVGVALUE",
 "statid": 1
 }

Optional




name

Name of the statistic. It represents a unique key with the statid field.

Required when statid is null.

Required




statId

ID of the statistic. It represents a unique key with the name field.Required when name is null.

Optional



related_to


Used for identifying the name column corresponding to the unique id column of the data mart.

Optional



resname


Name of the resource (metric) in the catalog.

Optional



sub_resnames


Name of the subresource (metric) in the catalog.

Optional



include_metadata


Name of the indicator metadata (metric) in the catalog.

Optional

Yes


ref_resource_name


Name of the referenced subresource (bymetric) column. It is applicable to indicator resnames only.

Optional

Yes


parent_entity_type_name


Entity type of the parent or related entity to be extracted. To know the list of all entity types, see Entity-types.

Optional



parent_relationship_id


Relationship of the parent or related entity to be extracted.

Optional



include_threshold_column


Indicates whether to include thresholds for this column. Applicable only if column type is RESOURCE.

Click here to view the example

{
    //...
    "columns": [{
        "name""CPU_UTIL",
        "label""CPU Utilization %",
        "description""Percentage of time the CPU was not idle during the interval.",
        "datatype""NUMBER",
        "resname""CPU_UTIL",
        "type""RESOURCE",
        "unit""PCT",
        "statistic": {
            "name""AVGVALUE"
        },
        "includeThresholdColumn"true
    }]
}

Optional

Yes


sort_order


Precedence order for column sorting.

Optional



sort_direction


Direction to use for column sorting. You can include one of the following values:

  • ASC: For the ascending order
  • DESC: For the descending order

Optional


materializertask



Task used to materialize the content of the data mart.

Click here to view the code sample

"materializertask": {
 "taskid": 20
 }

Required



taskid


Identifier of the task used to materialize the content of the data mart. It is recommended to select a materializer task name using the Basic Editor.

Required



name


Name of the materialization task used to materialize the content of the data mart. It is recommend to select a task name using the Basic Editor.

Optional



class_name


Class name of the materialization task used to materialize the content of the data mart.



entityfilterid



Unique identifier of the entity filter configured using the Capacity Optimization console. List of IDs are available from Workspace -> Filters section of the CO Console. It is recommended to set the Entityfilter using the Basic Editor.

Click here to view the code sample
"entityfilterid": 3

Optional


domain



Columns with domain information

Click here to view the code sample

"domain": {
 "include_parent": true,
 "parent_tags": [
 "tag_type_name1"
 ],
 "include_root_business_service": true,
 "root_business_service_tags": [
 "tag_type_name1"
 ],
 "include_root_application": true,
 "root_application_tags": [
 "tag_type_name1"
 ],
 "include_root_parent": true,
 "root_parent_tags": [
 "tag_type_name1"
 ]
 }

Optional

Yes


include_parent


Columns with Parent Domain information

Optional

Yes


parent_tags


List of parent tag type names

Optional

Yes


parent_tag.macro


The parent tag macro schema for data mart summary

Optional

Yes


root_parent_tag.macro


The root parent tag macro schema for data mart summary

Optional

Yes


root_application_tag.macro


The root application tag macro schema for data mart summary

Optional

Yes


root_business_service_tag.macro


The root business service tag macro schema for data mart summary

Optional

Yes


include_root_business_service


Columns with root business service information

Optional

Yes


root_business_service_tags


List of root business service tag type names

Optional

Yes


include_root_application


Columns with root application information

Optional

Yes


root_application_tags


List of root application tag type names

Optional

Yes


include_root_parent


Columns with root domain information

Optional

Yes


root_parent_tags


List of root parent tag type names

Optional

Yes

namespace



The virtual node namespace. Allowed values are opt:meas:vn and opt:meas

Click here to view the code sample

"namespace": "opt:meas:vn"

Optional

Yes


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*