@@ -48,7 +48,7 @@ type commentRow = struct {
4848}
4949
5050func convertCommentRows (
51- env string , envId , endpointId icingadbTypes.Binary ,
51+ env string , envId icingadbTypes.Binary ,
5252 _ func (interface {}, string , ... interface {}), _ * sqlx.Tx , idoRows []commentRow ,
5353) (icingaDbInserts , _ [][]contracts.Entity , checkpoint any ) {
5454 var commentHistory , acknowledgementHistory , allHistoryComment , allHistoryAck []contracts.Entity
@@ -71,7 +71,6 @@ func convertCommentRows(
7171 CommentHistoryEntity : history.CommentHistoryEntity {CommentId : id },
7272 HistoryTableMeta : history.HistoryTableMeta {
7373 EnvironmentId : envId ,
74- EndpointId : endpointId ,
7574 ObjectType : typ ,
7675 HostId : hostId ,
7776 ServiceId : serviceId ,
@@ -93,7 +92,6 @@ func convertCommentRows(
9392 HistoryMeta : history.HistoryMeta {
9493 HistoryEntity : history.HistoryEntity {Id : hashAny ([]string {env , "comment_add" , row .Name })},
9594 EnvironmentId : envId ,
96- EndpointId : endpointId ,
9795 ObjectType : typ ,
9896 HostId : hostId ,
9997 ServiceId : serviceId ,
@@ -111,7 +109,6 @@ func convertCommentRows(
111109 HistoryMeta : history.HistoryMeta {
112110 HistoryEntity : history.HistoryEntity {Id : hashAny ([]string {env , "comment_remove" , row .Name })},
113111 EnvironmentId : envId ,
114- EndpointId : endpointId ,
115112 ObjectType : typ ,
116113 HostId : hostId ,
117114 ServiceId : serviceId ,
@@ -143,7 +140,6 @@ func convertCommentRows(
143140 },
144141 HistoryTableMeta : history.HistoryTableMeta {
145142 EnvironmentId : envId ,
146- EndpointId : endpointId ,
147143 ObjectType : typ ,
148144 HostId : hostId ,
149145 ServiceId : serviceId ,
@@ -175,7 +171,6 @@ func convertCommentRows(
175171 Id : hashAny ([]any {env , "ack_set" , name , setTs }),
176172 },
177173 EnvironmentId : envId ,
178- EndpointId : endpointId ,
179174 ObjectType : typ ,
180175 HostId : hostId ,
181176 ServiceId : serviceId ,
@@ -196,7 +191,6 @@ func convertCommentRows(
196191 Id : hashAny ([]any {env , "ack_clear" , name , setTs }),
197192 },
198193 EnvironmentId : envId ,
199- EndpointId : endpointId ,
200194 ObjectType : typ ,
201195 HostId : hostId ,
202196 ServiceId : serviceId ,
@@ -240,7 +234,7 @@ type downtimeRow = struct {
240234}
241235
242236func convertDowntimeRows (
243- env string , envId , endpointId icingadbTypes.Binary ,
237+ env string , envId icingadbTypes.Binary ,
244238 _ func (interface {}, string , ... interface {}), _ * sqlx.Tx , idoRows []downtimeRow ,
245239) (icingaDbInserts , _ [][]contracts.Entity , checkpoint any ) {
246240 var downtimeHistory , allHistory , sla []contracts.Entity
@@ -287,7 +281,6 @@ func convertDowntimeRows(
287281 DowntimeHistoryEntity : history.DowntimeHistoryEntity {DowntimeId : id },
288282 HistoryTableMeta : history.HistoryTableMeta {
289283 EnvironmentId : envId ,
290- EndpointId : endpointId ,
291284 ObjectType : typ ,
292285 HostId : hostId ,
293286 ServiceId : serviceId ,
@@ -313,7 +306,6 @@ func convertDowntimeRows(
313306 HistoryMeta : history.HistoryMeta {
314307 HistoryEntity : history.HistoryEntity {Id : hashAny ([]string {env , "downtime_start" , row .Name })},
315308 EnvironmentId : envId ,
316- EndpointId : endpointId ,
317309 ObjectType : typ ,
318310 HostId : hostId ,
319311 ServiceId : serviceId ,
@@ -331,7 +323,6 @@ func convertDowntimeRows(
331323 HistoryMeta : history.HistoryMeta {
332324 HistoryEntity : history.HistoryEntity {Id : hashAny ([]string {env , "downtime_end" , row .Name })},
333325 EnvironmentId : envId ,
334- EndpointId : endpointId ,
335326 ObjectType : typ ,
336327 HostId : hostId ,
337328 ServiceId : serviceId ,
@@ -352,7 +343,6 @@ func convertDowntimeRows(
352343 DowntimeHistoryEntity : history.DowntimeHistoryEntity {DowntimeId : id },
353344 HistoryTableMeta : history.HistoryTableMeta {
354345 EnvironmentId : envId ,
355- EndpointId : endpointId ,
356346 ObjectType : typ ,
357347 HostId : hostId ,
358348 ServiceId : serviceId ,
@@ -385,7 +375,7 @@ type flappingRow = struct {
385375}
386376
387377func convertFlappingRows (
388- env string , envId , endpointId icingadbTypes.Binary ,
378+ env string , envId icingadbTypes.Binary ,
389379 selectCache func (dest interface {}, query string , args ... interface {}), _ * sqlx.Tx , idoRows []flappingRow ,
390380) (icingaDbInserts , icingaDbUpserts [][]contracts.Entity , checkpoint any ) {
391381 if len (idoRows ) < 1 {
@@ -446,7 +436,6 @@ func convertFlappingRows(
446436 },
447437 HistoryTableMeta : history.HistoryTableMeta {
448438 EnvironmentId : envId ,
449- EndpointId : endpointId ,
450439 ObjectType : typ ,
451440 HostId : hostId ,
452441 ServiceId : serviceId ,
@@ -466,7 +455,6 @@ func convertFlappingRows(
466455 Id : hashAny ([]interface {}{env , "flapping_end" , name , startTime }),
467456 },
468457 EnvironmentId : envId ,
469- EndpointId : endpointId ,
470458 ObjectType : typ ,
471459 HostId : hostId ,
472460 ServiceId : serviceId ,
@@ -486,7 +474,6 @@ func convertFlappingRows(
486474 },
487475 HistoryTableMeta : history.HistoryTableMeta {
488476 EnvironmentId : envId ,
489- EndpointId : endpointId ,
490477 ObjectType : typ ,
491478 HostId : hostId ,
492479 ServiceId : serviceId ,
@@ -505,7 +492,6 @@ func convertFlappingRows(
505492 Id : hashAny ([]interface {}{env , "flapping_start" , name , startTime }),
506493 },
507494 EnvironmentId : envId ,
508- EndpointId : endpointId ,
509495 ObjectType : typ ,
510496 HostId : hostId ,
511497 ServiceId : serviceId ,
@@ -540,7 +526,7 @@ type notificationRow = struct {
540526}
541527
542528func convertNotificationRows (
543- env string , envId , endpointId icingadbTypes.Binary ,
529+ env string , envId icingadbTypes.Binary ,
544530 selectCache func (dest interface {}, query string , args ... interface {}), ido * sqlx.Tx , idoRows []notificationRow ,
545531) (icingaDbInserts , _ [][]contracts.Entity , checkpoint any ) {
546532 if len (idoRows ) < 1 {
@@ -632,7 +618,6 @@ func convertNotificationRows(
632618 },
633619 HistoryTableMeta : history.HistoryTableMeta {
634620 EnvironmentId : envId ,
635- EndpointId : endpointId ,
636621 ObjectType : typ ,
637622 HostId : hostId ,
638623 ServiceId : serviceId ,
@@ -655,7 +640,6 @@ func convertNotificationRows(
655640 HistoryMeta : history.HistoryMeta {
656641 HistoryEntity : history.HistoryEntity {Id : id },
657642 EnvironmentId : envId ,
658- EndpointId : endpointId ,
659643 ObjectType : typ ,
660644 HostId : hostId ,
661645 ServiceId : serviceId ,
@@ -735,7 +719,7 @@ type stateRow = struct {
735719}
736720
737721func convertStateRows (
738- env string , envId , endpointId icingadbTypes.Binary ,
722+ env string , envId icingadbTypes.Binary ,
739723 selectCache func (dest interface {}, query string , args ... interface {}), _ * sqlx.Tx , idoRows []stateRow ,
740724) (icingaDbInserts , _ [][]contracts.Entity , checkpoint any ) {
741725 if len (idoRows ) < 1 {
@@ -782,7 +766,6 @@ func convertStateRows(
782766 },
783767 HistoryTableMeta : history.HistoryTableMeta {
784768 EnvironmentId : envId ,
785- EndpointId : endpointId ,
786769 ObjectType : typ ,
787770 HostId : hostId ,
788771 ServiceId : serviceId ,
@@ -804,7 +787,6 @@ func convertStateRows(
804787 HistoryMeta : history.HistoryMeta {
805788 HistoryEntity : history.HistoryEntity {Id : id },
806789 EnvironmentId : envId ,
807- EndpointId : endpointId ,
808790 ObjectType : typ ,
809791 HostId : hostId ,
810792 ServiceId : serviceId ,
@@ -825,7 +807,6 @@ func convertStateRows(
825807 },
826808 HistoryTableMeta : history.HistoryTableMeta {
827809 EnvironmentId : envId ,
828- EndpointId : endpointId ,
829810 ObjectType : typ ,
830811 HostId : hostId ,
831812 ServiceId : serviceId ,
0 commit comments