Add scripts to create myops-getqueryview:
[myops.git] / web / query / _attachments / index.html.indigo
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="../../screen.css" media="screen"/-->\r
11 <!--link rel="stylesheet" href="../../style/screen.css" type="text/css"/-->\r
12 <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />\r
13 <link rel="stylesheet" href="_static/pygments.css" type="text/css" />\r
14           \r
15 <title>MyOpsQuery</title>\r
16 </head>\r
17 \r
18 <body>\r
19 \r
20 <div class="container">\r
21 \r
22         <div class="header">\r
23                 \r
24                 <div class="title">\r
25                         <h1>Welcome to MyOps-Query:</h1>\r
26                         <h4>A simple collection & query interface for MyPLC deployments.</h4>\r
27                 </div>\r
28 \r
29                 <div class="navigation">\r
30                         <a href="index.html">Home</a>\r
31                         <a href="index.html">About</a>\r
32                         <div class="clearer"><span></span></div>\r
33                 </div>\r
34 \r
35         </div>\r
36 \r
37         <div class="main">\r
38                 \r
39                 <div class="content">\r
40 \r
41                         <h1>Example Queries</h1>\r
42                                 <p> This is a list of various queries you can perform with MyOps.</p>\r
43                                 <p>Many others can be performed by manipulating the query URL.</p>\r
44 \r
45                                   <ul>\r
46                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>\r
47                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>\r
48                                           <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
49                                           <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
50                                           <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
51                                           <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
52                                           <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>\r
53                                           <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
54                                 </ul>\r
55 \r
56 \r
57                         <h1>Supported Operators</h1>\r
58                                   <ul>\r
59                                         <li><strong>==</strong> String comparison for equivalence.</li>\r
60                                         <li><strong>!=</strong> String comparison for non-equivalence</li>\r
61                                         <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
62                                         <li><strong>=~</strong> Given a regular expression, =~ will return rows who's attribute matches this pattern.</li>\r
63                                   </ul>\r
64                         \r
65                   <h1>Supported Parameters</h1>\r
66                                   <ul>\r
67                                         <li><strong>fields</strong> a comma separated list of attribute names to report.</li>\r
68                                         <li><strong>filter </strong> a simple logic expressions for filtering which values are returned.</li> \r
69                                         <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
70                                         <li><strong>skip_header </strong> do not print the attribute names as the first ddne.</li> \r
71                                         <li><strong>rpmpattern </strong> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</li> \r
72                                   </ul>\r
73                 </div>\r
74                 <div class="sidenav">\r
75 \r
76                         <h1>Search</h1>\r
77                         <form action="query">\r
78                         <div>\r
79                                 <input type="text" name="filter" class="styled" /> \r
80                                 <input type="hidden" name="fields" value="date,hostname" /> \r
81                                 <input type="submit" value="submit" class="button" />\r
82                         </div>\r
83                         </form>\r
84 \r
85                         <h1>Collected Attributes</h1>\r
86                                 <ul>\r
87                                 <li><a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a></li>\r
88                                 </ul>\r
89 \r
90                 </div>\r
91         \r
92                 <div class="clearer"><span></span></div>\r
93 \r
94         </div>\r
95 \r
96 </div>\r
97 \r
98 <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
99 </div>\r
100 \r
101 </body>\r
102 \r
103 </html>\r