Record Class ResponseSchemaEntry
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.rest.scriptingapi.response.ResponseSchemaEntry
public record ResponseSchemaEntry(ResponseEntryType type, ResponseEntryDataType dataType, String functionName, String fieldName)
extends Record
-
Constructor Summary
ConstructorDescriptionResponseSchemaEntry
(ResponseEntryType type, ResponseEntryDataType dataType, String functionName, String fieldName) Creates an instance of aResponseSchemaEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()
Returns the value of thedataType
record component.final boolean
Indicates whether some other object is "equal to" this one.static ResponseSchemaEntry
field
(String fieldName, ResponseEntryDataType dataType) Returns the value of thefieldName
record component.Returns the value of thefunctionName
record component.static ResponseSchemaEntry
final int
hashCode()
Returns a hash code value for this object.static ResponseSchemaEntry
name()
final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ResponseSchemaEntry
public ResponseSchemaEntry(ResponseEntryType type, ResponseEntryDataType dataType, String functionName, String fieldName) Creates an instance of aResponseSchemaEntry
record class.- Parameters:
type
- the value for thetype
record componentdataType
- the value for thedataType
record componentfunctionName
- the value for thefunctionName
record componentfieldName
- the value for thefieldName
record component
-
-
Method Details
-
groupBy
-
metric
-
field
-
name
- Returns:
- Human readable label like: grouping: http_method metric: count(action) metric: avg(took_ms)
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
dataType
Returns the value of thedataType
record component.- Returns:
- the value of the
dataType
record component
-
functionName
Returns the value of thefunctionName
record component.- Returns:
- the value of the
functionName
record component
-
fieldName
Returns the value of thefieldName
record component.- Returns:
- the value of the
fieldName
record component
-