core/source/notification_channels/file_touch.py

38 lines
561 B
Python
Raw Normal View History

class implementation_notification_channel_file_touch(interface_notification_channel):
'''
[implementation]
'''
def parameters_schema(self):
return {
"type": "object",
"additionalProperties": False,
"properties": {
"path": {
"type": "string"
}
},
"required": [
"path"
]
}
'''
[implementation]
'''
def normalize_conf_node(self, node):
return dict_merge(
{
},
node
)
'''
[implementation]
'''
def notify(self, parameters, name, data, state, output):
_os.path.touch(parameters["path"])