Vorheriges Thema: CreateContractTemplateMetricParameter

Nächstes Thema: ContractTemplate Metric Registration Methods

AddMetricsToContractTemplate

Description

This method copies existing metrics in the system to the specified contract template.

Syntax

void AddMetricsToContractTemplate (long contractTemplateFolderItemID, long[] MetricIDs, bool forceAdd);

Parameters

Name

Type

Description

contractTemplateFolderItemId

long

The ID of the contract template folder item.

MetricIDs

long[]

An array of IDs of the selected metrics to add.

forceAdd

bool

Specifies whether to force the addition.

Return Value

The copied metrics may belong to another contract, service definition, or contract template.

If the addition fails due to existing metrics with similar names, or mismatched effective dates, it is possible to set the forceAdd argument to true, in order to perform the addition while automatically renaming the metrics.

Remarks

None.