Package ai.shipeasy.admin.model
Class OpsAlertMetricSummary
java.lang.Object
ai.shipeasy.admin.model.OpsAlertMetricSummary
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OpsAlertMetricSummary
extends Object
The metric an alert watches, with its backing events.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEventsItem(String eventsItem) booleanstatic OpsAlertMetricSummaryCreate an instance of OpsAlertMetricSummary given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The event name(s) the metric aggregates over — one for count metrics, numerator + denominator for ratio metrics.getId()Metric id (fetch full detail via `related.metric`).getName()Metric name.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidtoJson()Convert an instance of OpsAlertMetricSummary to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_EVENTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsAlertMetricSummary
public OpsAlertMetricSummary()
-
-
Method Details
-
id
-
getId
Metric id (fetch full detail via `related.metric`).- Returns:
- id
-
setId
-
name
-
getName
Metric name.- Returns:
- name
-
setName
-
events
-
addEventsItem
-
getEvents
The event name(s) the metric aggregates over — one for count metrics, numerator + denominator for ratio metrics. Grep the codebase for `track('<event>')` on each to find the instrumentation feeding the metric.- Returns:
- events
-
setEvents
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the OpsAlertMetricSummary instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to OpsAlertMetricSummary
-
fromJson
Create an instance of OpsAlertMetricSummary given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OpsAlertMetricSummary
- Throws:
IOException- if the JSON string is invalid with respect to OpsAlertMetricSummary
-
toJson
Convert an instance of OpsAlertMetricSummary to an JSON string- Returns:
- JSON string
-