Package com.ngrok.definitions
Class EventStream
java.lang.Object
com.ngrok.definitions.EventStream
A class encapsulating the
EventStream resource.-
Constructor Summary
ConstructorsConstructorDescriptionEventStream(String id, URI uri, OffsetDateTime createdAt, String metadata, String description, List<String> fields, String eventType, List<String> destinationIds, Double samplingRate)Creates a new instance ofEventStream. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTimestamp when the Event Stream was created, RFC 3339 format.Human-readable description of the Event Stream.A list of Event Destination IDs which should be used for this Event Stream.The protocol that determines which events will be collected.A list of protocol-specific fields you want to collect on each event.getId()Unique identifier for this Event Stream.Arbitrary user-defined machine-readable data of this Event Stream.doubleThe percentage of all events you would like to capture.getUri()URI of the Event Stream API resource.inthashCode()toString()
-
Constructor Details
-
EventStream
public EventStream(String id, URI uri, OffsetDateTime createdAt, String metadata, String description, List<String> fields, String eventType, List<String> destinationIds, Double samplingRate)Creates a new instance ofEventStream.- Parameters:
id- Unique identifier for this Event Stream.uri- URI of the Event Stream API resource.createdAt- Timestamp when the Event Stream was created, RFC 3339 format.metadata- Arbitrary user-defined machine-readable data of this Event Stream. Optional, max 4096 bytes.description- Human-readable description of the Event Stream. Optional, max 255 bytes.fields- A list of protocol-specific fields you want to collect on each event.eventType- The protocol that determines which events will be collected. Supported values aretcp_connection_closedandhttp_request_complete.destinationIds- A list of Event Destination IDs which should be used for this Event Stream. Event Streams are required to have at least one Event Destination.samplingRate- The percentage of all events you would like to capture. Valid values range from 0.01, representing 1% of all events to 1.00, representing 100% of all events.
-
-
Method Details
-
getId
Unique identifier for this Event Stream.- Returns:
- the value of the property as a
String
-
getUri
URI of the Event Stream API resource.- Returns:
- the value of the property as a
URI
-
getCreatedAt
Timestamp when the Event Stream was created, RFC 3339 format.- Returns:
- the value of the property as a
OffsetDateTime
-
getMetadata
Arbitrary user-defined machine-readable data of this Event Stream. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getDescription
Human-readable description of the Event Stream. Optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getFields
A list of protocol-specific fields you want to collect on each event. -
getEventType
The protocol that determines which events will be collected. Supported values aretcp_connection_closedandhttp_request_complete.- Returns:
- the value of the property as a
String
-
getDestinationIds
A list of Event Destination IDs which should be used for this Event Stream. Event Streams are required to have at least one Event Destination. -
getSamplingRate
public double getSamplingRate()The percentage of all events you would like to capture. Valid values range from 0.01, representing 1% of all events to 1.00, representing 100% of all events.- Returns:
- the value of the property as a
double
-
equals
-
hashCode
public int hashCode() -
toString
-