Class GraphSnapshot

java.lang.Object
com.datadog.api.client.v1.model.GraphSnapshot

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class GraphSnapshot extends Object
Object representing a graph snapshot.
  • Field Details

  • Constructor Details

    • GraphSnapshot

      public GraphSnapshot()
  • Method Details

    • graphDef

      public GraphSnapshot graphDef(String graphDef)
    • getGraphDef

      @Nullable public String getGraphDef()
      A JSON document defining the graph. graph_def can be used instead of metric_query. The JSON document uses the grammar defined here and should be formatted to a single line then URL encoded.
      Returns:
      graphDef
    • setGraphDef

      public void setGraphDef(String graphDef)
    • metricQuery

      public GraphSnapshot metricQuery(String metricQuery)
    • getMetricQuery

      @Nullable public String getMetricQuery()
      The metric query. One of metric_query or graph_def is required.
      Returns:
      metricQuery
    • setMetricQuery

      public void setMetricQuery(String metricQuery)
    • snapshotUrl

      public GraphSnapshot snapshotUrl(String snapshotUrl)
    • getSnapshotUrl

      @Nullable public String getSnapshotUrl()
      URL of your graph snapshot.
      Returns:
      snapshotUrl
    • setSnapshotUrl

      public void setSnapshotUrl(String snapshotUrl)
    • putAdditionalProperty

      public GraphSnapshot putAdditionalProperty(String key, Object value)
      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 - The arbitrary key to set
      value - The associated value
      Returns:
      GraphSnapshot
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this GraphSnapshot object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object