diff --git a/intel/ip.go b/intel/ip.go index 06f485310c3..ad18b856d69 100644 --- a/intel/ip.go +++ b/intel/ip.go @@ -110,13 +110,13 @@ type IPBelongsToRefType string const ( IPBelongsToRefTypeHostingProvider IPBelongsToRefType = "hosting_provider" - IPBelongsToRefTypeIsp IPBelongsToRefType = "isp" + IPBelongsToRefTypeISP IPBelongsToRefType = "isp" IPBelongsToRefTypeOrganization IPBelongsToRefType = "organization" ) func (r IPBelongsToRefType) IsKnown() bool { switch r { - case IPBelongsToRefTypeHostingProvider, IPBelongsToRefTypeIsp, IPBelongsToRefTypeOrganization: + case IPBelongsToRefTypeHostingProvider, IPBelongsToRefTypeISP, IPBelongsToRefTypeOrganization: return true } return false diff --git a/zero_trust/dex.go b/zero_trust/dex.go index f5d3b908970..44bc5fb21a2 100644 --- a/zero_trust/dex.go +++ b/zero_trust/dex.go @@ -98,7 +98,7 @@ type NetworkPathSlot struct { ClientToCfIngressRTTMs int64 `json:"clientToCfIngressRttMs,required,nullable"` Timestamp string `json:"timestamp,required"` // Round trip time in ms of the client to ISP mile - ClientToIspRTTMs int64 `json:"clientToIspRttMs,nullable"` + ClientToISPRTTMs int64 `json:"clientToIspRttMs,nullable"` JSON networkPathSlotJSON `json:"-"` } @@ -109,7 +109,7 @@ type networkPathSlotJSON struct { ClientToCfEgressRTTMs apijson.Field ClientToCfIngressRTTMs apijson.Field Timestamp apijson.Field - ClientToIspRTTMs apijson.Field + ClientToISPRTTMs apijson.Field raw string ExtraFields map[string]apijson.Field } diff --git a/zero_trust/dextraceroutetestresultnetworkpath.go b/zero_trust/dextraceroutetestresultnetworkpath.go index d236c91b2ea..e84d879172b 100644 --- a/zero_trust/dextraceroutetestresultnetworkpath.go +++ b/zero_trust/dextraceroutetestresultnetworkpath.go @@ -153,12 +153,12 @@ const ( DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-app" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-egress" DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-cf-ingress" - DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp" + DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToISP DEXTracerouteTestResultNetworkPathGetResponseHopsMile = "client-to-isp" ) func (r DEXTracerouteTestResultNetworkPathGetResponseHopsMile) IsKnown() bool { switch r { - case DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToIsp: + case DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToApp, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfEgress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToCfIngress, DEXTracerouteTestResultNetworkPathGetResponseHopsMileClientToISP: return true } return false