updating spotinst homepage readme

This commit is contained in:
jeffnoehren 2017-10-03 14:49:29 -07:00
parent 924ad118a5
commit 5c426ecf6e
4 changed files with 74 additions and 26 deletions

View File

@ -1,6 +1,6 @@
<!--
title: Serverless - Spotinst Documentation
menuText: Spotinst
title: Serverless - AWS Documentation
menuText: AWS
layout: Doc
-->
@ -14,28 +14,72 @@ Welcome to the Serverless Spotinst documentation!
If you have questions, join the [chat in gitter](https://gitter.im/serverless/serverless) or [post over on the forums](https://forum.serverless.com/)
## Getting Started
<div class="docsSections">
<div class="docsSection">
<div class="docsSectionHeader">
<a href="./guide/">
<img src="https://spotinst.com/app/uploads/2016/10/spotinst-logo-lightBlue.svg" alt="Serverless Spotinst Guide" width="250" draggable="false"/>
</a>
</div>
<div class="test">
<ul>
<li><a href="./guide/intro.md">Intro</a></li>
<li><a href="./guide/quick-start.md">Quick Start</a></li>
<li><a href="./guide/credentials.md">Credentials</a></li>
</ul>
</div>
</div>
<a href="./guide">Get started here by reading the guide</a>
<div class="docsSection">
<div class="docsSectionHeader">
<a href="./cli-reference/">
<img src="https://spotinst.com/app/uploads/2016/10/spotinst-logo-lightBlue.svg" alt="Serverless Spotinst CLI Reference" width="250" draggable="false"/>
</a>
</div>
<div>
<ul>
<li><a href="./cli-reference/config-credentials.md">Config Credentials</a></li>
<li><a href="./cli-reference/create.md">Create</a></li>
<li><a href="./cli-reference/deploy.md">Deploy</a></li>
<li><a href="./cli-reference/deploy-function.md">Deploy Function</a></li>
<li><a href="./cli-reference/invoke.md">Invoke</a></li>
<li><a href="./cli-reference/logs.md">Logs</a></li>
<li><a href="./cli-reference/info.md">Info</a></li>
<li><a href="./cli-reference/remove.md">Remove</a></li>
<li><a href="./cli-reference/plugin-list.md">Plugin List</a></li>
<li><a href="./cli-reference/plugin-search.md">Plugin Search</a></li>
<li><a href="./cli-reference/plugin-install.md">Plugin Install</a></li>
<li><a href="./cli-reference/plugin-uninstall.md">Plugin Uninstall</a></li>
</ul>
</div>
</div>
## CLI reference
<div class="docsSection">
<div class="docsSectionHeader">
<a href="./events/">
<img src="https://spotinst.com/app/uploads/2016/10/spotinst-logo-lightBlue.svg" alt="Serverless Spotinst Events" width="250" draggable="false"/>
</a>
</div>
<div>
<ul>
<li><a href="./events/http.md">HTTP</a></li>
<li><a href="./events/schedule.md">Schedule</a></li>
</ul>
</div>
</div>
<ul>
<li><a href="./cli-reference/config-credentials.md">Config Credentials</a></li>
<li><a href="./cli-reference/create.md">Create</a></li>
<li><a href="./cli-reference/deploy.md">Deploy</a></li>
<li><a href="./cli-reference/invoke.md">Invoke</a></li>
<li><a href="./cli-reference/logs.md">Logs</a></li>
<li><a href="./cli-reference/info.md">Info</a></li>
<li><a href="./cli-reference/remove.md">Remove</a></li>
<li><a href="./cli-reference/plugin-list.md">Plugin List</a></li>
<li><a href="./cli-reference/plugin-search.md">Plugin Search</a></li>
<li><a href="./cli-reference/plugin-install.md">Plugin Install</a></li>
<li><a href="./cli-reference/plugin-uninstall.md">Plugin Uninstall</a></li>
</ul>
## Supported Events
<ul>
<li><a href="./events/http.md">http event</a></li>
<li><a href="./events/schedule.md">Schedule event</a></li>
</ul>
<div class="docsSection">
<div class="docsSectionHeader">
<a href="./examples/">
<img src="https://s3-us-west-2.amazonaws.com/assets.site.serverless.com/images/sls_aws_examples.png" alt="Serverless Framework AWS Lambda Examples" width="250" draggable="false"/>
</a>
</div>
<div>
<div>
<ul>
<li><a href="./examples/hello-world">Hello World</a></li>
</ul>
</div>
</div>
</div>
</div>

View File

@ -14,4 +14,4 @@ Welcome to the Serverless Spotinst Functions CLI Reference!
Please select a section on the left to get started.
**Note:** Before continuing [Spotinst Functions credentials](../guide/credentials.md) are required for using the CLI..
**Note:** Before continuing [Spotinst Functions credentials](../guide/credentials.md) are required for using the CLI.

View File

@ -12,14 +12,18 @@ layout: Doc
# Schedule
You can trigger the functions by using a scheduled event. This will execute the function according to the cron expressions you specify
You can trigger the functions by using a scheduled event. This will execute the function according to the cron expressions you specify.
You can either use the `rate` or `cron` syntax.
The following two examples are function configurations in the serverless.yml file that are scheduled to trigger the function crawl every 2 hours. You are able to attach more than one schedule to a function.
```yml
functions:
crawl:
handler: crawl
events:
- schedule: rate(2 hours)
- schedule: cron(0 12 * * ? *)
```