com.microsoft.azure.sdk.build.tool.implementation.models.TelemetryEventData Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.microsoft.azure.sdk.build.tool.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* Instances of Event represent structured event records that can be grouped and searched by their properties. Event
* data item also creates a metric of event count by name.
*/
@Fluent
public final class TelemetryEventData extends MonitorDomain {
/*
* Event name. Keep it low cardinality to allow proper grouping and useful
* metrics.
*/
@JsonProperty(value = "name", required = true)
private String name;
/*
* Collection of custom properties.
*/
@JsonProperty(value = "properties")
private Map properties;
/*
* Collection of custom measurements.
*/
@JsonProperty(value = "measurements")
private Map measurements;
/**
* Get the name property: Event name. Keep it low cardinality to allow proper grouping and useful metrics.
*
* @return the name value.
*/
public String getName() {
return this.name;
}
/**
* Set the name property: Event name. Keep it low cardinality to allow proper grouping and useful metrics.
*
* @param name the name value to set.
* @return the TelemetryEventData object itself.
*/
public TelemetryEventData setName(String name) {
this.name = name;
return this;
}
/**
* Get the properties property: Collection of custom properties.
*
* @return the properties value.
*/
public Map getProperties() {
return this.properties;
}
/**
* Set the properties property: Collection of custom properties.
*
* @param properties the properties value to set.
* @return the TelemetryEventData object itself.
*/
public TelemetryEventData setProperties(Map properties) {
this.properties = properties;
return this;
}
/**
* Get the measurements property: Collection of custom measurements.
*
* @return the measurements value.
*/
public Map getMeasurements() {
return this.measurements;
}
/**
* Set the measurements property: Collection of custom measurements.
*
* @param measurements the measurements value to set.
* @return the TelemetryEventData object itself.
*/
public TelemetryEventData setMeasurements(Map measurements) {
this.measurements = measurements;
return this;
}
}