You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTERTABLE service_state ADD UNIQUE INDEX idx_service_state_service_id (service_id);
20
+
ALTERTABLE service_state
21
+
DROPINDEX idx_service_state_service_id,
22
+
ADD UNIQUE INDEX idx_service_state_service_id(service_id, host_id, severity, last_state_change, soft_state),
23
+
ADD UNIQUE INDEX idx_service_state_host_id(host_id, service_id, severity, last_state_change, soft_state),
24
+
ADD UNIQUE INDEX idx_service_state_severity(severity, host_id, service_id, last_state_change, soft_state),
25
+
ADD UNIQUE INDEX idx_service_state_soft_state(soft_state, host_id, service_id, severity, last_state_change),
26
+
ADD UNIQUE INDEX idx_service_state_last_state_change(last_state_change, host_id, service_id, severity, soft_state);
18
27
19
28
ALTERTABLE downtime
20
29
ADD COLUMN parent_id binary(20) COMMENT 'For service downtimes, the ID of the host downtime that created this downtime by using the "all_services" flag of the schedule-downtime API.' AFTER triggered_by_id,
21
30
MODIFY COLUMN triggered_by_id binary(20) COMMENT 'The ID of the downtime that triggered this downtime. This is set when creating downtimes on a host or service higher up in the dependency chain using the "child_option" "DowntimeTriggeredChildren" and can also be set manually via the API.';
31
+
ALTERTABLE downtime
32
+
ADD INDEX idx_downtime_entry_time(entry_time) COMMENT 'Downtime list filtered/ordered by entry_time',
33
+
ADD INDEX idx_downtime_start_time(start_time) COMMENT 'Downtime list filtered/ordered by start_time',
34
+
ADD INDEX idx_downtime_end_time(end_time) COMMENT 'Downtime list filtered/ordered by end_time',
35
+
ADD INDEX idx_downtime_scheduled_start_time(scheduled_start_time) COMMENT 'Downtime list filtered/ordered by scheduled_start_time',
36
+
ADD INDEX idx_downtime_scheduled_end_time(scheduled_end_time) COMMENT 'Downtime list filtered/ordered by scheduled_end_time',
37
+
ADD INDEX idx_downtime_author(author) COMMENT 'Downtime list filtered/ordered by author',
38
+
ADD INDEX idx_downtime_duration(duration) COMMENT 'Downtime list filtered/ordered by duration';
22
39
ALTERTABLE downtime_history
23
40
ADD COLUMN parent_id binary(20) COMMENT 'For service downtimes, the ID of the host downtime that created this downtime by using the "all_services" flag of the schedule-downtime API.' AFTER triggered_by_id,
24
41
MODIFY COLUMN triggered_by_id binary(20) COMMENT 'The ID of the downtime that triggered this downtime. This is set when creating downtimes on a host or service higher up in the dependency chain using the "child_option" "DowntimeTriggeredChildren" and can also be set manually via the API.';
0 commit comments