Record Class Emf.Options
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.Emf.Options
- Record Components:
namespace- metric namespace, 1–1024 characters (null:GrowSdk)unit- CloudWatch unit (null:None)timestamp- metric time (null: now)properties- extra top-level properties (searchable fields that are not dimensions)group- log group foremf()(null:config.logGroup)stream- log stream foremf()(null:config.logStream)
- Enclosing class:
Emf
public static record Emf.Options(String namespace, String unit, Instant timestamp, Map<String,Object> properties, String group, String stream)
extends Record
Options of
Emf.build(java.lang.String, double, java.util.Map<java.lang.String, java.lang.String>, codes.grow.packages.cloudwatchlogs.Emf.Options) and CloudWatchLogsClient.emf.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Emf.Optionsdefaults()Default options.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenamespacerecord component.Returns the value of thepropertiesrecord component.stream()Returns the value of thestreamrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.withNamespace(String value) Returns a copy with another namespace.withProperties(Map<String, Object> value) Returns a copy with other properties.withTarget(String groupName, String streamName) Returns a copy with another log group and stream.withTimestamp(Instant value) Returns a copy with another timestamp.Returns a copy with another unit.
-
Constructor Details
-
Method Details
-
defaults
Default options.- Returns:
- the options
-
withNamespace
Returns a copy with another namespace.- Parameters:
value- namespace- Returns:
- the copy
-
withUnit
Returns a copy with another unit.- Parameters:
value- unit- Returns:
- the copy
-
withTimestamp
Returns a copy with another timestamp.- Parameters:
value- time- Returns:
- the copy
-
withProperties
Returns a copy with other properties.- Parameters:
value- properties- Returns:
- the copy
-
withTarget
Returns a copy with another log group and stream.- Parameters:
groupName- log group (null: default)streamName- log stream (null: default)- Returns:
- the copy
-
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). -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
stream
Returns the value of thestreamrecord component.- Returns:
- the value of the
streamrecord component
-