Add scripts to create myops-getqueryview:
[myops.git] / web / query / _attachments / index.html.mono
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r
2         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6         <link rel="stylesheet" type="text/css" href="../../style/style.css" />
7     <title>MyOpsQuery</title>
8   </head>
9 <body>
10         <div id="wrap">
11         <div id="header">
12                 <h1>Welcome to MyOps-Query:</h1>
13                 <h2>A simple collection & query interface for MyPLC deployments.</h2>
14         </div>
15         <div id="menu">
16                 <ul>
17                 <li><a href="#">Home</a></li>
18                 <li><a href="#">About</a></li>
19                 </ul>
20         </div>
21
22 <div id="top"> </div>
23
24 <div id="contentwrap"> 
25
26         <div id="content">
27
28                 <h2>Examples:</h2>
29                 <p> This is a list of various queries you can perform with MyOps.</p>
30                 <p>Many others can be performed by manipulating the query URL.</p>
31       <ol id="posts">
32           <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>
33           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>
34           <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>
35           <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>
36           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=running_slices=~princeton_comon">filter=running_slices=~princeton_comon</a> </li>
37           <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>
38           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>
39           <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>
40     </ol>
41         </div>
42
43         <div id="sidebar">
44   <h3>Supported Operators</h3>
45   <dl>
46         <dt>==<dt> <dd>String comparison for equivalence.</dd>
47         <dt>!=<dt> <dd>String comparison for non-equivalence</dd>
48         <dt>&lt;=<dt> <dd>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"</dd>
49         <dt>=~<dt> <dd>Given a regular expression, =~ will return rows who's attribute matches this pattern.</dd>
50   <h3>Supported Parameters</h3>
51   <dl>
52         <dt>fields<dt> <dd>a comma separated list of attribute names to report.</dd>
53         <dt>filter </dt><dd> a simple logic expressions for filtering which values are returned.</dd> 
54         <dt>within </dt><dd> only return node records that have been updated in less than <em>within</em> seconds. (default is 1 day (86400)) </dd> 
55         <dt>skip_header </dt><dd> do not print the attribute names as the first ddne.</dd> 
56         <dt>rpmpattern </dt><dd> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</dd> 
57   </dl>
58   <h3>Collected Attributes</h3>
59   <a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a>
60
61 </div>
62
63 <div style="clear: both;"> </div>
64
65 </div>
66
67 <div id="bottom"> </div>
68
69 <div id="footer">
70 <p>&copy; Copyright 2010 You | Template by <a href="http://www.starcraft2revealed.com/">Starcraft 2 Guides</a></p>
71 </div>
72
73 </div>
74
75 </body>
76 </html>