forked from Top-Q/difido-reports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from siklu/ATE-293
ATE 293 - improvements to server
- Loading branch information
Showing
15 changed files
with
195 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# instrucrtion on how to install as service: (ubuntu >=20.04) | ||
# installation directory is assumed to be /opt/difido-server | ||
# sudo cp difido.service /etc/systemd/system/ | ||
# sudo systemctl daemon-reload | ||
# sudo systemctl enable difido.service | ||
# sudo systemctl start difido | ||
# sudo systemctl status difido | ||
|
||
[Unit] | ||
Description=Difido Reporter server | ||
[Service] | ||
User=root | ||
# The configuration file application.properties should be here: | ||
|
||
#change this to your workspace | ||
WorkingDirectory=/opt/difido-server | ||
|
||
#path to executable. | ||
#executable is a bash script which calls jar file | ||
ExecStart=/opt/difido-server/bin/start.sh | ||
|
||
#SuccessExitStatus=143 | ||
TimeoutStopSec=10 | ||
Restart=on-failure | ||
RestartSec=5 | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,128 +1,117 @@ | ||
{ | ||
"settings": { | ||
"index": { | ||
"number_of_shards": 2, | ||
"number_of_replicas": 1 | ||
} | ||
}, | ||
"mappings": { | ||
"test": { | ||
"dynamic_templates": [ | ||
{ | ||
"long_prop": { | ||
"match": "long_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "long", | ||
"index": false | ||
} | ||
} | ||
}, | ||
{ | ||
"int_prop": { | ||
"match": "int_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "integer", | ||
"index": false | ||
} | ||
} | ||
}, | ||
{ | ||
"double_prop": { | ||
"match": "double_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "double", | ||
"index": false | ||
} | ||
} | ||
}, | ||
{ | ||
"float_prop": { | ||
"match": "float_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "float", | ||
"index": false | ||
} | ||
} | ||
}, | ||
{ | ||
"date_prop": { | ||
"match": "date_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "date", | ||
"index": false, | ||
"format": "yyyy/MM/dd HH:mm:ss" | ||
} | ||
} | ||
}, | ||
{ | ||
"notanalyzed": { | ||
"match": "*", | ||
"unmatch": "^(long_|int_|double_|float_|date_)$", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "keyword", | ||
"index": true | ||
} | ||
} | ||
} | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"uid": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"parent": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"status": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"url": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"description": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"execution": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"executionId": { | ||
"type": "long" | ||
}, | ||
"executionDuration": { | ||
"type": "long" | ||
}, | ||
"machine": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"timestamp": { | ||
"type": "date", | ||
"format": "yyyy/MM/dd HH:mm:ss" | ||
}, | ||
"executionTimestamp": { | ||
"type": "date", | ||
"format": "yyyy/MM/dd HH:mm:ss" | ||
}, | ||
"duration": { | ||
"type": "long" | ||
} | ||
} | ||
|
||
} | ||
} | ||
"settings": { | ||
"index": { | ||
"number_of_shards": 2, | ||
"number_of_replicas": 1 | ||
} | ||
}, | ||
"mappings": { | ||
"test": { | ||
"properties": { | ||
"name": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"uid": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"parent": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"status": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"url": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"description": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"execution": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"executionId": { | ||
"type": "long" | ||
}, | ||
"executionDuration": { | ||
"type": "long" | ||
}, | ||
"machine": { | ||
"type": "keyword", | ||
"index": "true" | ||
}, | ||
"timestamp": { | ||
"type": "date", | ||
"format": "yyyy/MM/dd HH:mm:ss" | ||
}, | ||
"executionTimestamp": { | ||
"type": "date", | ||
"format": "yyyy/MM/dd HH:mm:ss" | ||
}, | ||
"duration": { | ||
"type": "long" | ||
} | ||
}, | ||
"dynamic_templates": [ | ||
{ | ||
"long_prop": { | ||
"match": "long_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "long", | ||
"index": "true" | ||
} | ||
} | ||
}, | ||
{ | ||
"int_prop": { | ||
"match": "int_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "integer", | ||
"index": "true" | ||
} | ||
} | ||
}, | ||
{ | ||
"double_prop": { | ||
"match": "double_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "double", | ||
"index": "true" | ||
} | ||
} | ||
}, | ||
{ | ||
"date_prop": { | ||
"match": "date_*", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "date", | ||
"index": "true", | ||
"format": "yyyy/MM/dd HH:mm:ss" | ||
} | ||
} | ||
}, | ||
{ | ||
"notanalyzed": { | ||
"match": "*", | ||
"unmatch": "^(long_|int_|double_|date_)$", | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "keyword", | ||
"index": "true" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.