CTT - Escalation
From PlcWiki
(Difference between revisions)
Pavel.kruzik (Talk | contribs) |
Pavel.kruzik (Talk | contribs) (→Žolíky) |
||
Line 3: | Line 3: | ||
Zadáváme přímo do textu v této formě: User login on server '''<%= ctt.record.data.server %>''' was detected. | Zadáváme přímo do textu v této formě: User login on server '''<%= ctt.record.data.server %>''' was detected. | ||
- | ctt.interval. | + | =====ctt.interval.===== |
id | id | ||
uuid | uuid | ||
Line 10: | Line 10: | ||
id_id | id_id | ||
value | value | ||
- | ctt.sensor. | + | =====ctt.sensor.===== |
sender_id | sender_id | ||
sensor_id | sensor_id | ||
Line 26: | Line 26: | ||
place | place | ||
data | data | ||
- | ctt.record. | + | =====ctt.record.===== |
id | id | ||
chart_time | chart_time | ||
Line 43: | Line 43: | ||
Pak použijeme například takto '''<%= ctt.record.data.server %>''' | Pak použijeme například takto '''<%= ctt.record.data.server %>''' | ||
- | ctt.definition. | + | =====ctt.definition.===== |
timeout_days, | timeout_days, | ||
timeout_sensor | timeout_sensor | ||
- | ctt.config.server. | + | =====ctt.config.server.===== |
appUrl, | appUrl, | ||
publicAppUrl, | publicAppUrl, |
Revision as of 12:14, 16 April 2021
Contents |
Žolíky
Zadáváme přímo do textu v této formě: User login on server <%= ctt.record.data.server %> was detected.
ctt.interval.
id uuid interval_definition_name start_event_id id_id value
ctt.sensor.
sender_id sensor_id sensor_type group_name group_order start_value sensor_name color machine workplace workplace_name line project place data
ctt.record.
id chart_time chart_value unit value_type sender_id sensor_id delivered_time subject_id subject_class_id subject_class_name author data
Klíč data obsahuje strukturu json dalších údajů, které nese event, který vyvolal změnu intervalu. Pro různé eventy se tento obsah liší. Pak použijeme například takto <%= ctt.record.data.server %>
ctt.definition.
timeout_days, timeout_sensor
ctt.config.server.
appUrl, publicAppUrl, sentEmailURI, sentSmsURI, cleaUrl, cttRecUrl, pathCtt
Příklad
Předmět zprávy:
User login (<%= ctt.record.data.loginName %> from <%= ctt.record.data.hostIp %>) on server <%= ctt.record.data.server %> - request for reason
Tělo zprávy:
User login on server <%= ctt.record.data.server %> was detected. User:\t\t<%= ctt.record.data.loginName %> Source IP:\t<%= ctt.record.data.hostIp %> Login:\t\t<%= Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSS",ctt.record.data.firstSessionLoginTime).format('yyyy-MM-dd HH:mm:ss') %> (<%= Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSSXXX",ctt.record.data.firstSessionLoginTime).format('yyyy-MM-dd HH:mm:ss') %> CET) Logout:\t\t<%= Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSS",ctt.record.data.serverEventTime).format('yyyy-MM-dd HH:mm:ss') %> (<%= Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSSXXX",ctt.record.data.serverEventTime).format('yyyy-MM-dd HH:mm:ss') %> CET) Please, complete the reason on a form here: <%= ctt.config.server.publicAppUrl %>out.html?v=user_logout&id=<%= ctt.interval.uuid %>