Vorheriges Thema: GetServiceDefinitionMetrics

Nächstes Thema: DeleteServiceDefinitionMetric

GetServiceDefinitionLastCommittedMetrics

Description

This method returns a list of the metrics of the last committed version of the specified Service Definition for which the name matches the search string.

Syntax

EntityListData GetServiceDefinitionLastCommittedVersionMetrics (long serviceDefinitionFolderItemID, string searchText);

Parameters

Name

Type

Description

serviceDefinitionFolderItemID

long

The ID of the service definition folder item.

searchText

string

The text to search for.

The search string is optional and may be left empty. If used, it may contain an asterisk as a wildcard for the search.

Return Value

The metrics of the last, committed version of the service definition as type EntityListData.

Note: Returns metrics only if there is a committed version.

Remarks

An EntityListData object is returned as a collection of EntityListItemData items, which contains both the name and ID of every object.

Note: The status (effective, not effective, pending) does not have an affect; the sole consideration is whether the template is “committed” or not committed.

Note: Throws an error when the service definition has no committed version.