From fa0aebd81efbe6b94d292e3c3172753fe51a117f Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 27 Nov 2017 14:49:42 +0100 Subject: [PATCH] update: updated database table --- doc/DOC.md | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/doc/DOC.md b/doc/DOC.md index 7f380f4..85d3bed 100644 --- a/doc/DOC.md +++ b/doc/DOC.md @@ -10,16 +10,23 @@ Real time data are sent to their respective server's Redis pubsub channel # Redis database -| Module | Feature | Key name | Key type | Key content | -|---------------------|---------------------------------------|--------------------------------|----------|--------------------------| -| Geolocalisation | Coordinate per day | ```GEO_COORD:date``` | zset |{lat: xx, lon: yy} | -| Geolocalisation | Country per day | ```GEO_COUNTRY:date``` | zset |ISO_CODE | -| Geolocalisation | Coordinate and value per radius | ```GEO_RAD:date``` | geo | { categ: xx, value: yy } | -| Contribution | Contribution per day (monthly points) | ```CONTRIB_DAY:date``` | zset | org | -| Contribution | Category contributed per day | ```CONTRIB_CATEG:date:categ``` | zset | org | -| Contribution | Last org that contributed | ```CONTRIB_LAST:date``` | zset | org | -| Contribution | All org collected from the ZMQ | ```CONTRIB_ALL_ORG``` | set | org | -| Contribution | Acquired contribution requirement | ```CONTRIB_ORG:org:req```
| string | integer | -| | ```req``` is one of: | ```points```
```CONTRIB_REQ_i```
```ATTR_WEEK_COUNT```
```PROP_WEEK_COUNT```
```SIGHT_WEEK_COUNT```
```EVENT_WEEK_COUNT```
```EVENT_MONTH_COUNT```
```BADGE_i```
| | | -| Contribution | Acquired trophy points | ```CONTRIB_TROPHY:categ``` | zset | org | -| Contribution | Last org to get a trophy or badge | ```CONTRIB_LAST_AWARDS:date``` | zset | org | +| Module | Feature | Key name | Key type | Key content | +|---------------------|---------------------------------------|------------------------------------|----------|--------------------------| +| Geolocalisation | Coordinate per day | ```GEO_COORD:date``` | zset |{lat: xx, lon: yy} | +| Geolocalisation | Country per day | ```GEO_COUNTRY:date``` | zset |ISO_CODE | +| Geolocalisation | Coordinate and value per radius | ```GEO_RAD:date``` | geo | { categ: xx, value: yy } | +| Contribution | Contribution per day (monthly points) | ```CONTRIB_DAY:date``` | zset | org | +| Contribution | Category contributed per day | ```CONTRIB_CATEG:date:categ``` | zset | org | +| Contribution | Last org that contributed | ```CONTRIB_LAST:date``` | zset | org | +| Contribution | All org collected from the ZMQ | ```CONTRIB_ALL_ORG``` | set | org | +| Contribution | Acquired contribution requirement | ```CONTRIB_ORG:org:req```
| string | integer | +| | ```req``` is one of: | ```points```
```CONTRIB_REQ_i```
```ATTR_WEEK_COUNT```
```PROP_WEEK_COUNT```
```SIGHT_WEEK_COUNT```
```EVENT_WEEK_COUNT```
```EVENT_MONTH_COUNT```
```BADGE_i```
| | with TTL set accordingly | +| Contribution | Acquired trophy points | ```CONTRIB_TROPHY:categ``` | zset | org | +| Contribution | Last org to get a trophy or badge | ```CONTRIB_LAST_AWARDS:date``` | zset | org | +| Users | Use to consider only one org per hour | ```LOGIN_TIMESTAMPSET:date_hour``` | set | org (TTL = 1 hour) | +| Users | Use to get when users connect to MISP | ```LOGIN_TIMESTAMP:date``` | set | timestamp | +| Users | When an org connects to MISP | ```LOGIN_ORG:date``` | zset | org | +| Trendings | Popularity of type | ```TRENDINGS_type:date``` | zset | type_name | +| | ```type``` is one of: | ```EVENTS```
```CATEGS```
```TAGS```
```DISC```
| | | +| Trendings | Popularity of type | ```TRENDINGS_SIGHT_type:date``` | string | integer | +| | ```type``` is one of: | ```sightings```
```false_positive```| | ||