-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stats: add new fields for migrated stats
- Loading branch information
Showing
10 changed files
with
256 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2018 CERN. | ||
# Copyright (C) 2023 TU Wien. | ||
# | ||
# Invenio RDM Records is free software; you can redistribute it and/or modify | ||
# it under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""CDS-RDM Statistics search index templates.""" |
Empty file.
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,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2018 CERN. | ||
# Copyright (C) 2023 TU Wien. | ||
# | ||
# Invenio RDM Records is free software; you can redistribute it and/or modify | ||
# it under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Statistics events search index templates.""" |
10 changes: 10 additions & 0 deletions
10
site/cds_rdm/stats/templates/events/file_download/__init__.py
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,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2019 CERN. | ||
# Copyright (C) 2023 TU Wien. | ||
# | ||
# Invenio RDM Records is free software; you can redistribute it and/or modify | ||
# it under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""File download event search index templates.""" |
10 changes: 10 additions & 0 deletions
10
site/cds_rdm/stats/templates/events/file_download/os-v2/__init__.py
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,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2019 CERN. | ||
# Copyright (C) 2023 TU Wien. | ||
# | ||
# Invenio RDM Records is free software; you can redistribute it and/or modify | ||
# it under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""File download event OpenSearch index templates.""" |
102 changes: 102 additions & 0 deletions
102
site/cds_rdm/stats/templates/events/file_download/os-v2/file-download-v1.0.0.json
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,102 @@ | ||
{ | ||
"index_patterns": ["__SEARCH_INDEX_PREFIX__events-stats-file-download-*"], | ||
"settings": { | ||
"index": { | ||
"refresh_interval": "5s" | ||
} | ||
}, | ||
"mappings": { | ||
"dynamic_templates": [ | ||
{ | ||
"date_fields": { | ||
"match_mapping_type": "date", | ||
"mapping": { | ||
"type": "date", | ||
"format": "strict_date_hour_minute_second" | ||
} | ||
} | ||
} | ||
], | ||
"date_detection": false, | ||
"dynamic": "strict", | ||
"numeric_detection": false, | ||
"properties": { | ||
"timestamp": { | ||
"type": "date", | ||
"format": "strict_date_hour_minute_second" | ||
}, | ||
"bucket_id": { | ||
"type": "keyword" | ||
}, | ||
"file_id": { | ||
"type": "keyword" | ||
}, | ||
"file_key": { | ||
"type": "keyword" | ||
}, | ||
"unique_id": { | ||
"type": "keyword" | ||
}, | ||
"country": { | ||
"type": "keyword" | ||
}, | ||
"visitor_id": { | ||
"type": "keyword" | ||
}, | ||
"is_machine": { | ||
"type": "boolean" | ||
}, | ||
"is_robot": { | ||
"type": "boolean" | ||
}, | ||
"unique_session_id": { | ||
"type": "keyword" | ||
}, | ||
"size": { | ||
"type": "double" | ||
}, | ||
"referrer": { | ||
"type": "keyword" | ||
}, | ||
"ip_address": { | ||
"type": "keyword" | ||
}, | ||
"user_agent": { | ||
"type": "keyword" | ||
}, | ||
"user_id": { | ||
"type": "keyword" | ||
}, | ||
"session_id": { | ||
"type": "keyword" | ||
}, | ||
"record_id": { | ||
"type": "keyword" | ||
}, | ||
"recid": { | ||
"type": "keyword" | ||
}, | ||
"parent_id": { | ||
"type": "keyword" | ||
}, | ||
"parent_recid": { | ||
"type": "keyword" | ||
}, | ||
"via_api": { | ||
"type": "boolean" | ||
}, | ||
"is_lcds": { | ||
"type": "boolean" | ||
}, | ||
"before_COUNTER": { | ||
"type": "boolean" | ||
}, | ||
"updated_timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
}, | ||
"aliases": { | ||
"__SEARCH_INDEX_PREFIX__events-stats-file-download": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
site/cds_rdm/stats/templates/events/record_view/__init__.py
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,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2018 CERN. | ||
# Copyright (C) 2023 TU Wien. | ||
# | ||
# Invenio RDM Records is free software; you can redistribute it and/or modify | ||
# it under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Record views search index templates.""" |
10 changes: 10 additions & 0 deletions
10
site/cds_rdm/stats/templates/events/record_view/os-v2/__init__.py
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,10 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# This file is part of Invenio. | ||
# Copyright (C) 2019 CERN. | ||
# Copyright (C) 2023 TU Wien. | ||
# | ||
# Invenio RDM Records is free software; you can redistribute it and/or modify | ||
# it under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""Record view event OpenSearch index templates.""" |
82 changes: 82 additions & 0 deletions
82
site/cds_rdm/stats/templates/events/record_view/os-v2/record-view-v1.0.0.json
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,82 @@ | ||
{ | ||
"index_patterns": ["__SEARCH_INDEX_PREFIX__events-stats-record-view-*"], | ||
"settings": { | ||
"index": { | ||
"refresh_interval": "5s" | ||
} | ||
}, | ||
"mappings": { | ||
"date_detection": false, | ||
"dynamic": "strict", | ||
"numeric_detection": false, | ||
"properties": { | ||
"timestamp": { | ||
"type": "date", | ||
"format": "strict_date_hour_minute_second" | ||
}, | ||
"labels": { | ||
"type": "keyword" | ||
}, | ||
"country": { | ||
"type": "keyword" | ||
}, | ||
"visitor_id": { | ||
"type": "keyword" | ||
}, | ||
"is_machine": { | ||
"type": "boolean" | ||
}, | ||
"is_robot": { | ||
"type": "boolean" | ||
}, | ||
"unique_id": { | ||
"type": "keyword" | ||
}, | ||
"unique_session_id": { | ||
"type": "keyword" | ||
}, | ||
"referrer": { | ||
"type": "keyword" | ||
}, | ||
"ip_address": { | ||
"type": "keyword" | ||
}, | ||
"user_agent": { | ||
"type": "keyword" | ||
}, | ||
"user_id": { | ||
"type": "keyword" | ||
}, | ||
"session_id":{ | ||
"type": "keyword" | ||
}, | ||
"record_id": { | ||
"type": "keyword" | ||
}, | ||
"recid": { | ||
"type": "keyword" | ||
}, | ||
"parent_id": { | ||
"type": "keyword" | ||
}, | ||
"parent_recid": { | ||
"type": "keyword" | ||
}, | ||
"via_api": { | ||
"type": "boolean" | ||
}, | ||
"is_lcds": { | ||
"type": "boolean" | ||
}, | ||
"before_COUNTER": { | ||
"type": "boolean" | ||
}, | ||
"updated_timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
}, | ||
"aliases": { | ||
"__SEARCH_INDEX_PREFIX__events-stats-record-view": {} | ||
} | ||
} |