Class EventSourceCommonProperties
java.lang.Object
com.azure.resourcemanager.timeseriesinsights.models.ResourceProperties
com.azure.resourcemanager.timeseriesinsights.models.EventSourceCommonProperties
- Direct Known Subclasses:
AzureEventSourceProperties
Properties of the event source.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EventSourceCommonProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the localTimestamp property: An object that represents the local timestamp property.time()
Get the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.Get the timestampPropertyName property: The event property that will be used as the event source's timestamp.type()
Get the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".void
validate()
Validates the instance.withLocalTimestamp
(LocalTimestamp localTimestamp) Set the localTimestamp property: An object that represents the local timestamp property.Set the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.withTimestampPropertyName
(String timestampPropertyName) Set the timestampPropertyName property: The event property that will be used as the event source's timestamp.withType
(IngressStartAtType type) Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".Methods inherited from class com.azure.resourcemanager.timeseriesinsights.models.ResourceProperties
creationTime, provisioningState
-
Constructor Details
-
EventSourceCommonProperties
public EventSourceCommonProperties()Creates an instance of EventSourceCommonProperties class.
-
-
Method Details
-
timestampPropertyName
Get the timestampPropertyName property: The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.- Returns:
- the timestampPropertyName value.
-
withTimestampPropertyName
Set the timestampPropertyName property: The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.- Parameters:
timestampPropertyName
- the timestampPropertyName value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
localTimestamp
Get the localTimestamp property: An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.- Returns:
- the localTimestamp value.
-
withLocalTimestamp
Set the localTimestamp property: An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events.- Parameters:
localTimestamp
- the localTimestamp value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
type
Get the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".- Returns:
- the type value.
-
withType
Set the type property: The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime".- Parameters:
type
- the type value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
time
Get the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.- Returns:
- the time value.
-
withTime
Set the time property: ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed.- Parameters:
time
- the time value to set.- Returns:
- the EventSourceCommonProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classResourceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-