Module org.elasticsearch.security
Record Class SecurityMetricType
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.security.metric.SecurityMetricType
public record SecurityMetricType(SecurityMetricGroup group, SecurityMetricInfo successMetricInfo, SecurityMetricInfo failuresMetricInfo, SecurityMetricInfo timeMetricInfo)
extends Record
Defines a security metric type that can be collected.
Each metric type has a group, and metric info for tracking success, failure and total time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SecurityMetricTypestatic final SecurityMetricTypestatic final SecurityMetricTypestatic final SecurityMetricType -
Constructor Summary
ConstructorsConstructorDescriptionSecurityMetricType(SecurityMetricGroup group, SecurityMetricInfo successMetricInfo, SecurityMetricInfo failuresMetricInfo, SecurityMetricInfo timeMetricInfo) Creates an instance of aSecurityMetricTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailuresMetricInforecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesuccessMetricInforecord component.Returns the value of thetimeMetricInforecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
AUTHC_API_KEY
-
AUTHC_SERVICE_ACCOUNT
-
AUTHC_OAUTH2_TOKEN
-
AUTHC_REALMS
-
-
Constructor Details
-
SecurityMetricType
public SecurityMetricType(SecurityMetricGroup group, SecurityMetricInfo successMetricInfo, SecurityMetricInfo failuresMetricInfo, SecurityMetricInfo timeMetricInfo) Creates an instance of aSecurityMetricTyperecord class.- Parameters:
group- the value for thegrouprecord componentsuccessMetricInfo- the value for thesuccessMetricInforecord componentfailuresMetricInfo- the value for thefailuresMetricInforecord componenttimeMetricInfo- the value for thetimeMetricInforecord component
-
-
Method Details
-
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). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
successMetricInfo
Returns the value of thesuccessMetricInforecord component.- Returns:
- the value of the
successMetricInforecord component
-
failuresMetricInfo
Returns the value of thefailuresMetricInforecord component.- Returns:
- the value of the
failuresMetricInforecord component
-
timeMetricInfo
Returns the value of thetimeMetricInforecord component.- Returns:
- the value of the
timeMetricInforecord component
-