#17 | Comment line and change data displayed to match oitc one

This commit is contained in:
Jordi Albert 2022-07-20 12:32:28 +02:00
parent 685fd6178e
commit c7d5d61676
2 changed files with 6 additions and 6 deletions

View File

@ -87,11 +87,11 @@ jenv = {
# --------------- # ---------------
# Hook on document methods and events # Hook on document methods and events
doc_events = { # doc_events = {
"Customer": { # "Customer": {
"on_update": "msp.msp.customer_quick_entry.custom_customer_info" # "on_update": "msp.msp.customer_quick_entry.custom_customer_info"
} # }
} # }
# Scheduled Tasks # Scheduled Tasks
# --------------- # ---------------

View File

@ -30,7 +30,7 @@ class ITObject(Document):
'currentState': host_data['Hoststatus']['humanState'], 'currentState': host_data['Hoststatus']['humanState'],
'lastCheck': host_data['Hoststatus']['lastCheckInWords'], 'lastCheck': host_data['Hoststatus']['lastCheckInWords'],
'nextCheck': host_data['Hoststatus']['nextCheckInWords'], 'nextCheck': host_data['Hoststatus']['nextCheckInWords'],
'currentStateSince': host_data['Hoststatus']['lastHardStateChangeInWords'] 'currentStateSince': host_data['Hoststatus']['last_state_change_in_words']
}, },
'servicesStatus': { 'servicesStatus': {
'totalServices': host_data['ServicestatusSummary']['total'], 'totalServices': host_data['ServicestatusSummary']['total'],