Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
wendelin
Commits
807512ec
Commit
807512ec
authored
Jul 27, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments.
parent
941ae3d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
bt5/erp5_wendelin/PathTemplateItem/portal_callables/IngestionPolicy_parseSimpleFluentdTag.py
...portal_callables/IngestionPolicy_parseSimpleFluentdTag.py
+16
-0
bt5/erp5_wendelin/PathTemplateItem/portal_callables/IngestionPolicy_parseSimpleIngestionTag.py
...rtal_callables/IngestionPolicy_parseSimpleIngestionTag.py
+8
-0
No files found.
bt5/erp5_wendelin/PathTemplateItem/portal_callables/IngestionPolicy_parseSimpleFluentdTag.py
View file @
807512ec
"""
This script is used in Ingestion Policy objects to parse provided by fluentd / ebulk reference.
In this case it expects a reference in this format for example:
'sensor1'
i.e. no special characters and one name only.
If you need to use more complex hierachical reference notations like:
'sensor1.product1'
you can use script: 'IngestionPolicy_parseSimpleIngestionTag'
"""
project_reference
=
reference
.
split
(
'.'
)[
0
]
return
{
'resource_reference'
:
reference
,
'specialise_reference'
:
project_reference
,
...
...
bt5/erp5_wendelin/PathTemplateItem/portal_callables/IngestionPolicy_parseSimpleIngestionTag.py
View file @
807512ec
"""
This script is used in Ingestion Policy objects to parse provided by fluentd / ebulk reference.
In this case it expects a reference in this format for example:
'sensor1.product1'
"""
sensor_reference
=
reference
.
split
(
'.'
)[
0
]
data_product_reference
=
reference
.
split
(
'.'
)[
1
]
return
{
'resource_reference'
:
data_product_reference
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment