1. Registry
  2. Packages
  3. Signalfx Provider
  4. API Docs
  5. parseTimeRange
Viewing docs for SignalFx v7.29.0
published on Tuesday, Aug 25, 2026 by Pulumi
signalfx logo signalfx logo
Viewing docs for SignalFx v7.29.0
published on Tuesday, Aug 25, 2026 by Pulumi

    In order to make some of the time values easier to work with, this will parse the relative time signature (ie: -1h30m) and return the number of milliseconds that it represents.

    Signature

    parse_time_range(time_range string) number
    

    Using parseTimeRange

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function parseTimeRange(args: ParseTimeRangeArgs, opts?: InvokeOptions): Promise<ParseTimeRangeResult>
    function parseTimeRangeOutput(args: ParseTimeRangeOutputArgs, opts?: InvokeOutputOptions): Output<ParseTimeRangeResult>
    def parse_time_range(time_range: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> ParseTimeRangeResult
    def parse_time_range_output(time_range: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[ParseTimeRangeResult]
    func ParseTimeRange(ctx *Context, args *ParseTimeRangeArgs, opts ...InvokeOption) (*ParseTimeRangeResult, error)
    func ParseTimeRangeOutput(ctx *Context, args *ParseTimeRangeOutputArgs, opts ...InvokeOption) ParseTimeRangeResultOutput

    > Note: This function is named ParseTimeRange in the Go SDK.

    public static class ParseTimeRange 
    {
        public static Task<ParseTimeRangeResult> InvokeAsync(ParseTimeRangeArgs args, InvokeOptions? opts = null)
        public static Output<ParseTimeRangeResult> Invoke(ParseTimeRangeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ParseTimeRangeResult> parseTimeRange(ParseTimeRangeArgs args, InvokeOptions options)
    public static Output<ParseTimeRangeResult> parseTimeRange(ParseTimeRangeArgs args, InvokeOptions options)
    public static Output<ParseTimeRangeResult> parseTimeRange(ParseTimeRangeArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: signalfx:index/parseTimeRange:parseTimeRange
      arguments:
        # arguments dictionary
    data "signalfx_parse_time_range" "name" {
        # arguments
    }

    The following arguments are supported:

    TimeRange string
    Used to parse the given relative time string into a the amount of milliseconds.
    TimeRange string
    Used to parse the given relative time string into a the amount of milliseconds.
    time_range string
    Used to parse the given relative time string into a the amount of milliseconds.
    timeRange String
    Used to parse the given relative time string into a the amount of milliseconds.
    timeRange string
    Used to parse the given relative time string into a the amount of milliseconds.
    time_range str
    Used to parse the given relative time string into a the amount of milliseconds.
    timeRange String
    Used to parse the given relative time string into a the amount of milliseconds.

    parseTimeRange Result

    The following output properties are available:

    Package Details

    Repository
    SignalFx pulumi/pulumi-signalfx
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the signalfx Terraform Provider.
    signalfx logo signalfx logo
    Viewing docs for SignalFx v7.29.0
    published on Tuesday, Aug 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial