Vorheriges Thema: GetContractMetricDetails

Nächstes Thema: Contract Parameter Methods

AddMetricsToContract

Description

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

Syntax

void AddMetricsToContract (long contractVersionItemID, long[] MetricIDs, bool forceAdd);

Parameters

Name

Type

Description

contractVersionItemId

long

The ID of the contract version.

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.

Get Contract Metric Notes Methods
GetContractMetricNotes

Description

This method gets the details of the metric notes in a contract.

Syntax

MetricNotesData GetContractMetricNotes(long metricID);

Parameters

Name

Type

Description

metrictID

long

The metric's ID.

Return Value

The metric notes details, as type MetricNotesData.

Remarks

None.

UpdateContractMetricNotes

Description

This method updates the metric notes in a contract.

Syntax

void UpdateContractMetricNotes(long metricID, MetricNotesData data);

Parameters

Name

Type

Description

metricID

long

The Metric's ID.

data

MetricNotesData

The data used to update notes of this metric.

Return Value

None.

Remarks

None.