-
Notifications
You must be signed in to change notification settings - Fork 13
/
TooltipQueryParameters.java
50 lines (40 loc) · 1.4 KB
/
TooltipQueryParameters.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**********************************************************************
* Copyright (c) 2021 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.tracecompass.incubator.internal.trace.server.jersey.rest.core.model;
import org.eclipse.jdt.annotation.NonNull;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Contributes to the model used for TSP swagger-core annotations.
*/
public interface TooltipQueryParameters {
/**
* @return The parameters.
*/
@NonNull
@Schema(required = true)
TooltipParameters getParameters();
/**
* Property names below use underscores as per trace-server protocol.
*/
interface TooltipParameters {
@JsonProperty("requested_times")
@Schema(required = true)
long[] getRequestedTimes();
@JsonProperty("requested_items")
@Schema(required = true)
int[] getRequestedItems();
@JsonProperty("requested_element")
@NonNull
@Schema(required = true)
Element getRequestedElement();
}
}