@Value.Immutable public interface ReportMetricsRequest extends RESTRequest
Modifier and Type | Interface and Description |
---|---|
static class |
ReportMetricsRequest.ReportType |
Modifier and Type | Method and Description |
---|---|
static ReportMetricsRequest |
of(MetricsReport report) |
MetricsReport |
report() |
ReportMetricsRequest.ReportType |
reportType() |
static ReportMetricsRequest |
unknown() |
default void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
ReportMetricsRequest.ReportType reportType()
MetricsReport report()
default void validate()
RESTMessage
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate
in interface RESTMessage
static ReportMetricsRequest of(MetricsReport report)
static ReportMetricsRequest unknown()