StreamScalingPolicy: { auto_scaling_policy_by_data_rate: ((target_rate_kbytes_per_sec: number, scale_factor: number, initial_segments: number) => StreamScalingPolicy); auto_scaling_policy_by_event_rate: ((target_events_per_sec: number, scale_factor: number, initial_segments: number) => StreamScalingPolicy); fixed_scaling_policy: ((initial_segments: number) => StreamScalingPolicy) }

Contains factory methods to create different StreamScalingPolicy.

Type declaration

  • auto_scaling_policy_by_data_rate: ((target_rate_kbytes_per_sec: number, scale_factor: number, initial_segments: number) => StreamScalingPolicy)
      • (target_rate_kbytes_per_sec: number, scale_factor: number, initial_segments: number): StreamScalingPolicy
      • Scale based on the rate in bytes specified in target_rate_kbytes_per_sec.

        Parameters

        • target_rate_kbytes_per_sec: number
        • scale_factor: number
        • initial_segments: number

        Returns StreamScalingPolicy

  • auto_scaling_policy_by_event_rate: ((target_events_per_sec: number, scale_factor: number, initial_segments: number) => StreamScalingPolicy)
      • (target_events_per_sec: number, scale_factor: number, initial_segments: number): StreamScalingPolicy
      • Scale based on the rate in events specified in target_events_per_sec.

        Parameters

        • target_events_per_sec: number
        • scale_factor: number
        • initial_segments: number

        Returns StreamScalingPolicy

  • fixed_scaling_policy: ((initial_segments: number) => StreamScalingPolicy)

Generated using TypeDoc