
Tutorial 1: Creating a Dashboard 39
Configuring a Query
Checking this box indicates that the view is likely to be deleted or replaced by
something else in the future. In addition, if selected, this property prevents the
component from being used as a child component in new views.
7
The Comments and Context Help text fields are for describing the purpose of
the query to developers and end users. You can supply descriptive text in these
fields if you wish, but they are not needed for the tutorial.
8
Leave Relevant Role(s) and Allowed Role(s) not set. This makes the query
available to everyone without restriction. See the section on Roles in the Web
Component Framework User Guide for more information about setting roles.
9
Observe that the Data Source Type is vFoglight.
10
Ensure that the Data Source ID field’s value is (Default).
11
Choose Host from the Object Type drop-down list.
The list contains the names of all the object types known to this running instance
of vFoglight. You’ will be able to browse this object as soon as we set the path in
the next step.
Note This list box responds to keystrokes, so you can type H to go to the Host option.
12
Searches normally start from the root (/), so ensure that Root Path, Root contains
a slash (/).
13
Objects are grouped at some level down from the root. In this example, the object
we want is in ModelInstances, so click the browse button ( ) and choose it
from the drop-down list in the with Path field.
14
At this point we have constructed a valid query. Test it by clicking the Test
button, which is just below the bar containing the New Query tab.
The Query Results dialog appears, showing the name or names of the servers
returned by the query and, in this case, the Data Type of the object, which is Host.
The Valu e field is empty because there is no numerical value associated with
objects. Simple types have values, objects do not.
Note You can see that the query did return a list of objects by clicking the expand icon (+)
at the left of any host name in the
Query Results dialog. When you do, you will see
that some properties of the host have numerical values, others, which are
themselves objects, show their object data type.
Kommentare zu diesen Handbüchern