Show / Hide Table of Contents

Class CreateStreamDetails

Object used to create a stream.

Inheritance
object
CreateStreamDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.StreamingService.Models
Assembly: OCI.DotNetSDK.Streaming.dll
Syntax
public class CreateStreamDetails

Properties

CompartmentId

Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment that contains the stream.

DefinedTags

Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only. For more information, see Resource Tags.
Example: {"Department": "Finance"}

Name

Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type Description
string

The name of the stream. Avoid entering confidential information.
Example: TelemetryEvents

Remarks

Required

Partitions

Declaration
[Required(ErrorMessage = "Partitions is required.")]
[JsonProperty(PropertyName = "partitions")]
public int? Partitions { get; set; }
Property Value
Type Description
int?

The number of partitions in the stream.

Remarks

Required

RetentionInHours

Declaration
[JsonProperty(PropertyName = "retentionInHours")]
public int? RetentionInHours { get; set; }
Property Value
Type Description
int?

The retention period of the stream, in hours. Accepted values are between 24 and 168 (7 days). If not specified, the stream will have a retention period of 24 hours.

StreamPoolId

Declaration
[JsonProperty(PropertyName = "streamPoolId")]
public string StreamPoolId { get; set; }
Property Value
Type Description
string

The OCID of the stream pool that contains the stream.

In this article
Back to top