Package com.datadog.api.client.v2.model
Class CustomDestinationForwardDestinationElasticsearch
java.lang.Object
com.datadog.api.client.v2.model.CustomDestinationForwardDestinationElasticsearch
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomDestinationForwardDestinationElasticsearch
extends Object
The Elasticsearch destination.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomDestinationForwardDestinationElasticsearch(CustomDestinationElasticsearchDestinationAuth auth, String endpoint, String indexName, CustomDestinationForwardDestinationElasticsearchType type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this CustomDestinationForwardDestinationElasticsearch object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAuth()Basic access authentication.The destination for which logs will be forwarded to.Name of the Elasticsearch index (must follow Elasticsearch's criteria).Date pattern with US locale and UTC timezone to be appended to the index name after adding-(that is,${index_name}-${indexPattern}).getType()Type of the Elasticsearch destination.inthashCode()indexRotation(String indexRotation) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetEndpoint(String endpoint) voidsetIndexName(String indexName) voidsetIndexRotation(String indexRotation) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AUTH
- See Also:
-
JSON_PROPERTY_ENDPOINT
- See Also:
-
JSON_PROPERTY_INDEX_NAME
- See Also:
-
JSON_PROPERTY_INDEX_ROTATION
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CustomDestinationForwardDestinationElasticsearch
public CustomDestinationForwardDestinationElasticsearch() -
CustomDestinationForwardDestinationElasticsearch
public CustomDestinationForwardDestinationElasticsearch(CustomDestinationElasticsearchDestinationAuth auth, String endpoint, String indexName, CustomDestinationForwardDestinationElasticsearchType type)
-
-
Method Details
-
auth
-
getAuth
Basic access authentication.- Returns:
- auth
-
setAuth
-
endpoint
-
getEndpoint
The destination for which logs will be forwarded to. Must have HTTPS scheme and forwarding back to Datadog is not allowed.- Returns:
- endpoint
-
setEndpoint
-
indexName
-
getIndexName
Name of the Elasticsearch index (must follow Elasticsearch's criteria).- Returns:
- indexName
-
setIndexName
-
indexRotation
-
getIndexRotation
Date pattern with US locale and UTC timezone to be appended to the index name after adding-(that is,${index_name}-${indexPattern}). You can customize the index rotation naming pattern by choosing one of these options: - Hourly:yyyy-MM-dd-HH(as an example, it would render:2022-10-19-09) - Daily:yyyy-MM-dd(as an example, it would render:2022-10-19) - Weekly:yyyy-'W'ww(as an example, it would render:2022-W42) - Monthly:yyyy-MM(as an example, it would render:2022-10)If this field is missing or is blank, it means that the index name will always be the same (that is, no rotation).
- Returns:
- indexRotation
-
setIndexRotation
-
type
-
getType
Type of the Elasticsearch destination.- Returns:
- type
-
setType
-
putAdditionalProperty
public CustomDestinationForwardDestinationElasticsearch 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 setvalue- The associated value- Returns:
- CustomDestinationForwardDestinationElasticsearch
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this CustomDestinationForwardDestinationElasticsearch object is equal to o. -
hashCode
public int hashCode() -
toString
-