Skip to content

Commit

Permalink
Apama Analytics EPL Apps tools for 10.9.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
“yagnasri7” committed Jul 15, 2021
1 parent 0fd812b commit 0cd5779
Show file tree
Hide file tree
Showing 80 changed files with 8,289 additions and 352 deletions.
8 changes: 8 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
============
Change Log
============

10.9.0.6
---------

+ Added support for testing the performance of EPL apps. Check the documentation for more details.
298 changes: 298 additions & 0 deletions doc/performance-testing.rst

Large diffs are not rendered by default.

309 changes: 237 additions & 72 deletions doc/pydoc/_modules/apamax/eplapplications/basetest.html

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions doc/pydoc/_modules/apamax/eplapplications/connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>apamax.eplapplications.connection &#8212; EPL Apps Tools 10.9.0.1 documentation</title>
<title>apamax.eplapplications.connection &#8212; EPL Apps Tools 10.9.0.6 documentation</title>
<link rel="stylesheet" href="../../../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />

Expand All @@ -26,7 +26,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
Expand All @@ -53,7 +53,7 @@ <h1>Source code for apamax.eplapplications.connection</h1><div class="highlight"

<div class="viewcode-block" id="C8yConnection"><a class="viewcode-back" href="../../../autodocgen/apamax.eplapplications.connection.html#apamax.eplapplications.connection.C8yConnection">[docs]</a><span class="k">class</span> <span class="nc">C8yConnection</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Simple object to create connection to Cumulocity and perform REST requests.</span>
<span class="sd"> Simple object to create connection to Cumulocity IoT and perform REST requests.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">username</span><span class="p">,</span> <span class="n">password</span><span class="p">):</span>
Expand Down Expand Up @@ -152,7 +152,8 @@ <h3><a href="../../../index.html">Table of Contents</a></h3>
<li class="toctree-l1"><a class="reference internal" href="../../../using-eplapp.html">Using the eplapp.py command line tool</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../testing-epl.html">Writing tests for EPL apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../using-pysys.html">Using PySys to test your EPL apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../autodocgen/apamax.html">PySys helpers for Apama EPL Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../performance-testing.html">Testing the performance of your EPL apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../autodocgen/apamax.html">PySys helpers for EPL apps</a></li>
</ul>

<div id="searchbox" style="display: none" role="search">
Expand All @@ -178,7 +179,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../index.html" >Module code</a> &#187;</li>
</ul>
</div>
Expand Down
23 changes: 12 additions & 11 deletions doc/pydoc/_modules/apamax/eplapplications/eplapps.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>apamax.eplapplications.eplapps &#8212; EPL Apps Tools 10.9.0.1 documentation</title>
<title>apamax.eplapplications.eplapps &#8212; EPL Apps Tools 10.9.0.6 documentation</title>
<link rel="stylesheet" href="../../../_static/classic.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />

Expand All @@ -26,7 +26,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../index.html" accesskey="U">Module code</a> &#187;</li>
</ul>
</div>
Expand Down Expand Up @@ -56,7 +56,7 @@ <h1>Source code for apamax.eplapplications.eplapps</h1><div class="highlight"><p


<div class="viewcode-block" id="EPLApps"><a class="viewcode-back" href="../../../autodocgen/apamax.eplapplications.eplapps.html#apamax.eplapplications.eplapps.EPLApps">[docs]</a><span class="k">class</span> <span class="nc">EPLApps</span><span class="p">:</span>
<span class="sd">&quot;&quot;&quot;Class for interacting with Apama EPL Apps in Cumulocity</span>
<span class="sd">&quot;&quot;&quot;Class for interacting with Apama EPL Apps in Cumulocity IoT.</span>

<span class="sd"> :param connection: A C8yConnection object for the connection to the platform.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand All @@ -66,11 +66,11 @@ <h1>Source code for apamax.eplapplications.eplapps</h1><div class="highlight"><p

<div class="viewcode-block" id="EPLApps.deploy"><a class="viewcode-back" href="../../../autodocgen/apamax.eplapplications.eplapps.html#apamax.eplapplications.eplapps.EPLApps.deploy">[docs]</a> <span class="k">def</span> <span class="nf">deploy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">file</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="n">description</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">inactive</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">redeploy</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Deploys a local mon file to Apama EPL Apps in Cumulocity.</span>
<span class="sd"> Deploys a local mon file to Apama EPL Apps in Cumulocity IoT.</span>

<span class="sd"> :param file: Path to local mon file to be deployed as an EPL app</span>
<span class="sd"> :param file: Path to local mon file to be deployed as an EPL app.</span>
<span class="sd"> :param name: Name of the EPL app to be uploaded (optional). By default this will be the name of the mon file being uploaded.</span>
<span class="sd"> :param description: Description of the EPL app (optional)</span>
<span class="sd"> :param description: Description of the EPL app (optional).</span>
<span class="sd"> :param inactive: Boolean of whether the app should be &#39;active&#39; (inactive=False) or &#39;inactive&#39; (inactive=True) when it is deployed.</span>
<span class="sd"> :param redeploy: Boolean of whether we are overwriting an existing EPL app.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down Expand Up @@ -129,7 +129,7 @@ <h1>Source code for apamax.eplapplications.eplapps</h1><div class="highlight"><p

<div class="viewcode-block" id="EPLApps.update"><a class="viewcode-back" href="../../../autodocgen/apamax.eplapplications.eplapps.html#apamax.eplapplications.eplapps.EPLApps.update">[docs]</a> <span class="k">def</span> <span class="nf">update</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">new_name</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">file</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">description</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">state</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Updates an EPL app in Cumulocity.</span>
<span class="sd"> Updates an EPL app in Cumulocity IoT.</span>

<span class="sd"> :param name: name of the EPL App to be updated.</span>
<span class="sd"> :param new_name: the updated name of the EPL app (optional)</span>
Expand Down Expand Up @@ -199,7 +199,7 @@ <h1>Source code for apamax.eplapplications.eplapps</h1><div class="highlight"><p
<div class="viewcode-block" id="EPLApps.getEPLApps"><a class="viewcode-back" href="../../../autodocgen/apamax.eplapplications.eplapps.html#apamax.eplapplications.eplapps.EPLApps.getEPLApps">[docs]</a> <span class="k">def</span> <span class="nf">getEPLApps</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">includeContents</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> :param includeContents: Fetches the EPL files with their contents if True. This is an optional query parameter.</span>
<span class="sd"> :return: A json object of all the user&#39;s EPL apps in Cumulocity</span>
<span class="sd"> :return: A json object of all the user&#39;s EPL apps in Cumulocity IoT.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">try</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">connection</span><span class="o">.</span><span class="n">do_get</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;/service/cep/eplfiles?contents=</span><span class="si">{</span><span class="n">includeContents</span><span class="si">}</span><span class="s1">&#39;</span><span class="p">)[</span><span class="s1">&#39;eplfiles&#39;</span><span class="p">]</span>
Expand All @@ -208,7 +208,7 @@ <h1>Source code for apamax.eplapplications.eplapps</h1><div class="highlight"><p

<div class="viewcode-block" id="EPLApps.delete"><a class="viewcode-back" href="../../../autodocgen/apamax.eplapplications.eplapps.html#apamax.eplapplications.eplapps.EPLApps.delete">[docs]</a> <span class="k">def</span> <span class="nf">delete</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Deletes an EPL app in Cumulocity.</span>
<span class="sd"> Deletes an EPL app in Cumulocity IoT.</span>

<span class="sd"> :param name: The name of the EPL app to be deleted.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down Expand Up @@ -247,7 +247,8 @@ <h3><a href="../../../index.html">Table of Contents</a></h3>
<li class="toctree-l1"><a class="reference internal" href="../../../using-eplapp.html">Using the eplapp.py command line tool</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../testing-epl.html">Writing tests for EPL apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../using-pysys.html">Using PySys to test your EPL apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../autodocgen/apamax.html">PySys helpers for Apama EPL Apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../performance-testing.html">Testing the performance of your EPL apps</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../autodocgen/apamax.html">PySys helpers for EPL apps</a></li>
</ul>

<div id="searchbox" style="display: none" role="search">
Expand All @@ -273,7 +274,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../../../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.1 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">EPL Apps Tools 10.9.0.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../../index.html" >Module code</a> &#187;</li>
</ul>
</div>
Expand Down
Loading

0 comments on commit 0cd5779

Please sign in to comment.