Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • After running these commands the adapter is configured and a first source is available. When multiple sources are required, run the create-source-in-adapter for each source needed.

  • Each source is created with a default configuration for dimension mappingsdimensions, Longview symbol names, etc. These defaults need to be changed for the source to function properly. The next section explains how to configure the Longview sources.

...

Code Block
languagesql
update  sc
set     sc.Url = 'https://example-url-to-longview-source.com',
        sc.UserName = 'Administrator',
        sc.Password = 'secret_password'
from    LVSourceConfiguration sc
join    Source s on sc.SourceId = s.Id
where   s.Name = 'MyLongviewSource'

Dimension Configuration

To show the currently configured dimension mappings for a given source run the following query with the correct source name:

Code Block
languagesql
select  dm.LVSourceConfigurationId, 
        dm.CxoDimension, 
        dm.LVDimensionName 
from    Source s
join    LVSourceConfiguration sc on sc.SourceId = s.Id
join    DimensionMapping dm on dm.LVSourceConfigurationId = sc.Id
where   s.Name = 'SOURCE NAME HERE'

This shows which Longview dimension is mapped to which CXO dimension. If the LVDimensionName column has a NULL value, nothing is mapped to this CXO dimension.

To update a dimension mapping for a given source run the following query with correct values for LVSourceConfigurationId and CxoDimension (you get these from running the select query above) plus the name of the LV Dimension you want to map.

Code Block
languagesql
update  DimensionMapping
set     LVDimensionName = '...'
where   LVSourceConfigurationId = 'LV SOURCE CONFIGURATION ID HERE'
and     CxoDimension = 'CXO DIMENSION HERE'