From 234a54d6f64f0bd1456fc854c8298523802c9372 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Tue, 20 Dec 2022 11:50:47 -0700 Subject: [PATCH 1/9] added links to tect seting and src type --- docs/pages/Calculation-Configuration.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/pages/Calculation-Configuration.md b/docs/pages/Calculation-Configuration.md index 7f8bf3d8a..56ad1e786 100644 --- a/docs/pages/Calculation-Configuration.md +++ b/docs/pages/Calculation-Configuration.md @@ -17,8 +17,8 @@ __`hazard`__ `.exceedanceModel` |`String` | `TRUNCATION_3SIGMA_UPPER` | [`ExceedanceModel`][url-exceedance] `.truncationLevel` |`Double` | `3.0` | [1](#notes) `.imts` |`String[]` | `[ PGV, PGA, SA0P01, SA0P02, SA0P03, SA0P05, SA0P075, SA0P1, SA0P15, SA0P2, SA0P25, SA0P3, SA0P4, SA0P5, SA0P75, SA1P0, SA1P5, SA2P0, SA3P0, SA4P0, SA5P0, SA7P5, SA10P0 ]` | [`Imt`][url-imt] - `.tectonicSettings` |`String[]` | `[]` | Tectonic setting filter - `.sourceTypes` |`String[]` | `[]` | Source type filter + `.tectonicSettings` |`String[]` | `[]` | [`TectonicSetting`][url-tectonicsetting] filter + `.sourceTypes` |`String[]` | `[]` | [`SourceType`][url-sourcetype] filter `.vs30s` |`Double[]` | `[]` | Vs30s to use for batch jobs `.customImls` |`Map<String, Double[]>` | `{}` (empty object) | [2](#notes) `.gmmDampingRatio` |`Double` | `0.05` (5%) | [3](#notes) @@ -46,6 +46,8 @@ __`performance`__ [url-exceedance]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/calc/ExceedanceModel.html [url-imt]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/gmm/Imt.html +[url-tectonicsetting]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/model/TectonicSetting.html +[url-sourcetype]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/model/SourceType.html [url-valueformat]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/calc/ValueFormat.html [url-distribution]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/calc/DistributionFormat.html [url-datatype]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/calc/DataType.html -- GitLab From 48d3cfeae31f36837f4afa87d083a8f7d32ce98a Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Tue, 20 Dec 2022 13:49:54 -0700 Subject: [PATCH 2/9] config docs edits --- docs/pages/Calculation-Configuration.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/pages/Calculation-Configuration.md b/docs/pages/Calculation-Configuration.md index 56ad1e786..74a5c5f4b 100644 --- a/docs/pages/Calculation-Configuration.md +++ b/docs/pages/Calculation-Configuration.md @@ -14,16 +14,19 @@ may be overridden. See [building and running](./Building-&-Running.md) and the Parameter | Type | Default | Notes | --------- | ---- | ------- | ----- | __`hazard`__ - `.exceedanceModel` |`String` | `TRUNCATION_3SIGMA_UPPER` | [`ExceedanceModel`][url-exceedance] + `.exceedanceModel` |`String` | `"TRUNCATION_3SIGMA_UPPER"`| [`ExceedanceModel`][url-exceedance] `.truncationLevel` |`Double` | `3.0` | [1](#notes) - `.imts` |`String[]` | `[ PGV, PGA, SA0P01, SA0P02, SA0P03, SA0P05, SA0P075, SA0P1, SA0P15, SA0P2, SA0P25, SA0P3, SA0P4, SA0P5, SA0P75, SA1P0, SA1P5, SA2P0, SA3P0, SA4P0, SA5P0, SA7P5, SA10P0 ]` | [`Imt`][url-imt] + `.imts` |`String[]` | `["PGV","PGA","SA0P01","SA0P02",`<br>`"SA0P03","SA0P05","SA0P075",`<br>`"SA0P1","SA0P15","SA0P2","SA0P25",`<br>`"SA0P3","SA0P4","SA0P5","SA0P75",`<br>`"SA1P0","SA1P5","SA2P0","SA3P0",`<br>`"SA4P0","SA5P0","SA7P5","SA10P0"]` | [`Imt`][url-imt] `.tectonicSettings` |`String[]` | `[]` | [`TectonicSetting`][url-tectonicsetting] filter `.sourceTypes` |`String[]` | `[]` | [`SourceType`][url-sourcetype] filter `.vs30s` |`Double[]` | `[]` | Vs30s to use for batch jobs + `.useSiteData` |`Boolean` | `true` | Enable site data (e.g. basin depths) `.customImls` |`Map<String, Double[]>` | `{}` (empty object) | [2](#notes) - `.gmmDampingRatio` |`Double` | `0.05` (5%) | [3](#notes) - `.gmmSigmaScale` |`Double` | `1.0` (100%, no scaling) | - `.valueFormat` |`String` | `ANNUAL_RATE` | [`ValueFormat`][url-valueformat] + `.valueFormat` |`String` | `"ANNUAL_RATE"` | [`ValueFormat`][url-valueformat] +__`gmm`__ + `.dampingRatio` |`Double` | `0.05` (5%) | Limited to range [0.005..0.3] 0.5% to 30% + `.sigmaScale` |`Double` | `1.0` (100%, no scaling) | Limited to range [0.5..1.0] 50% to 100% + `.vertical` |`Boolean` | `false` | Compute vertical ground motions __`disagg`__ `.retrunPeriod` |`Double` | `2475` | `.bins` |`Object` | | [4](#notes) @@ -31,18 +34,18 @@ __`disagg`__ __`rate`__ `.bins` |`Object` | | [6](#notes) `.distance` |`Double` | `20` km - `.distributionFormat` |`String` | `INCREMENTAL` | [`DistributionFormat`][url-distribution] + `.distributionFormat` |`String` | `"INCREMENTAL"` | [`DistributionFormat`][url-distribution] `.timespan` |`Double` | `30` years - `.valueFormat` |`String` | `ANNUAL_RATE` | [`ValueFormat`][url-valueformat] + `.valueFormat` |`String` | `"ANNUAL_RATE"` | [`ValueFormat`][url-valueformat] __`output`__ | `.directory` |`String` | `hazout` - `.dataTypes` |`String[]` | `[ TOTAL, MAP ]` | [`DataType`][url-datatype] - `.returnPeriods` |`Double[]` | `[ 475, 975, 2475, 10000]` | [`ReturnPeriods`][url-returnperiods] + `.dataTypes` |`String[]` | `["TOTAL","MAP"]` | [`DataType`][url-datatype] + `.returnPeriods` |`Double[]` | `[475,975,2475,10000]` | [`ReturnPeriods`][url-returnperiods] __`performance`__ `.optimizeGrids` |`Boolean` | `true` | [7](#notes) `.smoothGrids` |`Boolean` | `true` | [8](#notes) `.systemPartition` |`Integer` | `1000` | [9](#notes) - `.threadCount` |`String` | `ALL` | [`ThreadCount`][url-sheets] + `.threadCount` |`String` | `"ALL"` | [`ThreadCount`][url-sheets] [url-exceedance]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/calc/ExceedanceModel.html [url-imt]: https://earthquake.usgs.gov/nshmp/docs/nshmp-lib/gov/usgs/earthquake/nshmp/gmm/Imt.html -- GitLab From 8a9d7b15b2a3f9b656ba2eaab0c3c9bed3dd2dd8 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Tue, 20 Dec 2022 13:51:21 -0700 Subject: [PATCH 3/9] config docs edits --- docs/pages/Calculation-Configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/Calculation-Configuration.md b/docs/pages/Calculation-Configuration.md index 74a5c5f4b..097e8d592 100644 --- a/docs/pages/Calculation-Configuration.md +++ b/docs/pages/Calculation-Configuration.md @@ -28,7 +28,7 @@ __`gmm`__ `.sigmaScale` |`Double` | `1.0` (100%, no scaling) | Limited to range [0.5..1.0] 50% to 100% `.vertical` |`Boolean` | `false` | Compute vertical ground motions __`disagg`__ - `.retrunPeriod` |`Double` | `2475` | + `.returnPeriod` |`Double` | `2475` | `.bins` |`Object` | | [4](#notes) `.contributorLimit` |`Double` | `0.1` | [5](#notes) __`rate`__ -- GitLab From 593b2a6c4a878d93ffff5ef36a9ff5937db4826c Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Tue, 20 Dec 2022 14:43:28 -0700 Subject: [PATCH 4/9] updated dev nshm names --- nshms.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nshms.yml b/nshms.yml index 2a4f21e76..a3a2c9975 100644 --- a/nshms.yml +++ b/nshms.yml @@ -5,7 +5,7 @@ nshms: # Alaska 2023 NSHM - repo: nshm-alaska - tag: 3.a.0 + tag: 3.a.1 year: 2023 deployments: development: @@ -32,7 +32,7 @@ nshms: # CONUS 2023 NSHM - repo: nshm-conus - tag: 6.a.3 + tag: 6.a.4 year: 2023 deployments: development: -- GitLab From a0ad513b7a268de7a2364d540b0f326bf40c40cf Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Sun, 1 Jan 2023 14:51:36 -0700 Subject: [PATCH 5/9] metadata edit --- .../earthquake/nshmp/www/source/LogicTreesController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java index 1c6b2396f..6cf949fd9 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java @@ -5,7 +5,6 @@ import gov.usgs.earthquake.nshmp.www.ResponseBody; import gov.usgs.earthquake.nshmp.www.ServletUtil; import gov.usgs.earthquake.nshmp.www.source.LogicTreesService.Metadata; import gov.usgs.earthquake.nshmp.www.source.LogicTreesService.RequestData; - import io.micronaut.http.HttpRequest; import io.micronaut.http.HttpResponse; import io.micronaut.http.annotation.Controller; @@ -70,7 +69,7 @@ public class LogicTreesController { description = "Returns the logic tree of features for the supplied ID", operationId = "source-tree-features") @ApiResponse( - description = "NSHM source logic tree", + description = "NSHM source logic tree of features", responseCode = "200", content = @Content( schema = @Schema(implementation = TreeResponse.class))) @@ -94,7 +93,7 @@ public class LogicTreesController { description = "Returns the logic tree of MFDs for the supplied ID", operationId = "source-tree-mfds") @ApiResponse( - description = "NSHM source logic tree", + description = "NSHM source logic tree of MFDs", responseCode = "200", content = @Content( schema = @Schema(implementation = TreeResponse.class))) -- GitLab From 728d490397113cb3278c4335c5bb48f4da8019a5 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Sun, 1 Jan 2023 14:52:16 -0700 Subject: [PATCH 6/9] added proj dir to yaml path --- gradle/nshm.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/nshm.gradle b/gradle/nshm.gradle index 5eecb87f6..0e1a39a17 100644 --- a/gradle/nshm.gradle +++ b/gradle/nshm.gradle @@ -43,7 +43,7 @@ clean.dependsOn cleanNshm task nshms() { dependsOn cleanNshm def yaml = new Yaml() - def nshmConfig = new Yaml().load(new File("nshms.yml").newInputStream()) + def nshmConfig = new Yaml().load(new File("${projectDir}/nshms.yml").newInputStream()) doLast { for (nshm in nshmConfig.nshms) { -- GitLab From 116708da562b36e28a4cbf7faf03de4098a42fea Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Sun, 1 Jan 2023 14:52:32 -0700 Subject: [PATCH 7/9] increment lib --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index c97c988f5..04ae04e2d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ micronautVersion = 3.2.3 micronautRxVersion = 2.1.1 nodePluginVersion = 3.0.1 nodeVersion = 16.3.0 -nshmpLibVersion = 1.2.8 +nshmpLibVersion = 1.2.10 nshmpWsUtilsVersion = 0.3.11 openApiVersion = 4.0.0 shadowVersion = 7.1.2 -- GitLab From 6ac9b85d675d5717f144d031ac68c87e24df90a3 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Sun, 1 Jan 2023 14:59:03 -0700 Subject: [PATCH 8/9] new service for mfd by setting and type --- .../nshmp/www/source/MfdsController.java | 130 ++++++++++++++++++ .../nshmp/www/source/MfdsService.java | 106 ++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java create mode 100644 src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java new file mode 100644 index 000000000..808cbeb31 --- /dev/null +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java @@ -0,0 +1,130 @@ +package gov.usgs.earthquake.nshmp.www.source; + +import java.util.Optional; + +import gov.usgs.earthquake.nshmp.model.SourceType; +import gov.usgs.earthquake.nshmp.model.TectonicSetting; +import gov.usgs.earthquake.nshmp.www.NshmpMicronautServlet; +import gov.usgs.earthquake.nshmp.www.ResponseBody; +import gov.usgs.earthquake.nshmp.www.ServletUtil; +import gov.usgs.earthquake.nshmp.www.source.MfdsService.Metadata; +import gov.usgs.earthquake.nshmp.www.source.MfdsService.RequestData; +import io.micronaut.http.HttpRequest; +import io.micronaut.http.HttpResponse; +import io.micronaut.http.annotation.Controller; +import io.micronaut.http.annotation.Get; +import io.micronaut.http.annotation.PathVariable; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.inject.Inject; + +/** + * Micronaut web service controller for summed MFDs in the installed model. + * These endpoints return the magnitude frequency distributions (MFDs) + * associated with the different tectonic settings and source types present in + * the model. MFDs for requested tetonic settings and source types are scaled by + * their branch weights and then summed. + * + * <p>See src/main/resources/application.yml nshmp-haz.model-path for installed + * model. + * + * <p>To run the Micronaut jar file with a model: java -jar + * path/to/nshmp-haz.jar --model=<path/to/model> + * + * @author U.S. Geological Survey + */ +@Tag( + name = MfdsService.NAME, + description = "USGS NSHM source model MFD service") +@Controller("/mfds") +public class MfdsController { + + @Inject + private NshmpMicronautServlet servlet; + + @Operation( + summary = "Source model tectonic settings and source types", + description = "Returns the tectonic settings and source types in the model", + operationId = "source-mfd-metadata") + @ApiResponse( + description = "Source MFD metadata", + responseCode = "200", + content = @Content( + schema = @Schema( + implementation = MetadataResponse.class))) + @Get + public HttpResponse<String> doGetMetadata(HttpRequest<?> http) { + try { + return LogicTreesService.getMetadata(http); + } catch (Exception e) { + return ServletUtil.error( + LogicTreesService.LOG, e, + LogicTreesService.NAME, + http.getUri().toString()); + } + } + + /** + * @param setting model tectonic setting + */ + @Operation( + summary = "Get a source model MFD for a tectonic setting", + description = "Returns the total MFD for the supplied tectonic setting", + operationId = "source-setting-mfd") + @ApiResponse( + description = "NSHM source MFD", + responseCode = "200", + content = @Content( + schema = @Schema(implementation = Response.class))) + @Get(uri = "/{setting}") + public HttpResponse<String> doGetMfdSettingGroup( + HttpRequest<?> http, + @PathVariable TectonicSetting setting) { + try { + return MfdsService.getMfdGroup(http, setting, Optional.empty()); + } catch (Exception e) { + return ServletUtil.error( + LogicTreesService.LOG, e, + LogicTreesService.NAME, + http.getUri().toString()); + } + } + + /** + * @param setting model tectonic setting + * @param type model source type} + */ + @Operation( + summary = "Get a source model MFD for a tectonic setting and source type", + description = "Returns the total MFD for the supplied tectonic setting and source type", + operationId = "source-setting-type-mfd") + @ApiResponse( + description = "NSHM source MFD", + responseCode = "200", + content = @Content( + schema = @Schema(implementation = Response.class))) + @Get(uri = "/{setting}/{type}") + public HttpResponse<String> doGetMfdTypeGroup( + HttpRequest<?> http, + @PathVariable TectonicSetting setting, + @PathVariable SourceType type) { + try { + return MfdsService.getMfdGroup(http, setting, Optional.of(type)); + } catch (Exception e) { + return ServletUtil.error( + LogicTreesService.LOG, e, + LogicTreesService.NAME, + http.getUri().toString()); + } + } + + // Swagger schema + private static class MetadataResponse extends ResponseBody<String, Metadata> {} + + // Swagger schema + private static class Response extends ResponseBody<RequestData, Object> {} + +} diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java new file mode 100644 index 000000000..1842551b5 --- /dev/null +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java @@ -0,0 +1,106 @@ +package gov.usgs.earthquake.nshmp.www.source; + +import java.util.Optional; +import java.util.Set; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import gov.usgs.earthquake.nshmp.model.HazardModel; +import gov.usgs.earthquake.nshmp.model.Models; +import gov.usgs.earthquake.nshmp.model.SourceType; +import gov.usgs.earthquake.nshmp.model.TectonicSetting; +import gov.usgs.earthquake.nshmp.www.HazVersion; +import gov.usgs.earthquake.nshmp.www.ResponseBody; +import gov.usgs.earthquake.nshmp.www.ResponseMetadata; +import gov.usgs.earthquake.nshmp.www.ServletUtil; +import gov.usgs.earthquake.nshmp.www.source.SourceService.SourceModel; +import io.micronaut.http.HttpRequest; +import io.micronaut.http.HttpResponse; +import jakarta.inject.Singleton; + +/** + * Source model MFD handler {@link MfdsController} + * + * @author U.S. Geological Survey + */ +@Singleton +public class MfdsService { + + static final String NAME = "Model MFDs"; + static final Logger LOG = LoggerFactory.getLogger(LogicTreesService.class); + + public static HttpResponse<String> getMetadata(HttpRequest<?> request) { + var url = request.getUri().toString(); + var metadata = new Metadata(ServletUtil.model()); + var response = ResponseBody.usage() + .name(NAME) + .url(url) + .metadata(new ResponseMetadata(HazVersion.appVersions())) + .request(url) + .response(metadata) + .build(); + return HttpResponse.ok(ServletUtil.GSON2.toJson(response)); + } + + public static HttpResponse<String> getMfdGroup( + HttpRequest<?> request, + TectonicSetting setting, + Optional<SourceType> type) { + + var url = request.getUri().toString(); + var mfd = Models.mfd(ServletUtil.model(), setting, type); + var requestData = new RequestData(setting, type.orElse(null)); + var response = ResponseBody.success() + .name(NAME) + .url(url) + .metadata(new ResponseMetadata(HazVersion.appVersions())) + .request(requestData) + .response(mfd) + .build(); + return HttpResponse.ok(ServletUtil.GSON2.toJson(response)); + } + + static class Metadata { + final SourceModel model; + final Set<TectonicSetting> settings; + final Set<SourceType> types; + + Metadata(HazardModel model) { + this.model = new SourceModel(model); + this.settings = model.settings(); + this.types = model.types(); + } + + public SourceModel getModel() { + return model; + } + + public Set<TectonicSetting> getSettings() { + return settings; + } + + public Set<SourceType> getTypes() { + return types; + } + } + + static class RequestData { + final TectonicSetting setting; + final SourceType type; + + RequestData(TectonicSetting setting, SourceType type) { + this.setting = setting; + this.type = type; + } + + public TectonicSetting getSetting() { + return setting; + } + + public SourceType getType() { + return type; + } + } + +} -- GitLab From 4449eb3995b3514ff9748c7f18f9713733fcdc96 Mon Sep 17 00:00:00 2001 From: Peter Powers <pmpowers@usgs.gov> Date: Sun, 1 Jan 2023 15:02:51 -0700 Subject: [PATCH 9/9] formatting --- .../usgs/earthquake/nshmp/www/source/LogicTreesController.java | 1 + .../gov/usgs/earthquake/nshmp/www/source/MfdsController.java | 1 + .../java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java index 6cf949fd9..2f941ff14 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/source/LogicTreesController.java @@ -5,6 +5,7 @@ import gov.usgs.earthquake.nshmp.www.ResponseBody; import gov.usgs.earthquake.nshmp.www.ServletUtil; import gov.usgs.earthquake.nshmp.www.source.LogicTreesService.Metadata; import gov.usgs.earthquake.nshmp.www.source.LogicTreesService.RequestData; + import io.micronaut.http.HttpRequest; import io.micronaut.http.HttpResponse; import io.micronaut.http.annotation.Controller; diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java index 808cbeb31..3d87c87bb 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsController.java @@ -9,6 +9,7 @@ import gov.usgs.earthquake.nshmp.www.ResponseBody; import gov.usgs.earthquake.nshmp.www.ServletUtil; import gov.usgs.earthquake.nshmp.www.source.MfdsService.Metadata; import gov.usgs.earthquake.nshmp.www.source.MfdsService.RequestData; + import io.micronaut.http.HttpRequest; import io.micronaut.http.HttpResponse; import io.micronaut.http.annotation.Controller; diff --git a/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java index 1842551b5..4062fd449 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/www/source/MfdsService.java @@ -15,6 +15,7 @@ import gov.usgs.earthquake.nshmp.www.ResponseBody; import gov.usgs.earthquake.nshmp.www.ResponseMetadata; import gov.usgs.earthquake.nshmp.www.ServletUtil; import gov.usgs.earthquake.nshmp.www.source.SourceService.SourceModel; + import io.micronaut.http.HttpRequest; import io.micronaut.http.HttpResponse; import jakarta.inject.Singleton; -- GitLab