Package ai.shipeasy.admin.model
Class OpsItemRelated
java.lang.Object
ai.shipeasy.admin.model.OpsItemRelated
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OpsItemRelated
extends Object
Deep links to the resources behind this item — every value is either a dashboard-relative path or an admin-API path fetchable with the same key.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OpsItemRelatedCreate an instance of OpsItemRelated given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Admin-API path to the alert rule (metric-rule alerts only).Dashboard-relative deep link to this item.getError()Admin-API path to the tracked error (error tickets only).HTML URL of the connected GitHub issue, if any.HTML URL of the linked GitHub pull request, if any.Admin-API path to the metric the alert watches (alert tickets only).githubIssue(String githubIssue) inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAlertRule(String alertRule) voidsetDashboard(String dashboard) voidvoidsetGithubIssue(String githubIssue) voidsetGithubPr(String githubPr) voidtoJson()Convert an instance of OpsItemRelated 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_DASHBOARD
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
SERIALIZED_NAME_ALERT_RULE
- See Also:
-
SERIALIZED_NAME_METRIC
- See Also:
-
SERIALIZED_NAME_GITHUB_ISSUE
- See Also:
-
SERIALIZED_NAME_GITHUB_PR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsItemRelated
public OpsItemRelated()
-
-
Method Details
-
dashboard
-
getDashboard
Dashboard-relative deep link to this item.- Returns:
- dashboard
-
setDashboard
-
error
-
getError
Admin-API path to the tracked error (error tickets only).- Returns:
- error
-
setError
-
alertRule
-
getAlertRule
Admin-API path to the alert rule (metric-rule alerts only).- Returns:
- alertRule
-
setAlertRule
-
metric
-
getMetric
Admin-API path to the metric the alert watches (alert tickets only).- Returns:
- metric
-
setMetric
-
githubIssue
-
getGithubIssue
HTML URL of the connected GitHub issue, if any.- Returns:
- githubIssue
-
setGithubIssue
-
githubPr
-
getGithubPr
HTML URL of the linked GitHub pull request, if any.- Returns:
- githubPr
-
setGithubPr
-
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 OpsItemRelated 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 OpsItemRelated
-
fromJson
Create an instance of OpsItemRelated given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OpsItemRelated
- Throws:
IOException- if the JSON string is invalid with respect to OpsItemRelated
-
toJson
Convert an instance of OpsItemRelated to an JSON string- Returns:
- JSON string
-