The following describes the syntax of the View Definition (view.xml
) file as part of the View Package.
<view>
The <view>
element is the enclosing element in the Definition File. The following table describes the elements you can include in the <view>
element:
Element | Required | Description |
---|---|---|
name | Yes | The name of the view. See <name> for more information. |
label | Yes | The label of the view. See <label> for more information. |
version | Yes | The version of the view. See <version> for more information. |
parameter | No | Defines a configuration parameter that is used to when creating a view instance. See <parameter> for more information. |
resource | No | Defines a resource that is exposed by the view. See <resource> for more information. |
<name>
The name of the view. Example:
<name>MY_COOL_VIEW</name>
<label>
The label of the view. Example:
<label>My Cool View</label>
<version>
The version of the view. Example:
<version>0.1.0</version>
<parameter>
Element | Required | Description |
---|---|---|
name | Yes | The name of the parameter. See <parameter><name> for more information. |
description | Yes | The description of the parameter. See <parameter><description> for more information. |
required | Yes | If true, the parameter is required in order to create a view instance. See <parameter><required> for more information. |
<parameter>
<name>clusterIds</name>
<description>A comma-separated list of cluster IDs</description>
<required>false</required>
</parameter>
<parameter><name>
TBD
<resource>
TBD
<resource>
<name>clusters</name>
<service-class>org.apache.ambari.view.clustermanager.ClustersService</service-class>
</resource>