Add scripts to create myops-getqueryview:
[myops.git] / web / query / _attachments / index2.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
3 <html>\r
4 \r
5 <head>\r
6 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>\r
7 <meta name="description" content="description"/>\r
8 <meta name="keywords" content="keywords"/> \r
9 <meta name="author" content="author"/> \r
10 <link rel="stylesheet" type="text/css" href="default.css" media="screen"/>\r
11 <title>MyOpsQuery</title>\r
12 </head>\r
13 \r
14 <body>\r
15 \r
16 <div class="container">\r
17 \r
18         <div class="header">\r
19                 \r
20                 <div class="title">\r
21                         <h1>Welcome to MyOps-Query:</h1>\r
22                         <h4>A simple collection & query interface for MyPLC deployments.</h4>\r
23                 </div>\r
24 \r
25                 <div class="navigation">\r
26                         <a href="index.html">Home</a>\r
27                         <a href="index.html">About</a>\r
28                         <div class="clearer"><span></span></div>\r
29                 </div>\r
30 \r
31         </div>\r
32 \r
33         <div class="main">\r
34                 \r
35                 <div class="content">\r
36 \r
37                         <h1>Example Queries</h1>\r
38                                 <p> This is a list of various queries you can perform with MyOps.</p>\r
39                                 <p>Many others can be performed by manipulating the query URL.</p>\r
40 \r
41                                   <ul>\r
42                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>\r
43                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>\r
44                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,free_disk_root&filter=free_disk_root<=0.2">filter=free_disk_root&lt;=0.2</a> </li>\r
45                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,kernel_version&filter=kernel_version=~2.6.32">filter=kernel_version=~2.6.32</a> </li>\r
46                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=running_slices=~princeton_comon">filter=running_slices=~princeton_comon</a> </li>\r
47                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=rpm_versions=~fprobe-ulog-1.1.2-6.planetlab">filter=rpm_versions=~fprobe-ulog-1.1.2-6.planetlab</a> </li>\r
48                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>\r
49                                           <li> <a href="http://myops.planet-lab.org:5984/_list/rpms/rpm-to-host?group=true&startkey=[%22rpm%22]&endkey=[%22rpm%22,{}]">List RPMS per host</a> </li>\r
50                                 </ul>\r
51 \r
52 \r
53                         <h1>Supported Operators</h1>\r
54                                   <ul>\r
55                                         <li><strong>==</strong> String comparison for equivalence.</li>\r
56                                         <li><strong>!=</strong> String comparison for non-equivalence</li>\r
57                                         <li><strong>&lt;=</strong> Given a number, &lt;= converts the parameter into a number and compares it to the specified value. i.e. "root_free_disk&lt;=0.2"</li>\r
58                                         <li><strong>=~</strong> Given a regular expression, =~ will return rows who's attribute matches this pattern.</li>\r
59                                   </ul>\r
60                         \r
61                   <h1>Supported Parameters</h1>\r
62                                   <ul>\r
63                                         <li><strong>fields</strong> a comma separated list of attribute names to report.</li>\r
64                                         <li><strong>filter </strong> a simple logic expressions for filtering which values are returned.</li> \r
65                                         <li><strong>within </strong> only return node records that have been updated in less than <strong>within</strong> seconds. (default is 1 day (86400)) </li> \r
66                                         <li><strong>skip_header </strong> do not print the attribute names as the first ddne.</li> \r
67                                         <li><strong>rpmpattern </strong> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</li> \r
68                                   </ul>\r
69                 </div>\r
70                 <div class="sidenav">\r
71 \r
72                         <h1>Search</h1>\r
73                         <form action="index.html">\r
74                         <div>\r
75                                 <input type="text" name="search" class="styled" /> <input type="submit" value="submit" class="button" />\r
76                         </div>\r
77                         </form>\r
78 \r
79                         <h1>Collected Attributes</h1>\r
80                                 <ul>\r
81                                 <li><a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a></li>\r
82                                 </ul>\r
83 \r
84                 </div>\r
85         \r
86                 <div class="clearer"><span></span></div>\r
87 \r
88         </div>\r
89 \r
90 </div>\r
91 \r
92 <div class="footer">&copy; 2006 <a href="index.html">Website.com</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a>. Template design by <a href="http://arcsin.se">Arcsin</a>\r
93 </div>\r
94 \r
95 </body>\r
96 \r
97 </html>\r