Main Content

slmetric.dashboard.Configuration Class

Namespace: slmetric.dashboard

(To be removed) Object containing information on Metrics Dashboard layout and widgets

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.

Description

Instances of slmetric.dashboard.Configuration contain information on the layout and types of widgets in the Metric Dashboard.

Construction

Use the slmetric.dashboard.Configuration class to specify the layout and types of widgets in the Metrics Dashboard. To create an slmetric.dashboard.Configuration object, use the new method. Each slmetric.dashboard.Configuration object contains one slmetric.dashboard.Layout object. Use the methods and properties of the slmetric.dashboard.Layout class to customize the widgets and layout of the Metrics Dashboard.

You can modify an existing Metrics Dashboard layout, such as the shipped Metrics Dashboard layout, by using the getDashboardLayout method.

Properties

expand all

Name of configuration object that you use to specify the Metrics Dashboard layout. This property is read/write.

Data Types: char

XML file name that contains information on the current Metrics Dashboard layout. This property is read/write.

Data Types: char

Location of XML file that contains Metrics Dashboard layout. This property is optional and read/write.

Data Types: char

Methods

getDashboardLayout(To be removed) Create Metrics Dashboard layout object in base workspace
new(To be removed) Create configuration object for customizing Metrics Dashboard layout
open(To be removed) Create slmetric.dashboard.Configuration object associated with XML configuration file in base workspace
openDefaultConfiguration(To be removed) Return shipping Metrics Dashboard configuration object in base workspace
save(To be removed) Save contents of slmetric.dashboard.Configuration object to XML file

Examples

collapse all

Use the new method to create an slmetric.dashboard.Configuration object. As an input, specify the name of the XML file that is to contain information on a custom metrics dashboard layout. After you add this information to the configuration object, use the save method to save the file.

CONF = slmetric.dashboard.Configuration.new('Name','default')
CONF = 

  Configuration with properties:

        Name: 'default'
    FileName: ''
    Location: ''

Version History

Introduced in R2018b

collapse all

R2022a: Metrics Dashboard will be removed

The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.