Add scripts to create myops-getqueryview:
[myops.git] / web / query / _attachments / index.html.mono
diff --git a/web/query/_attachments/index.html.mono b/web/query/_attachments/index.html.mono
new file mode 100644 (file)
index 0000000..76f8017
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r
+       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+       <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+       <link rel="stylesheet" type="text/css" href="../../style/style.css" />
+    <title>MyOpsQuery</title>
+  </head>
+<body>
+       <div id="wrap">
+       <div id="header">
+               <h1>Welcome to MyOps-Query:</h1>
+               <h2>A simple collection & query interface for MyPLC deployments.</h2>
+       </div>
+       <div id="menu">
+               <ul>
+               <li><a href="#">Home</a></li>
+               <li><a href="#">About</a></li>
+               </ul>
+       </div>
+
+<div id="top"> </div>
+
+<div id="contentwrap"> 
+
+       <div id="content">
+
+               <h2>Examples:</h2>
+               <p> This is a list of various queries you can perform with MyOps.</p>
+               <p>Many others can be performed by manipulating the query URL.</p>
+      <ol id="posts">
+          <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>
+          <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>
+          <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>
+          <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>
+          <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=running_slices=~princeton_comon">filter=running_slices=~princeton_comon</a> </li>
+          <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>
+          <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>
+          <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>
+    </ol>
+       </div>
+
+       <div id="sidebar">
+  <h3>Supported Operators</h3>
+  <dl>
+       <dt>==<dt> <dd>String comparison for equivalence.</dd>
+       <dt>!=<dt> <dd>String comparison for non-equivalence</dd>
+       <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>
+       <dt>=~<dt> <dd>Given a regular expression, =~ will return rows who's attribute matches this pattern.</dd>
+  <h3>Supported Parameters</h3>
+  <dl>
+       <dt>fields<dt> <dd>a comma separated list of attribute names to report.</dd>
+       <dt>filter </dt><dd> a simple logic expressions for filtering which values are returned.</dd> 
+       <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> 
+       <dt>skip_header </dt><dd> do not print the attribute names as the first ddne.</dd> 
+       <dt>rpmpattern </dt><dd> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</dd> 
+  </dl>
+  <h3>Collected Attributes</h3>
+  <a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a>
+
+</div>
+
+<div style="clear: both;"> </div>
+
+</div>
+
+<div id="bottom"> </div>
+
+<div id="footer">
+<p>&copy; Copyright 2010 You | Template by <a href="http://www.starcraft2revealed.com/">Starcraft 2 Guides</a></p>
+</div>
+
+</div>
+
+</body>
+</html>