Map Analytics Inputs and Outputs to Tags
About I/O Mapping
Use I/O Mapping to connect, or map, the applicable asset tags in the analytics deployments for analytics inputs, outputs, and constant definitions that were previously configured in the Analytic Template.
Input tags are marked as optional or required in the 2. I/O Mapping section. You cannot proceed to the next step until all inputs marked as required are mapped.
Map Tags and Asset Attributes for Deployment
The I/O Mapping is the second step in deployment. It allows you to map the inputs that were defined while building the analytic template to tenant-specific asset tags and attributes.
Mapping an analytic to time series data or asset attribute involves associating an analytic input to asset tags or assigning values including attributes.
The framework does not allow partial mapping for required inputs. All required inputs must be mapped for each selected asset before you can proceed. If you are mapping more than 20 assets, it is recommended to map inputs by common tags. Any template definitions for constants and outputs are automatically mapped; however, you can replace specific values.
The 2.I/O Mapping section contains the following components:
Component | Description |
---|---|
ASSET(S) pane | The ASSET(S) pane may be hidden. To access this pane, select to expand it or select to collapse it. Depending on the type of mapping, you can access either the common tags available for all selected assets in the deployment or the asset hierarchy with only the relevant tags within that single asset node.
|
Data Flow pane | The Data Flow pane may be hidden. To access this pane, select to expand it or select to collapse it. Adding iterations is applicable to orchestration deployments. |
INPUT DEFINITION: TAGS & ATTRIBUTES table | A table of inputs to be used in the deployment. You can map the required tags to inputs here. When you are mapping asset by asset, only inputs for the selected asset appear in the ASSETS subsection. Note: If you have registered for external data sources in the Time Series Data Sources module, in the DATA SOURCE column you can select registered external data sources. You can select the data source as Pre-prod time series or one of the registered external data sources on per port basis. Attributes values are always selected as Pre-prod data source. |
CONSTANTS table | A table of constants selected when building the Analytic Template. You can change the value for constants displayed here. |
OUTPUT DEFINITION: TAGS & ATTRIBUTES table | A table of outputs selected when building the Analytic Template. You can select the Output UoM and UoM Conversion values, map a tag to the constant, and select the outputs destination in a drop-down list. If enabled, you can map aggregate tags for computing aggregate values. Note: Data source for each Output ports will be assigned by default to Pre-prod time series and you cannot write the data to Predix time series data source. |
OUTPUT DEFINITION: ALERTS table | A table of Alert Template associations selected when building the Analytic Template. Note: Only Pre-prod alert templates are associated for the analytic. Alert payloads are ingested to only Pre-prod environment. |
Access Production Time Series Data from Pre-Prod Analytics
Before You Begin
It is assumed that, all the assets selected to configure an analytic in Pre-prod environment, available in Production environment also. Tag names and attribute names are also identical for these Pre-prod and production assets. If a tag or attribute mapped to a Pre-prod analytic does not exist in production environment, then analytic will fail to execute.
About This Task
To test or enhance the Analytic blueprints in the Pre-prod environment before promoting to production, the analytics need access to data in production environment. This makes the production data available to analytics being verified in Pre-prod environment.
Procedure
Results
Modify the Analytic Version During Deployment
You can modify the analytic version being used within an Analytic Data Flow during deployment.
Before You Begin
You must have uploaded more than one analytic version to modify during the deployment of that analytic.
About This Task
Modifying the analytic version for an analytic step in an analytic data flow allows you to use a different version than set as current (default) in the analytic template.
Procedure
Manually Map Inputs for Selected Assets (All Assets)
Use the Mapping Options box to map inputs for tags common to all assets selected in first step in Deployment.
Before You Begin
Make sure you have selected the target assets in the first step in Deployment.
About This Task
When you select the option to map inputs for all assets, the tags common to all assets selected in the 1. Asset Selection section are available to map. Mapping for all assets will map the inputs for the assets that use the selected tag.
Procedure
Manually Map Inputs per Asset (Asset by Asset)
Map inputs to tags associated with a single asset applied in asset selection during deployment.
Before You Begin
Make sure you have selected the target assets in the 1. Asset Selection section for the deployment.
About This Task
Use this procedure to map tags or attributes for each selected asset individually. After an asset is selected for mapping, only input definitions for that asset are displayed in the INPUT DEFINITION: TAGS & ATTRIBUTES table, and only the selected asset tags and asset attributes are available as nodes in the Tags and Attributes pane. displays tags and attributes for the selected asset.
Procedure
Map Inputs with Suggested Tags
Use the Suggested Tags option to map inputs for tags that have the same name as the input.
Before You Begin
Ensure that you have selected the target assets in the first step in deployment.
About This Task
Automapping maps the input and constant ports of an analytic with the tags or attributes of an asset that matches the names of the ports. Depending on the Mapping Value Type (MVT), that is, a tag or attribute of each input and constant port of an analytic, automapping searches for the corresponding tag or attribute that matches the port name in the assets that are a part of the asset filter, and then assigns the tag or attribute to each port. In addition, the data source corresponding to a tag or attribute is automatically selected for each input, constant, and output ports.
In addition to APM Time Series and APM Asset data sources, any data sources that are used must be registered with TMS. CAF recognizes two types of tags, which are Sensor and Computed. Sensor tags are assigned to input ports, and Computed tags are assigned to output ports. The tenant must assign a default data source for each type of tags and attributes.
If you have configured input parameters similar name as tags available for mapping, then you may use the Suggested Tags option to speed up the mapping process.
Procedure
Map Multiple Tags to an Input
You can map a single input port to multiple tags at any level of the asset hierarchy.
Before You Begin
This procedure assumes that the following prerequisite tasks have been completed.
- You have uploaded the required assets, tags and time series data required for this analytic.
- You have configured asset filters to use in the deployment.
- You have the required access permissions to manage analytics on Spark runtime.
- You have added and configured an Analytic Template that has the Aggregate Mapping option enabled.
- You have created a deployment for that Analytic Template.
- You have applied the deployment to the applicable assets through asset selection.
About This Task
This functionality is only available for tenants that are configured to support running analytics on the Spark runtime cluster environment. Depending on the tenant configuration, this option may not be available. The analytic artifact uploaded to the Analytic Template being used in the deployment also must support aggregation.
Procedure
Results
Add Mapping Override to Analytic Inputs
You can add asset applicability overrides to inputs during I/O Mapping step in deployment.
Before You Begin
About This Task
This option is only available for tenants that are configured to support input overrides during deployment. Using overrides allows you to select a different asset applicability than that defined in the 1. Asset Selection section. It is recommended that you map tags to inputs both for its default asset applicability and overriding asset applicability.
Inputs are marked as optional or required in the 2. I/O Mapping section of the Deployments page.
Procedure
Results
Map Inputs, Constants, and Outputs for Assets in an Equipment Template
Map inputs, constants, and outputs for all assets within the selected equipment template in step 1 for the Analytic Deployment.
Before You Begin
This procedure applies to deployments using an equipment template for its asset applicability. Make sure you have selected the target equipment template to derive assets to map in step 1 for the Analytic Deployment.
About This Task
When you map inputs for assets within an equipment template, tags common to all assets selected in step 1 for the Analytic Deployment are available. If filters were applied to narrow the asset applicability, only tags common to those selected assets are available.
Procedure
Map an Attribute
You can map asset attribute to inputs, constants, and outputs in an analytic deployment.
Before You Begin
Make sure you have selected the target assets for your deployment.
The asset model has attributes ingested as part of the asset model.
About This Task
The data format for the component to be mapped (input, constant, or output) must be set to Asset Attribute when defining the analytic template. You cannot map attributes to data format defined as Time Series.
Procedure
Modify the Output UoM Values
You can change a defined value for a unit of measure for the selected deployment. The unit of measurement (UOM) values are defined when building the Analytic Template. Changing the unit of measurements in the deployment affects the selected deployment only.
Before You Begin
Make sure you have selected the target assets for your deployment.
Procedure
- In the module navigation menu, navigate to .
- Select an existing deployment to access its workspace.
- In the page heading, select Edit to access the 1. Asset Selection section.
- Select the 2. I/O Mapping tab.
- In the OUTPUT DEFINITION: TAGS & ATTRIBUTES table, select the Output UoM box to access output unit of measurements and then select a value in the list.
- Select Save to save the deployment.