Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
20686402
Commit
20686402
authored
2 months ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
clean
parent
ec21c88f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!806
AWS Lambda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gradle.properties
+1
-1
1 addition, 1 deletion
gradle.properties
gradle/dependencies.gradle
+1
-1
1 addition, 1 deletion
gradle/dependencies.gradle
src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java
+5
-4
5 additions, 4 deletions
...a/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java
with
7 additions
and
6 deletions
gradle.properties
+
1
−
1
View file @
20686402
awsVersion
=
2.29.52
aws
Ssm
Version
=
2.29.52
githooksVersion
=
1.2.0
gitVersionVersion
=
0.15.0
grgitVersion
=
4.1.1
...
...
This diff is collapsed.
Click to expand it.
gradle/dependencies.gradle
+
1
−
1
View file @
20686402
...
...
@@ -12,7 +12,7 @@ dependencies {
implementation
"org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}"
// AWS
implementation
"software.amazon.awssdk:ssm:${awsVersion}"
implementation
"software.amazon.awssdk:ssm:${aws
Ssm
Version}"
// Micronaut
annotationProcessor
(
"io.micronaut:micronaut-http-validation"
)
...
...
This diff is collapsed.
Click to expand it.
src/main/java/gov/usgs/earthquake/nshmp/www/hazard/HazardService.java
+
5
−
4
View file @
20686402
...
...
@@ -64,16 +64,14 @@ public final class HazardService {
public
static
HttpResponse
<
String
>
getMetadata
(
HttpRequest
<?>
request
)
{
var
url
=
request
.
getUri
().
getPath
();
var
model
=
ServletUtil
.
model
();
var
usage
=
new
Metadata
(
ServletUtil
.
model
());
var
body
=
ResponseBody
.
usage
()
.
name
(
NAME
)
.
url
(
url
)
.
metadata
(
new
ResponseMetadata
(
HazVersion
.
appVersions
(
ServletUtil
.
model
().
root
())))
.
request
(
url
)
.
response
(
new
Metadata
(
model
)
)
.
response
(
usage
)
.
build
();
var
json
=
ServletUtil
.
GSON2
.
toJson
(
body
);
return
HttpResponse
.
ok
(
json
);
}
...
...
@@ -138,16 +136,19 @@ public final class HazardService {
Metadata
(
HazardModel
model
)
{
this
.
model
=
new
SourceModel
(
model
);
longitude
=
new
DoubleParameter
(
"Longitude"
,
"°"
,
model
.
bounds
().
min
.
longitude
,
model
.
bounds
().
max
.
longitude
);
latitude
=
new
DoubleParameter
(
"Latitude"
,
"°"
,
model
.
bounds
().
min
.
latitude
,
model
.
bounds
().
max
.
latitude
);
vs30
=
new
DoubleParameter
(
"Vs30"
,
"m/s"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment