Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Series Profile Controllers #856

Open
wants to merge 72 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
90665dd
ts profile json
AndreasChristmann Jun 14, 2024
9d137d8
ts profile json
AndreasChristmann Jun 18, 2024
b9131e7
ts profile json
AndreasChristmann Jun 18, 2024
6458099
ts profile json
AndreasChristmann Jun 18, 2024
7141f7e
sample time series profile data
AndreasChristmann Jun 19, 2024
5aeaa72
time series profile dto's
AndreasChristmann Jun 19, 2024
085e855
time series profile dao's
AndreasChristmann Jun 19, 2024
21b9c8b
time series profile dto's unit test
AndreasChristmann Jun 19, 2024
a15f561
time series profile dao integration test
AndreasChristmann Jun 19, 2024
d0dec1f
time series profile unit test
AndreasChristmann Jun 20, 2024
825c55e
added db cleanup
AndreasChristmann Jun 21, 2024
20095a3
moved equals to test classes and removed hashcode
AndreasChristmann Jun 25, 2024
5b7fd48
reformatted code
AndreasChristmann Jun 26, 2024
1922694
use CWMS-Id for location id
AndreasChristmann Jun 27, 2024
180bef7
use CWMSId, TimeSeriesProfile Instance DTO, json and unittest
AndreasChristmann Jun 27, 2024
c371fd7
unit test for timeseries profile instance, cleanup code
AndreasChristmann Jul 19, 2024
116ff55
Timeseries profile instance dao and test, columnar data, timeseries p…
AndreasChristmann Jul 24, 2024
9536980
use Temp-Water instead of Temperature
AndreasChristmann Jul 24, 2024
f3bea82
change profile time series json to match time series
AndreasChristmann Jul 24, 2024
43c0715
use real life names
AndreasChristmann Jul 24, 2024
980d3cc
Time series profile parser dao
AndreasChristmann Jul 29, 2024
98f1d7b
changed record to recordParam
AndreasChristmann Jul 29, 2024
2a18d87
subclassed TimeSeriesProfileParser into Indexed and Columnar
AndreasChristmann Jul 30, 2024
1f5d732
renamed the retrieve method for multiple DTOs to catalog...
AndreasChristmann Jul 31, 2024
3ebf9ff
DTO changes from Peter's review
AndreasChristmann Aug 5, 2024
6ad5db7
access View, bypass PL/SQL, prepare for pagination
AndreasChristmann Aug 9, 2024
a1defcb
TSP Controllers in progress
zack-rma Aug 21, 2024
4d495da
TSP Controllers in progress - Instance storage bug remaining
zack-rma Aug 22, 2024
b9d338c
Integration tests passing
zack-rma Aug 23, 2024
d54e9d3
Fixed annotations for Swagger code gen and JSON deserialization
zack-rma Aug 23, 2024
e9eef3f
Cleaned up accepted content types for TSP Parser create
zack-rma Aug 27, 2024
ec59ed9
Cleaned up formatting
zack-rma Aug 27, 2024
2058ed2
Annotation and Parser subtype modifications
zack-rma Aug 29, 2024
0b9ab3b
Updated controllers to support JSONV1, fixed serialization failures
zack-rma Sep 5, 2024
5f209ba
Fixed JSON serialization, other bug fixes in progress
zack-rma Sep 7, 2024
74aa6e3
TSP Instance Pagination in progress
zack-rma Sep 14, 2024
0a1c410
TSP Instance Pagination in progress - paging bug
zack-rma Sep 17, 2024
2f6a920
TSP Instance Pagination finished, controller updates underway
zack-rma Sep 18, 2024
392e496
TSP Instance Pagination working, controller updated, tests updated
zack-rma Sep 18, 2024
216a181
Time Series Profile Pagination working, controller and tests updated
zack-rma Sep 18, 2024
fbb9e05
Updated formatting, return type from controller
zack-rma Sep 19, 2024
9e7955d
Added controller variable
zack-rma Sep 19, 2024
4499436
Removed unnecessary classes, fixed CDA Swagger loading bug
zack-rma Sep 19, 2024
615d487
Added parser type serialization fix back in
zack-rma Sep 20, 2024
bf12a16
Fixed unit handling, time comparison
zack-rma Sep 20, 2024
631ab4b
Updated tests
zack-rma Sep 20, 2024
527fa0d
Fixed serialization issue with custom serializer. Added more tests. I…
zack-rma Sep 24, 2024
ac900eb
Cleaned up retrieval mapping, added tests to check parameter order. F…
zack-rma Sep 25, 2024
3a15ae9
Updated controllers, DAOs based on Adam's feedback
zack-rma Oct 8, 2024
fd14485
Updated endpoint naming, tests in response to Adam and Mike's feedback
zack-rma Oct 9, 2024
21a4417
TS - Updated total query for profile, rewrote paging implementation f…
zack-rma Oct 15, 2024
0e5a956
TS Profiles - Updated type handling, no longer requires type explicit…
zack-rma Oct 16, 2024
3a94f71
TS - performance updates, re-write of total query, rewrite of page br…
zack-rma Oct 17, 2024
41c2576
Updated profile mapping to include reference TS ID, added tests
zack-rma Oct 18, 2024
a54bd0e
Replaced ternary
zack-rma Oct 18, 2024
6e5822d
Made fixes to DB queries, exception handling based on Adam's feedback
zack-rma Oct 21, 2024
588cbcc
cleanup serialization
adamkorynta Oct 22, 2024
458a5ae
Merge pull request #1 from adamkorynta/feature/TimeSeriesProfileContr…
zack-rma Oct 22, 2024
2bd9381
TimeSeries Parser serialization update, response to feedback
zack-rma Oct 23, 2024
8aaeb9c
Merge cleanup of ApiServlet imports
zack-rma Oct 23, 2024
1510ba2
Fixed assertions and exception handling for bad parser type
zack-rma Oct 24, 2024
284a6b2
Updated Swagger documentation for TimeSeries profile endpoints
zack-rma Oct 25, 2024
47807ec
Updated tests with parser existence verification, diagnosing TC build…
zack-rma Oct 28, 2024
51eb45a
Merge remote-tracking branch 'hec/develop' into feature/TimeSeriesPro…
zack-rma Oct 30, 2024
d494dab
Updated test to fix build error
zack-rma Oct 30, 2024
43ad339
Updated version date input handling
zack-rma Nov 4, 2024
4aab9b4
Added version date input handling tests
zack-rma Nov 4, 2024
9e71d6c
Updated instance integration test to resolve TC build error
zack-rma Nov 8, 2024
0b05e7a
Updated test case to verify instance is in DB before deletion
zack-rma Nov 11, 2024
770d0ef
TimeSeries test case fix attempt - fixing build error with instance s…
zack-rma Nov 12, 2024
05a5cce
update to latest schema version
adamkorynta Nov 13, 2024
e37aaff
Merge pull request #2 from adamkorynta/feature/TimeSeriesProfileContr…
zack-rma Nov 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions cwms-data-api/src/main/java/cwms/cda/ApiServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,19 @@

package cwms.cda;

import static cwms.cda.api.Controllers.*;
import static io.javalin.apibuilder.ApiBuilder.*;
import static cwms.cda.api.Controllers.CONTRACT_NAME;
import static cwms.cda.api.Controllers.LOCATION_ID;
import static cwms.cda.api.Controllers.NAME;
import static cwms.cda.api.Controllers.OFFICE;
import static cwms.cda.api.Controllers.PROJECT_ID;
import static cwms.cda.api.Controllers.WATER_USER;
import static io.javalin.apibuilder.ApiBuilder.crud;
import static io.javalin.apibuilder.ApiBuilder.delete;
import static io.javalin.apibuilder.ApiBuilder.get;
import static io.javalin.apibuilder.ApiBuilder.patch;
import static io.javalin.apibuilder.ApiBuilder.post;
import static io.javalin.apibuilder.ApiBuilder.prefixPath;
import static io.javalin.apibuilder.ApiBuilder.staticInstance;
import static java.lang.String.format;

import com.codahale.metrics.Meter;
Expand Down Expand Up @@ -110,17 +121,14 @@
import cwms.cda.api.project.ProjectPublishStatusUpdate;
import cwms.cda.api.project.RemoveAllLockRevokerRights;
import cwms.cda.api.project.UpdateLockRevokerRights;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileBase;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileCatalogController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileCreateController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileDeleteController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileInstanceBase;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileInstanceCatalogController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileInstanceController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileInstanceCreateController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileInstanceDeleteController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileParserBase;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileParserCatalogController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileParserController;
import cwms.cda.api.timeseriesprofile.TimeSeriesProfileParserCreateController;
Expand Down Expand Up @@ -508,31 +516,31 @@ protected void configureRoutes() {
addCacheControl(textBinaryValuePath, 1, TimeUnit.DAYS);

String timeSeriesProfilePath = "/timeseries/profile/";
get(format(timeSeriesProfilePath + "{%s}/{%s}", Controllers.LOCATION_ID, TimeSeriesProfileBase.PARAMETER_ID),
get(format(timeSeriesProfilePath + "{%s}/{%s}", Controllers.LOCATION_ID, Controllers.PARAMETER_ID),
new TimeSeriesProfileController(metrics));
delete(format(timeSeriesProfilePath + "/{%s}/{%s}", Controllers.LOCATION_ID,
TimeSeriesProfileBase.PARAMETER_ID), new TimeSeriesProfileDeleteController(metrics),
Controllers.PARAMETER_ID), new TimeSeriesProfileDeleteController(metrics),
requiredRoles);
get(format(timeSeriesProfilePath, Controllers.LOCATION_ID, TimeSeriesProfileBase.PARAMETER_ID),
get(format(timeSeriesProfilePath, Controllers.LOCATION_ID, Controllers.PARAMETER_ID),
new TimeSeriesProfileCatalogController(metrics));
post(timeSeriesProfilePath, new TimeSeriesProfileCreateController(metrics), requiredRoles);

String timeSeriesProfileParserPath = "/timeseries/profile-parser/";
get(format(timeSeriesProfileParserPath + "{%s}/{%s}/", Controllers.LOCATION_ID,
TimeSeriesProfileParserBase.PARAMETER_ID), new TimeSeriesProfileParserController(metrics));
Controllers.PARAMETER_ID), new TimeSeriesProfileParserController(metrics));
post(timeSeriesProfileParserPath, new TimeSeriesProfileParserCreateController(metrics), requiredRoles);
delete(format(timeSeriesProfileParserPath + "{%s}/{%s}/", Controllers.LOCATION_ID,
TimeSeriesProfileParserBase.PARAMETER_ID), new TimeSeriesProfileParserDeleteController(metrics),
Controllers.PARAMETER_ID), new TimeSeriesProfileParserDeleteController(metrics),
requiredRoles);
get(timeSeriesProfileParserPath, new TimeSeriesProfileParserCatalogController(metrics));

String timeSeriesProfileInstancePath = "/timeseries/profile-instance/";
get(format(timeSeriesProfileInstancePath + "{%s}/{%s}/{%s}/", Controllers.LOCATION_ID,
TimeSeriesProfileInstanceBase.PARAMETER_ID, Controllers.VERSION),
Controllers.PARAMETER_ID, Controllers.VERSION),
new TimeSeriesProfileInstanceController(metrics));
post(timeSeriesProfileInstancePath, new TimeSeriesProfileInstanceCreateController(metrics), requiredRoles);
delete(format(timeSeriesProfileInstancePath + "{%s}/{%s}/{%s}/", Controllers.LOCATION_ID,
TimeSeriesProfileInstanceBase.PARAMETER_ID, Controllers.VERSION),
Controllers.PARAMETER_ID, Controllers.VERSION),
new TimeSeriesProfileInstanceDeleteController(metrics), requiredRoles);
get(timeSeriesProfileInstancePath, new TimeSeriesProfileInstanceCatalogController(metrics));

Expand Down Expand Up @@ -905,7 +913,7 @@ private static String getAccessManagerName() {

@Override
protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
throws IOException {
totalRequests.mark();
try {
String office = officeFromContext(req.getContextPath());
Expand Down
6 changes: 6 additions & 0 deletions cwms-data-api/src/main/java/cwms/cda/api/Controllers.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ public final class Controllers {
public static final String LOCATIONS = "locations";
public static final String WATER_USER = "water-user";
public static final String CONTRACT_NAME = "contract-name";
public static final String PARAMETER_ID = "parameter-id";
public static final String PARAMETER_ID_MASK = "parameter-id-mask";
public static final String VERSION_MASK = "version-mask";
public static final String PROFILE_DATA = "profile-data";
public static final String PREVIOUS = "previous";
public static final String NEXT = "next";

public static final String LOCATION_ID = "location-id";
public static final String SOURCE_ENTITY = "source-entity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
import cwms.cda.data.dao.timeseriesprofile.TimeSeriesProfileDao;
import org.jooq.DSLContext;

public class TimeSeriesProfileBase {
public abstract class TimeSeriesProfileBase {
static final String TAG = "TimeSeries";
public static final String PARAMETER_ID = "parameter-id";
private MetricRegistry metrics;

TimeSeriesProfileDao getContractDao(DSLContext dsl) {
TimeSeriesProfileDao getProfileDao(DSLContext dsl) {
return new TimeSeriesProfileDao(dsl);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@

package cwms.cda.api.timeseriesprofile;

import static cwms.cda.api.Controllers.*;
import static cwms.cda.api.Controllers.GET_ALL;
import static cwms.cda.api.Controllers.LOCATION_MASK;
import static cwms.cda.api.Controllers.OFFICE_MASK;
import static cwms.cda.api.Controllers.PAGE;
import static cwms.cda.api.Controllers.PAGE_SIZE;
import static cwms.cda.api.Controllers.STATUS_200;
import static cwms.cda.api.Controllers.STATUS_400;
import static cwms.cda.api.Controllers.STATUS_404;
import static cwms.cda.data.dao.JooqDao.getDslContext;

import com.codahale.metrics.MetricRegistry;
Expand Down Expand Up @@ -68,14 +74,14 @@ public TimeSeriesProfileCatalogController(MetricRegistry metrics) {
@OpenApiParam(name = PAGE_SIZE, description = "The page size. Default is 500")
},
method = HttpMethod.GET,
summary = "Get a time series profile",
summary = "Get a catalog of time series profiles",
tags = {TAG},
responses = {
@OpenApiResponse(status = STATUS_200,
description = "A TimeSeriesProfile object",
content = {
@OpenApiContent(from = TimeSeriesProfileList.class, type = Formats.JSONV1),
@OpenApiContent(from = TimeSeriesProfileList.class, type = Formats.XMLV2),
@OpenApiContent(from = TimeSeriesProfileList.class, type = Formats.JSON),
}),
@OpenApiResponse(status = STATUS_400, description = "Invalid input"),
@OpenApiResponse(status = STATUS_404, description = "No data matching input parameters found")
Expand All @@ -85,7 +91,7 @@ public TimeSeriesProfileCatalogController(MetricRegistry metrics) {
public void handle(@NotNull Context ctx) {
try (final Timer.Context ignored = markAndTime(GET_ALL)) {
DSLContext dsl = getDslContext(ctx);
TimeSeriesProfileDao tspDao = new TimeSeriesProfileDao(dsl);
TimeSeriesProfileDao tspDao = getProfileDao(dsl);
String officeMask = ctx.queryParamAsClass(OFFICE_MASK, String.class).getOrDefault("*");
String locationMask = ctx.queryParamAsClass(LOCATION_MASK, String.class).getOrDefault("*");
String parameterIdMask = ctx.queryParamAsClass(PARAMETER_ID_MASK, String.class).getOrDefault("*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import static cwms.cda.api.Controllers.GET_ONE;
import static cwms.cda.api.Controllers.LOCATION_ID;
import static cwms.cda.api.Controllers.OFFICE;
import static cwms.cda.api.Controllers.PARAMETER_ID;
import static cwms.cda.api.Controllers.STATUS_200;
import static cwms.cda.api.Controllers.requiredParam;
import static cwms.cda.data.dao.JooqDao.getDslContext;
Expand Down Expand Up @@ -75,7 +76,7 @@ public TimeSeriesProfileController(MetricRegistry metrics) {
description = "A TimeSeriesProfileParser object",
content = {
@OpenApiContent(from = TimeSeriesProfile.class, type = Formats.JSONV1),
@OpenApiContent(from = TimeSeriesProfile.class, type = Formats.XMLV2),
@OpenApiContent(from = TimeSeriesProfile.class, type = Formats.JSON),
}),
@OpenApiResponse(status = "400", description = "Invalid input")
}
Expand All @@ -85,9 +86,9 @@ public void handle(@NotNull Context ctx) {
try (final Timer.Context ignored = markAndTime(GET_ONE)) {
DSLContext dsl = getDslContext(ctx);
String parameterId = ctx.pathParam(PARAMETER_ID);
TimeSeriesProfileDao tspDao = new TimeSeriesProfileDao(dsl);
TimeSeriesProfileDao tspDao = getProfileDao(dsl);
String office = requiredParam(ctx, OFFICE);
String locationId = requiredParam(ctx, LOCATION_ID);
String locationId = ctx.pathParam(LOCATION_ID);
TimeSeriesProfile returned = tspDao.retrieveTimeSeriesProfile(locationId, parameterId, office);
String acceptHeader = ctx.header(Header.ACCEPT);
ContentType contentType = Formats.parseHeader(acceptHeader, TimeSeriesProfile.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void handle(@NotNull Context ctx) {
TimeSeriesProfile timeSeriesProfile = Formats.parseContent(Formats.parseHeader(Formats.JSONV1,
TimeSeriesProfile.class), ctx.body(), TimeSeriesProfile.class);
boolean failIfExists = ctx.queryParamAsClass(FAIL_IF_EXISTS, boolean.class).getOrDefault(true);
TimeSeriesProfileDao tspDao = new TimeSeriesProfileDao(dsl);
TimeSeriesProfileDao tspDao = getProfileDao(dsl);
tspDao.storeTimeSeriesProfile(timeSeriesProfile, failIfExists);
ctx.status(HttpServletResponse.SC_CREATED);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@

package cwms.cda.api.timeseriesprofile;

import static cwms.cda.api.Controllers.*;
import static cwms.cda.api.Controllers.DELETE;
import static cwms.cda.api.Controllers.LOCATION_ID;
import static cwms.cda.api.Controllers.OFFICE;
import static cwms.cda.api.Controllers.PARAMETER_ID;
import static cwms.cda.api.Controllers.STATUS_204;
import static cwms.cda.api.Controllers.STATUS_400;
import static cwms.cda.api.Controllers.STATUS_404;
import static cwms.cda.api.Controllers.STATUS_501;
import static cwms.cda.api.Controllers.requiredParam;
import static cwms.cda.data.dao.JooqDao.getDslContext;

import com.codahale.metrics.MetricRegistry;
Expand Down Expand Up @@ -55,18 +63,18 @@ public TimeSeriesProfileDeleteController(MetricRegistry metrics) {
},
pathParams = {
@OpenApiParam(name = LOCATION_ID, description = "The location ID associated with the time "
+ "series profile"),
+ "series profile"),
@OpenApiParam(name = PARAMETER_ID, description = "The key parameter associated with the "
+ "time series profile")
+ "time series profile")
},
method = HttpMethod.DELETE,
summary = "Update a time series profile",
summary = "Delete a time series profile",
tags = {TAG},
responses = {
@OpenApiResponse(status = STATUS_400, description = "Invalid input"),
@OpenApiResponse(status = STATUS_204, description = "Time series profile deleted"),
@OpenApiResponse(status = STATUS_404, description = "Time series profile not found"),
@OpenApiResponse(status = STATUS_501, description = "Internal server error")
@OpenApiResponse(status = STATUS_400, description = "Invalid input"),
@OpenApiResponse(status = STATUS_204, description = "Time series profile deleted"),
@OpenApiResponse(status = STATUS_404, description = "Time series profile not found"),
@OpenApiResponse(status = STATUS_501, description = "Internal server error")
}
)
@Override
Expand All @@ -76,7 +84,7 @@ public void handle(@NotNull Context ctx) {
String keyParameter = ctx.pathParam(PARAMETER_ID);
String office = requiredParam(ctx, OFFICE);
String locationId = ctx.pathParam(LOCATION_ID);
TimeSeriesProfileDao tspDao = new TimeSeriesProfileDao(dsl);
TimeSeriesProfileDao tspDao = getProfileDao(dsl);
tspDao.deleteTimeSeriesProfile(locationId, keyParameter, office);
ctx.status(HttpServletResponse.SC_NO_CONTENT);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,11 @@
import cwms.cda.data.dao.timeseriesprofile.TimeSeriesProfileInstanceDao;
import org.jooq.DSLContext;

public class TimeSeriesProfileInstanceBase {
public abstract class TimeSeriesProfileInstanceBase {
static final String TAG = "TimeSeries";
public static final String PARAMETER_ID = "parameter-id";
public static final String PARAMETER_ID_MASK = "parameter-id-mask";
public static final String VERSION_MASK = "version-mask";
public static final String PROFILE_DATA = "profile-data";
public static final String START_INCLUSIVE = "start-inclusive";
public static final String END_INCLUSIVE = "end-inclusive";
public static final String PREVIOUS = "previous";
public static final String NEXT = "next";
private MetricRegistry metrics;

TimeSeriesProfileInstanceDao getContractDao(DSLContext dsl) {
TimeSeriesProfileInstanceDao getProfileInstanceDao(DSLContext dsl) {
return new TimeSeriesProfileInstanceDao(dsl);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@

package cwms.cda.api.timeseriesprofile;

import static cwms.cda.api.Controllers.*;
import static cwms.cda.api.Controllers.GET_ALL;
import static cwms.cda.api.Controllers.LOCATION_MASK;
import static cwms.cda.api.Controllers.OFFICE_MASK;
import static cwms.cda.api.Controllers.PARAMETER_ID_MASK;
import static cwms.cda.api.Controllers.STATUS_200;
import static cwms.cda.api.Controllers.VERSION_MASK;
import static cwms.cda.data.dao.JooqDao.getDslContext;

import com.codahale.metrics.MetricRegistry;
Expand Down Expand Up @@ -67,15 +71,16 @@ public TimeSeriesProfileInstanceCatalogController(MetricRegistry metrics) {
+ " time series profile instance. Default is *"),
},
method = HttpMethod.GET,
summary = "Get all time series profile instances. Masks can be provided to filter the results, but are"
+ "not necessary to get a response.",
summary = "Get all time series profile instances that match the provided masks. This endpoint will return a "
+ "list of time series profile instances without the associated data. Data for an instance can be "
+ "retrieved using the singular retrieval endpoint.",
tags = {TAG},
responses = {
@OpenApiResponse(status = STATUS_200,
description = "A TimeSeriesProfileInstance object",
content = {
@OpenApiContent(from = TimeSeriesProfileInstance.class, type = Formats.JSONV1),
@OpenApiContent(from = TimeSeriesProfileInstance.class, type = Formats.XMLV2),
@OpenApiContent(from = TimeSeriesProfileInstance.class, type = Formats.JSON),
}),
@OpenApiResponse(status = "400", description = "Invalid input")
}
Expand All @@ -84,7 +89,7 @@ public TimeSeriesProfileInstanceCatalogController(MetricRegistry metrics) {
public void handle(@NotNull Context ctx) {
try (final Timer.Context ignored = markAndTime(GET_ALL)) {
DSLContext dsl = getDslContext(ctx);
TimeSeriesProfileInstanceDao tspInstanceDao = new TimeSeriesProfileInstanceDao(dsl);
TimeSeriesProfileInstanceDao tspInstanceDao = getProfileInstanceDao(dsl);
String officeMask = ctx.queryParamAsClass(OFFICE_MASK, String.class).getOrDefault("*");
String locationMask = ctx.queryParamAsClass(LOCATION_MASK, String.class).getOrDefault("*");
String parameterIdMask = ctx.queryParamAsClass(PARAMETER_ID_MASK, String.class).getOrDefault("*");
Expand Down
Loading
Loading