Addmi 10-query builder


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • This in this presentation we’ll discuss the Atrium Discovery Query Builder
  • The Query Builder enables you to select default attributes on a node type, and to group and evaluate conditions on those attributes or groups of attributes all from an easy to use tool
  • When you expand the Customize section, the query builder is revealed. Use the navigation tabs to view other areas. The query constructor tab is divided over a three pane selection tool that may be used to construct complex queries. Although this course will focus on basic queries only. The query viewer is the area where you can view the query as it is being built. Use the control icons to add or remove conditional statements and apply the query to test.
  • , but for now let’s continue to look at the Query Constructor tab The attribute selection filter and the Attribute lookup tool allows you to select attributes to use conditional statements of your query.
  • The default list view for each node type shows pre-defined columns. You can customize these views using the Customize Columns tab of the Query Builder. For example, the default list view for hosts shows the Virtual column which may not be useful to you.
  • Addmi 10-query builder

    1. 1. Query Builder <ul><li>Customizing List Views </li></ul>
    2. 2. Outline <ul><li>Query Builder Basics </li></ul><ul><ul><li>What is it </li></ul></ul><ul><ul><li>Where do I find it </li></ul></ul><ul><li>Query Builder Layout and Tabs </li></ul><ul><ul><li>Query Constructor </li></ul></ul><ul><ul><li>Customized Column </li></ul></ul><ul><ul><li>Raw Query </li></ul></ul><ul><li>A Query Builder Walkthrough </li></ul>
    3. 3. Query Builder Basics
    4. 4. What Is the Query Builder? <ul><li>The Query builder is a UI tool to help you: </li></ul><ul><ul><li>Select attributes </li></ul></ul><ul><ul><li>Then group and evaluate conditions on those attributes </li></ul></ul><ul><ul><li>Include attributes not found in the pre-defined summary list </li></ul></ul><ul><li>..All without using the query language syntax </li></ul><ul><li>Follow relationships from the starting node type and group and evaluate attributes on destination nodes in the same way </li></ul><ul><ul><li>Advanced topic </li></ul></ul><ul><li>Save your queries for future use </li></ul>
    5. 5. Where Do I Find the Query Builder? (1) <ul><li>Any list view </li></ul><ul><ul><li>Example: Host List, SoftwareInstance List </li></ul></ul><ul><li>Expand “Customize” to reveal the query builder </li></ul>
    6. 6. Where Do I Find the Query Builder? (2) <ul><li>Quick View channel on Home page </li></ul>
    7. 7. Where Do I Find the Query Builder? (3) <ul><li>Infrastructure Tab </li></ul><ul><ul><li>Infrastructure Summary </li></ul></ul>
    8. 8. Query Builder Layout
    9. 9. Query Builder General Layout Three Pane Selection Tool Query Viewer Remove Condition Icon Add Condition Icon Second Navigation Tabs
    10. 10. Query Constructor Tab <ul><li>Select attributes or relationships to add to the query viewer </li></ul><ul><ul><li>Use the attribute filter </li></ul></ul><ul><ul><li>Or the lookup tool </li></ul></ul><ul><li>Use the menus and fields to create a conditional statement </li></ul>Attribute Selection Filter Query Viewer Attribute Lookup Tool
    11. 11. Query Constructor Tab: Conditionals <ul><li>Create conditions against the attributes chosen </li></ul><ul><ul><li>Select from drop down menu </li></ul></ul><ul><ul><li>Example: E10K SSP Hostname is defined </li></ul></ul><ul><li>Build complex queries using </li></ul><ul><ul><li>Any (or) </li></ul></ul><ul><ul><li>All (and) </li></ul></ul><ul><ul><li>None (not and) </li></ul></ul>
    12. 12. Customize Columns Tab <ul><li>Add new attributes to your query </li></ul><ul><ul><li>Use the attribute filter </li></ul></ul><ul><ul><li>Or the lookup tool </li></ul></ul><ul><li>Pre-defined columns list of attributes </li></ul><ul><ul><li>Can rename or delete columns </li></ul></ul><ul><li>Buttons to confirm column customization </li></ul>
    13. 13. Raw Query Tab <ul><li>Can view the raw query syntax </li></ul>
    14. 14. Save the Query (1) <ul><li>Return to the Query Constructor tab to save the query for future use </li></ul><ul><ul><li>All conditions must be applied first </li></ul></ul><ul><ul><li>Otherwise the “Save” button will be grayed out </li></ul></ul><ul><ul><li>Provide a title and a description </li></ul></ul>Three Pane something
    15. 15. Save the Query (2) <ul><li>Find the saved queries: </li></ul><ul><ul><li>“ Saved Queries” link in information banner </li></ul></ul><ul><ul><li>Reports > Saved Queries </li></ul></ul>
    16. 16. A Query Builder Walkthrough <ul><li>A Guided Exercise Using the Training VA </li></ul>
    17. 17. Select a List of Hosts <ul><li>Go To: </li></ul><ul><li>Infrastructure Tab </li></ul><ul><li>Click on Hosts Icon from Infrastructure Summary </li></ul>
    18. 18. Filter By Column (1) <ul><li>Filter the list to only display virtual hosts </li></ul><ul><li>Click on the filter tool </li></ul><ul><ul><li>Under the virtual column </li></ul></ul><ul><ul><li>Select “Yes” from the drop down menu </li></ul></ul>
    19. 19. Filter By Column (2) <ul><li>Filter again to only view VMware hosts </li></ul><ul><li>Use the filter tool </li></ul><ul><ul><li>Under the Hardware Vendor Column </li></ul></ul><ul><ul><li>Select “VMware, Inc.” </li></ul></ul><ul><li>Now click on “Customize” </li></ul>
    20. 20. Using Query Builder (1) <ul><li>Notice the conditions that the query builder has so built so far </li></ul><ul><ul><li>Virtual is true </li></ul></ul><ul><ul><li>Hardware Vendor is VMware, Inc. </li></ul></ul>
    21. 21. Using Query Builder (2) <ul><li>Use the lookup tool to select the hostname attribute and add to the query viewer section </li></ul><ul><li>Now choose “contains word” from conditional drop down menu </li></ul><ul><li>Enter “test” and hit the apply button to see results below </li></ul>
    22. 22. Customizing the Columns <ul><li>Now use the lookup tool to add the RAM attribute </li></ul><ul><ul><li>Rename if you wish </li></ul></ul><ul><li>Remove the status attribute </li></ul><ul><ul><li>Use the red x </li></ul></ul><ul><li>Hit apply to save any changes made on this tab </li></ul>
    23. 23. Save the Query For Later <ul><li>Go back to the Query Constructor Tab </li></ul><ul><ul><li>Apply all the changes </li></ul></ul><ul><ul><li>Save query for later use </li></ul></ul>
    24. 24. <ul><li>Online Documentation: </li></ul><ul><ul><li> </li></ul></ul>Further Resources Tideway Foundation Version 7.2 Documentation Title