summaryrefslogtreecommitdiff
path: root/build/html/samples/samples.html
diff options
context:
space:
mode:
authorKen <kenny@madgloryint.com>2017-11-01 13:27:17 -0400
committerKen <kenny@madgloryint.com>2017-11-01 13:27:17 -0400
commit1385a3cefc7312a3f18e8d78a854411b53c75e67 (patch)
treef27292fc20215f68c25ab09830947da56fb732a9 /build/html/samples/samples.html
parent0f19a09673be2bb79426e21a6460d5095f43287a (diff)
downloadvainglory-docs-1385a3cefc7312a3f18e8d78a854411b53c75e67.tar.gz
vainglory-docs-1385a3cefc7312a3f18e8d78a854411b53c75e67.zip
Initial commit of the new logs.
Diffstat (limited to 'build/html/samples/samples.html')
-rw-r--r--build/html/samples/samples.html230
1 files changed, 230 insertions, 0 deletions
diff --git a/build/html/samples/samples.html b/build/html/samples/samples.html
new file mode 100644
index 0000000..9384637
--- /dev/null
+++ b/build/html/samples/samples.html
@@ -0,0 +1,230 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>Samples &#8212; Battelrite 0.2 documentation</title>
+ <link rel="stylesheet" href="../_static/css/battlerite.css" type="text/css" />
+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
+ <script type="text/javascript">
+ var DOCUMENTATION_OPTIONS = {
+ URL_ROOT: '../',
+ VERSION: '0.2',
+ COLLAPSE_INDEX: false,
+ FILE_SUFFIX: '.html',
+ HAS_SOURCE: true,
+ SOURCELINK_SUFFIX: '.txt'
+ };
+ </script>
+ <script type="text/javascript" src="../_static/jquery.js"></script>
+ <script type="text/javascript" src="../_static/underscore.js"></script>
+ <script type="text/javascript" src="../_static/doctools.js"></script>
+ <link rel="index" title="Index" href="../genindex.html" />
+ <link rel="search" title="Search" href="../search.html" />
+ <link rel="next" title="Telemetry" href="../telemetry/telemetry.html" />
+ <link rel="prev" title="Players" href="../players/players.html" />
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ </head>
+ <body>
+<header id="BTT" role="banner">
+ <div class="menu-top-outer clearfix">
+ <div class="wrapper clearfix">
+ <a href="/" id="site-logo"></a>
+ <span id="logSignBtn" class="btn">Login / Signup</span>
+ <nav id="mainMenu" class="main-menu-con">
+ <ul class="main-menu clearfix">
+ <li><a class="active" href="guides.html">Documentation</a></li>
+ <li><a href="faq.html">Faqs</a></li>
+ <li><a href="creations.html">Creations</a></li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+</header>
+
+ <div class="related top">
+ <nav id="rellinks">
+ <ul>
+ <li>
+ &larr;
+ <a href="../players/players.html" title="Previous document">Players</a>
+ </li>
+ <li>
+ <a href="../telemetry/telemetry.html" title="Next document">Telemetry</a>
+ &rarr;
+ </li>
+ </ul>
+ </nav>
+ <nav id="breadcrumbs">
+ <ul>
+ <li><a href="../index.html">Battelrite 0.2 documentation</a></li>
+ </ul>
+ </nav>
+ </div>
+
+ <div class="document">
+ <div class="documentwrapper">
+ <div class="bodywrapper">
+ <div class="body" role="main">
+
+ <div class="section" id="samples">
+<span id="id1"></span><h1>Samples<a class="headerlink" href="#samples" title="Permalink to this headline">¶</a></h1>
+<p>The samples endpoint provides an easy way to access hourly batches of random match data to aggregate stats.</p>
+<div class="section" id="get-a-collection-of-samples">
+<h2>Get a Collection of Samples<a class="headerlink" href="#get-a-collection-of-samples" title="Permalink to this headline">¶</a></h2>
+<p>This endpoint retrieves a collection of randomly selected matches.</p>
+<p><strong>HTTP Request</strong></p>
+<div class="line-block">
+<div class="line"><code class="docutils literal"><span class="pre">GET</span> <span class="pre">https://api.dc01.gamelockerapp.com/shards/na/samples</span></code></div>
+</div>
+<table border="1" class="docutils">
+<colgroup>
+<col width="17%" />
+<col width="10%" />
+<col width="73%" />
+</colgroup>
+<thead valign="bottom">
+<tr class="row-odd"><th class="head">Parameter</th>
+<th class="head">Default</th>
+<th class="head">Description</th>
+</tr>
+</thead>
+<tbody valign="top">
+<tr class="row-even"><td>page[offset]</td>
+<td>0</td>
+<td>Allows paging over results</td>
+</tr>
+<tr class="row-odd"><td>page[limit ]</td>
+<td>50</td>
+<td>The default (and current maximum) is 50.Values less than 50 and great than 2 are supported.</td>
+</tr>
+<tr class="row-even"><td>sort</td>
+<td>createdAt</td>
+<td>By default, Matches are sorted by creation time ascending.</td>
+</tr>
+<tr class="row-odd"><td>filter[createdAt-start]</td>
+<td>none</td>
+<td>Must occur before end time. Format is iso8601 Usage: filter[createdAt-start]=2017-01-01T08:25:30Z</td>
+</tr>
+<tr class="row-even"><td>filter[createdAt-end]</td>
+<td>none</td>
+<td>Queries search the last 3 hrs. Format is iso8601 i.e.filter[createdAt-end]=2017-01-01T13:25:30Z</td>
+</tr>
+</tbody>
+</table>
+<p><strong>Python:</strong></p>
+<div class="highlight-python"><div class="highlight"><pre><span></span><span class="n">curl</span> <span class="s2">&quot;https://api.dc01.gamelockerapp.com/shards/na/samples&quot;</span> \
+<span class="o">-</span><span class="n">H</span> <span class="s2">&quot;Authorization: Bearer &lt;api-key&gt;&quot;</span> \
+<span class="o">-</span><span class="n">H</span> <span class="s2">&quot;Accept: application/vnd.api+json&quot;</span>
+
+<span class="o">//</span><span class="n">The</span> <span class="n">above</span> <span class="n">command</span> <span class="n">returns</span> <span class="n">JSON</span> <span class="n">structured</span> <span class="n">like</span> <span class="n">this</span><span class="p">:</span>
+
+<span class="p">{</span>
+ <span class="s2">&quot;type&quot;</span><span class="p">:</span> <span class="s2">&quot;sample&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;id&quot;</span><span class="p">:</span> <span class="s2">&quot;sample-na-2017-02-28T07:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;attributes&quot;</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">&quot;URL&quot;</span><span class="p">:</span> <span class="s2">&quot;URL of Sample Matches&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;createdAt&quot;</span><span class="p">:</span> <span class="s2">&quot;2017-02-28T07:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;shardId&quot;</span><span class="p">:</span> <span class="s2">&quot;na&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;t0&quot;</span><span class="p">:</span> <span class="s2">&quot;2017-02-28T07:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;t1&quot;</span><span class="p">:</span> <span class="s2">&quot;2017-02-28T08:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;titleId&quot;</span><span class="p">:</span> <span class="s2">&quot;semc-vainglory&quot;</span>
+ <span class="p">},</span>
+ <span class="s2">&quot;relationships&quot;</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">&quot;assets&quot;</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">&quot;data&quot;</span><span class="p">:</span> <span class="p">[]</span>
+ <span class="p">}</span>
+ <span class="p">}</span>
+ <span class="p">}</span>
+</pre></div>
+</div>
+<p><strong>Javascript:</strong></p>
+<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="c1">//There are a variety of Java HTTP libraries that support query-parameters.</span>
+
+<span class="nx">curl</span> <span class="s2">&quot;https://api.dc01.gamelockerapp.com/shards/na/samples&quot;</span> <span class="o">\</span>
+<span class="o">-</span><span class="nx">H</span> <span class="s2">&quot;Authorization: Bearer &lt;api-key&gt;&quot;</span> <span class="o">\</span>
+<span class="o">-</span><span class="nx">H</span> <span class="s2">&quot;Accept: application/vnd.api+json&quot;</span>
+
+<span class="c1">//The above command returns JSON structured like this:</span>
+
+<span class="p">{</span>
+ <span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;sample&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;id&quot;</span><span class="o">:</span> <span class="s2">&quot;sample-na-2017-02-28T07:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;attributes&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="s2">&quot;URL&quot;</span><span class="o">:</span> <span class="s2">&quot;URL of Sample Matches&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;createdAt&quot;</span><span class="o">:</span> <span class="s2">&quot;2017-02-28T07:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;shardId&quot;</span><span class="o">:</span> <span class="s2">&quot;na&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;t0&quot;</span><span class="o">:</span> <span class="s2">&quot;2017-02-28T07:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;t1&quot;</span><span class="o">:</span> <span class="s2">&quot;2017-02-28T08:15:30Z&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;titleId&quot;</span><span class="o">:</span> <span class="s2">&quot;semc-vainglory&quot;</span>
+ <span class="p">},</span>
+ <span class="s2">&quot;relationships&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="s2">&quot;assets&quot;</span><span class="o">:</span> <span class="p">{</span>
+ <span class="s2">&quot;data&quot;</span><span class="o">:</span> <span class="p">[]</span>
+ <span class="p">}</span>
+ <span class="p">}</span>
+ <span class="p">}</span>
+</pre></div>
+</div>
+<div class="toctree-wrapper compound">
+</div>
+</div>
+</div>
+
+
+ </div>
+ </div>
+ </div>
+ <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
+ <div class="sphinxsidebarwrapper">
+<h3><a href="../index.html">Table Of Contents</a></h3>
+<ul class="current">
+<li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../datacenters/datacenters.html">Datacenters</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../authorization/authorization.html">Authorization</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../titles/titles.html">Titles</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../makingrequests/makingrequests.html">Making Requests</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../receivingresponses/receivingresponses.html">Receiving Responses</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../matches/matches.html">Matches</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../match_data_summary/match_data_summary.html">Match Data Summary</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../players/players.html">Players</a></li>
+<li class="toctree-l1 current"><a class="current reference internal" href="#">Samples</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="#get-a-collection-of-samples">Get a Collection of Samples</a></li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal" href="../telemetry/telemetry.html">Telemetry</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../teams/teams.html">Teams</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../links/links.html">Links</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../community_sdks/community_sdks.html">Community SDKs</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../errors/errors.html">Errors</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../changelog/changelog.html">Changelog</a></li>
+</ul>
+
+ </div>
+ </div>
+ <div class="clearer"></div>
+ </div>
+ <div class="related bottom">
+ <nav id="rellinks">
+ <ul>
+ <li>
+ &larr;
+ <a href="../players/players.html" title="Previous document">Players</a>
+ </li>
+ <li>
+ <a href="../telemetry/telemetry.html" title="Next document">Telemetry</a>
+ &rarr;
+ </li>
+ </ul>
+ </nav>
+ <nav id="breadcrumbs">
+ <ul>
+ <li><a href="../index.html">Battelrite 0.2 documentation</a></li>
+ </ul>
+ </nav>
+ </div>
+
+ </body>
+</html> \ No newline at end of file