@@ -19,6 +19,9 @@ public enum Endpoint {
1919 /// Europe based servers.
2020 /// Sends data to [app.datadoghq.eu](https://app.datadoghq.eu/).
2121 case eu1
22+ /// Japan based servers.
23+ /// Sends data to [app.datadoghq.eu](https://ap1.datadoghq.com/).
24+ case ap1
2225 /// Gov servers.
2326 /// Sends data to [app.ddog-gov.com](https://app.ddog-gov.com/).
2427 // case us1_fed
@@ -35,6 +38,7 @@ public enum Endpoint {
3538 case . us3: return URL ( string: " https://logs.browser-intake-us3-datadoghq.com/ " + endpoint) !
3639 case . us5: return URL ( string: " https://logs.browser-intake-us5-datadoghq.com/ " + endpoint) !
3740 case . eu1: return URL ( string: " https://mobile-http-intake.logs.datadoghq.eu/ " + endpoint) !
41+ case . ap1: return URL ( string: " https://logs.browser-intake-ap1-datadoghq.com/ " + endpoint) !
3842 case . staging: return URL ( string: " https://logs.browser-intake-datad0g.com/ " + endpoint) !
3943 case let . custom( _, logsURL: logsUrl) : return logsUrl
4044 }
@@ -47,6 +51,7 @@ public enum Endpoint {
4751 case . us3: return URL ( string: " https://citestcycle-intake.us3.datadoghq.com/ " + endpoint) !
4852 case . us5: return URL ( string: " https://citestcycle-intake.us5.datadoghq.com/ " + endpoint) !
4953 case . eu1: return URL ( string: " https://citestcycle-intake.datadoghq.eu/ " + endpoint) !
54+ case . ap1: return URL ( string: " https://citestcycle-intake.ap1.datadoghq.com/ " + endpoint) !
5055 case . staging: return URL ( string: " https://citestcycle-intake.datad0g.com/ " + endpoint) !
5156 case let . custom( testsURL: testsURL, _) : return testsURL
5257 }
@@ -59,6 +64,7 @@ public enum Endpoint {
5964 case . us3: return URL ( string: " https://event-platform-intake.us3.datadoghq.com/ " + endpoint) !
6065 case . us5: return URL ( string: " https://event-platform-intake.us5.datadoghq.com/ " + endpoint) !
6166 case . eu1: return URL ( string: " https://event-platform-intake.datadoghq.eu/ " + endpoint) !
67+ case . ap1: return URL ( string: " https://event-platform-intake.ap1.datadoghq.com/ " + endpoint) !
6268 case . staging: return URL ( string: " https://event-platform-intake.datad0g.com/ " + endpoint) !
6369 case let . custom( testsURL: testsURL, _) : return testsURL
6470 }
@@ -71,6 +77,7 @@ public enum Endpoint {
7177 case . us3: return URL ( string: " https://api.us3.datadoghq.com/ " + endpoint) !
7278 case . us5: return URL ( string: " https://api.us5.datadoghq.com/ " + endpoint) !
7379 case . eu1: return URL ( string: " https://api.datadoghq.eu/ " + endpoint) !
80+ case . ap1: return URL ( string: " https://api.ap1.datadoghq.com/ " + endpoint) !
7481 case . staging: return URL ( string: " https://api.datad0g.com/ " + endpoint) !
7582 case let . custom( testsURL: testsURL, _) : return testsURL
7683 }
@@ -83,6 +90,7 @@ public enum Endpoint {
8390 case . us3: return URL ( string: " https://api.us3.datadoghq.com/ " + endpoint) !
8491 case . us5: return URL ( string: " https://api.us5.datadoghq.com/ " + endpoint) !
8592 case . eu1: return URL ( string: " https://api.datadoghq.eu/ " + endpoint) !
93+ case . ap1: return URL ( string: " https://api.ap1.datadoghq.com/ " + endpoint) !
8694 case . staging: return URL ( string: " https://api.datad0g.com/ " + endpoint) !
8795 case let . custom( testsURL: testsURL, _) : return testsURL
8896 }
@@ -95,6 +103,7 @@ public enum Endpoint {
95103 case . us3: return URL ( string: " https://api.us3.datadoghq.com/ " + endpoint) !
96104 case . us5: return URL ( string: " https://api.us5.datadoghq.com/ " + endpoint) !
97105 case . eu1: return URL ( string: " https://api.datadoghq.eu/ " + endpoint) !
106+ case . ap1: return URL ( string: " https://api.ap1.datadoghq.com/ " + endpoint) !
98107 case . staging: return URL ( string: " https://api.datad0g.com/ " + endpoint) !
99108 case let . custom( testsURL: testsURL, _) : return testsURL
100109 }
@@ -107,6 +116,7 @@ public enum Endpoint {
107116 case . us3: return URL ( string: " https://api.us3.datadoghq.com/ " + endpoint) !
108117 case . us5: return URL ( string: " https://api.us5.datadoghq.com/ " + endpoint) !
109118 case . eu1: return URL ( string: " https://api.datadoghq.eu/ " + endpoint) !
119+ case . ap1: return URL ( string: " https://api.ap1.datadoghq.com/ " + endpoint) !
110120 case . staging: return URL ( string: " https://api.datad0g.com/ " + endpoint) !
111121 case let . custom( testsURL: testsURL, _) : return testsURL
112122 }
0 commit comments