This example shows how to add support for the Bits In and Bits Out metrics from the Alternate Interface Metric Family (MF).
Step One: Find the internal name for the MF involved to use in REST URLs.
- Identify the Metric Family involved.
- Navigate to the Metric Families list within the Data Aggregator (DA) views in CA Performance Manager (CAPM)
- Select the MF involved
- Hold the mouse over any column in the Metric Families tab and select the Gear icon presented
- Select the Columns option to expose the list of choices
- Check off the box to expose the Internal Name column and values
- Make note of the internal name; NormalizedAlternatePortInfo in this example
Step Two: Display the default MF extension XML code that will be edited
- Open a preferred REST API client
- Set it to perform a GET request
- Request the data from, in this example, the URL "http://DA_HostName:8581/typecatalog/metricfamilies/extension/NormalizedAlternatePortInfo"
- The resulting data should appear similar to the following:
<DataModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" namespace="http://im.ca.com/normalizer" xsi:noNamespaceSchemaLocation="IMDBCertificationFacet.xsd">
<Author>CA</Author>
<Version>1.5</Version>
<FacetType name="NormalizedAlternatePortInfo" descriptorClass="com.ca.im.core.datamodel.certs.NormalizedFacetDescriptorImpl">
<FacetOf namespace="http://im.ca.com/core" name="Item"/>
</FacetType>
</DataModel>
This is the default code used. If it a reset back to default is ever required, the same operation to edit the extension can be used to reset it to default. Save this code for later reference if ever needed.
Step Three: Edit the XML for update to the MF extension, overriding the default behavior.
This is the full set of XML code to be used in a REST API PUT statement. Note that we only include the changes we need to make, to 'extend' the certification and override the default behavior.
<DataModelxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"namespace="http://im.ca.com/normalizer"xsi:noNamespaceSchemaLocation="IMDBCertificationFacet.xsd">
<Author>CA</Author>
<Version>1.6</Version>
<FacetTypename="NormalizedAlternatePortInfo"descriptorClass="com.ca.im.core.datamodel.certs.NormalizedFacetDescriptorImpl">
<FacetOfnamespace="http://im.ca.com/core"name="Item"/>
<AttributeGroupname="AlternatePortInfo"external="true"list="true">
<Attributename="BitsOut"type="Double">
<Minimum>true</Minimum>
<Maximum>true</Maximum>
</Attribute>
<Attributename="BitsIn"type="Double">
<Minimum>true</Minimum>
<Maximum>true</Maximum>
</Attribute>
</AttributeGroup>
</FacetType>
</DataModel>
Step Four: Psot the XML using a REST client to http://DA_HostName:8581/typecatalog/metricfamilies/extension/NormalizedAlternatePortInfo
The first way to confirm success by first seeing a status code 200 returned by the REST API.
The second way to confirm this change is bring up the extension via the URL "http://DA_HostName:8581/typecatalog/metricfamilies/extension/NormalizedAlternatePortInfo". It should show something like this. Note the full Attribute section listing which is normal in this View, despite our having input change for only two of the values.
<DataModelxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"namespace="http://im.ca.com/normalizer"xsi:noNamespaceSchemaLocation="IMDBCertificationFacet.xsd">
<Author>CA</Author>
<Version>1.6</Version>
<FacetTypename="NormalizedAlternatePortInfo"descriptorClass="com.ca.im.core.datamodel.certs.NormalizedFacetDescriptorImpl">
<FacetOfnamespace="http://im.ca.com/core"name="Item"/>
<AttributeGroupname="AlternatePortInfo"external="true"list="true">
<Attributename="BitsOut"type="Double">
<Documentation>Number of bits sent.</Documentation>
<Minimum>true</Minimum>
<Percentile>95</Percentile>
<Rate>true</Rate>
<Percentile2>0</Percentile2>
<Percentile3>0</Percentile3>
<Baseline>false</Baseline>
<Polled>true</Polled>
<Variance>false</Variance>
<Units>Bits</Units>
<RollupExpression/>
<Maximum>true</Maximum>
<ProjectionPercentile>0</ProjectionPercentile>
<RollupStrategy>Sum</RollupStrategy>
<StandardDeviation>false</StandardDeviation>
<IsDbColumn>true</IsDbColumn>
</Attribute>
<Attributename="BitsIn"type="Double">
<Documentation>Number of bits received.</Documentation>
<Minimum>true</Minimum>
<Percentile>95</Percentile>
<Rate>true</Rate>
<Percentile2>0</Percentile2>
<Percentile3>0</Percentile3>
<Baseline>false</Baseline>
<Polled>true</Polled>
<Variance>false</Variance>
<Units>Bits</Units>
<RollupExpression/>
<Maximum>true</Maximum>
<ProjectionPercentile>0</ProjectionPercentile>
<RollupStrategy>Sum</RollupStrategy>
<StandardDeviation>false</StandardDeviation>
<IsDbColumn>true</IsDbColumn>
</Attribute>
</AttributeGroup>
</FacetType>
</DataModel>
Step Five : Edit the Views to include the now present Minimum and Maximum values for the selected metrics.