Skip to content

Commit

Permalink
v0.20.0
Browse files Browse the repository at this point in the history
WIP: Develop
  • Loading branch information
bastienterrier authored Jul 4, 2019
2 parents b42ed70 + 063e389 commit 5268584
Show file tree
Hide file tree
Showing 34 changed files with 746 additions and 866 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
install-dependencies:
docker:
- image: circleci/node:8
- image: circleci/node:12
steps:
- checkout
- restore_cache:
Expand All @@ -20,7 +20,7 @@ jobs:
paths: [node_modules]
build:
docker:
- image: circleci/node:8
- image: circleci/node:12
steps:
- setup_remote_docker
- checkout
Expand All @@ -34,7 +34,7 @@ jobs:
command: npm run test:cov && (cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js)
deploy:
docker:
- image: circleci/node:8
- image: circleci/node:12
steps:
- checkout
- attach_workspace:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:10.16.0-alpine as node
FROM node:12.5.0-alpine as node
RUN mkdir -p /src/app
WORKDIR /src/app
COPY package.json /src/app/package.json
RUN npm install
COPY . /src/app
RUN npm run build

FROM node:10.16.0-alpine
FROM node:12.5.0-alpine
RUN mkdir -p /app
COPY package.json /app/package.json
WORKDIR /app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,91 @@
"title": "Throughput",
"type": "row"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": ["#F2495C", "rgba(237, 129, 40, 0.89)", "#73BF69"],
"decimals": null,
"format": "none",
"gauge": {
"maxValue": 1,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": false
},
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 1
},
"id": 17,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "#5794F2",
"show": true
},
"tableColumn": "",
"targets": [
{
"expr": "up",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": "0,1",
"timeFrom": null,
"timeShift": null,
"title": "API",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "DOWN",
"value": "0"
},
{
"op": "=",
"text": "UP",
"value": "1"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
Expand All @@ -108,8 +193,8 @@
},
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"w": 8,
"x": 8,
"y": 1
},
"hideTimeOverride": false,
Expand Down Expand Up @@ -900,7 +985,7 @@
"list": []
},
"time": {
"from": "now-15m",
"from": "now-5m",
"to": "now"
},
"timepicker": {
Expand All @@ -916,20 +1001,10 @@
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
"time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
},
"timezone": "browser",
"title": "Hygie",
"uid": "faw1jhVWk",
"version": 26
}
"version": 29
}
43 changes: 4 additions & 39 deletions docs/guide/registerCron.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,14 @@ Available in CRON jobs

As said in the [Getting Started section](gettingStarted.md), you have to put all your CRON files in your `.hygie` folder.

Then, complete your JSON request to register your file(s), as defined in the following schema.
Everytime you're creating / updating / deleting a cron file into that directory, it will create / update / delete the cron job automatically.

<RegisterCron/>
A cron file is a classical `.rulesrc` file, but with an optional option : the cron expression `cron`, which default value is `0 0 6-20/1 * * *`. That means, every hour from 6am to 8pm every day.

### Tips

::: tip
`expression` is optional. Default value is `0 0 6-20/1 * * *`.
Which means, every hour from 6am to 8pm every day.
::: warning
Cron jobs cannot be processed more than 1 time per hour.
:::

::: tip
You can use [https://cronexpressiondescriptor.azurewebsites.net](https://cronexpressiondescriptor.azurewebsites.net) to generate your CRON expression.
:::

3 files with the same CRON expression.

```json
{
"filename": ["cron-1.rulesrc", "cron-2.rulesrc", "cron-3.rulesrc"],
"projectURL": "https://github.com/DX-DeveloperExperience/hygie",
"expression": "0 0 8-20/1 * * *"
}
```

3 files but with different CRON expression.

```json
[
{
"filename": ["cron-1.rulesrc"],
"projectURL": "https://github.com/DX-DeveloperExperience/hygie",
"expression": "0 0 8-20/1 * * *"
},
{
"filename": ["cron-2.rulesrc"],
"projectURL": "https://github.com/DX-DeveloperExperience/hygie",
"expression": "0 0 8-20/2 * * *"
},
{
"filename": ["cron-2.rulesrc"],
"projectURL": "https://github.com/DX-DeveloperExperience/hygie",
"expression": "0 0 8-20/3 * * *"
}
]
```
Loading

0 comments on commit 5268584

Please sign in to comment.