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
ConstructorsConstructorDescriptionResponseSchemaEntry(ResponseEntryType type, ResponseEntryDataType dataType, String functionName, String fieldName) Creates an instance of aResponseSchemaEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static ResponseSchemaEntryfield(String fieldName, ResponseEntryDataType dataType) Returns the value of thefieldNamerecord component.Returns the value of thefunctionNamerecord component.static ResponseSchemaEntryfinal inthashCode()Returns a hash code value for this object.static ResponseSchemaEntryname()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ResponseSchemaEntry
public ResponseSchemaEntry(ResponseEntryType type, ResponseEntryDataType dataType, String functionName, String fieldName) Creates an instance of aResponseSchemaEntryrecord class.- Parameters:
type- the value for thetyperecord componentdataType- the value for thedataTyperecord componentfunctionName- the value for thefunctionNamerecord componentfieldName- the value for thefieldNamerecord 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 thetyperecord component.- Returns:
- the value of the
typerecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
functionName
Returns the value of thefunctionNamerecord component.- Returns:
- the value of the
functionNamerecord component
-
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-