Skip to content

AssetGroup

Extends Group

An asset group extends Group to provide more asset specific capabilities.

Static Methods

findByPath(path) → AssetGroup

Returns an asset group given a path. A path must start with a "/" and contain one or more group names separated by "/" characters. For example, "/production/acme" identifies the "acme" group in the "production" group.

Returns: AssetGroup - The AssetGroup or null if one could not be found.

Parameters:

ParameterTypeDescription
pathStringA path as described above.

findById(id) → AssetGroup

Returns an asset group given its id. If no group exists with this id, null is returned.

Returns: AssetGroup - The AssetGroup or null if one could not be found.

Parameters:

ParameterTypeDescription
idStringThe group's id.

Instance Methods

getAssets() → Array

Returns an array of Asset objects that are members of this group.

Returns: Array - An array of objects of type Asset.

getAssets(A) → Array

Returns an Array of String. Each String is the id of objects contained within the group, excluding other groups.

Returns: Array - An Array of String

Parameters:

ParameterTypeDescription
APatternA regular expression that must match each member.

Workload Automation and Orchestration