public static class LogAnalyticsMetric.Builder extends Object
Constructor and Description |
---|
Builder() |
public LogAnalyticsMetric.Builder aggregationField(String aggregationField)
The aggregation field.
aggregationField
- the value to setpublic LogAnalyticsMetric.Builder bucketMetadata(String bucketMetadata)
The bucket metadata.
bucketMetadata
- the value to setpublic LogAnalyticsMetric.Builder clockPeriod(String clockPeriod)
The clock period.
clockPeriod
- the value to setpublic LogAnalyticsMetric.Builder description(String description)
The metric description.
description
- the value to setpublic LogAnalyticsMetric.Builder editVersion(Long editVersion)
The metric edit version.
editVersion
- the value to setpublic LogAnalyticsMetric.Builder fieldName(String fieldName)
The field name.
fieldName
- the value to setpublic LogAnalyticsMetric.Builder fieldValues(List<String> fieldValues)
The field values.
fieldValues
- the value to setpublic LogAnalyticsMetric.Builder groupingField(String groupingField)
The grouping fields.
groupingField
- the value to setpublic LogAnalyticsMetric.Builder isEnabled(Boolean isEnabled)
A flag inidcating whether or not the metric is enabled.
isEnabled
- the value to setpublic LogAnalyticsMetric.Builder isSystem(Boolean isSystem)
The system flag. A value of false denotes a custom, or user defined object. A value of true denotes a built in object.
isSystem
- the value to setpublic LogAnalyticsMetric.Builder displayName(String displayName)
The metric display name.
displayName
- the value to setpublic LogAnalyticsMetric.Builder metricReference(Long metricReference)
The metric unique identifier.
metricReference
- the value to setpublic LogAnalyticsMetric.Builder name(String name)
The metric name.
name
- the value to setpublic LogAnalyticsMetric.Builder metricType(LogAnalyticsMetric.MetricType metricType)
The metric type, specifying the type of aggreation to perform. Default value is COUNT.
metricType
- the value to setpublic LogAnalyticsMetric.Builder isMetricSourceEnabled(Boolean isMetricSourceEnabled)
A flag specifying whether or not the metric source is enabled.
isMetricSourceEnabled
- the value to setpublic LogAnalyticsMetric.Builder operator(LogAnalyticsMetric.Operator operator)
The metric operator.
operator
- the value to setpublic LogAnalyticsMetric.Builder sources(List<LogAnalyticsSource> sources)
The metric sources.
sources
- the value to setpublic LogAnalyticsMetric.Builder entityType(String entityType)
The entity type.
entityType
- the value to setpublic LogAnalyticsMetric.Builder timeUpdated(Date timeUpdated)
The last updated date.
timeUpdated
- the value to setpublic LogAnalyticsMetric.Builder unitType(String unitType)
The unit type.
unitType
- the value to setpublic LogAnalyticsMetric.Builder isUserCustomized(Boolean isUserCustomized)
A flag specifying whether or not this is a custom (user defined) metric.
isUserCustomized
- the value to setpublic LogAnalyticsMetric build()
public LogAnalyticsMetric.Builder copy(LogAnalyticsMetric model)
Copyright © 2016–2024. All rights reserved.