1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. getLogHistograms
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of tls log histograms

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.tls.getLogHistograms({
        endTime: 1768450896000,
        interval: 60000,
        query: "*",
        startTime: 1768448896000,
        topicId: "3c57a110-399a-43b3-bc3c-5d60e065239a",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.tls.get_log_histograms(end_time=1768450896000,
        interval=60000,
        query="*",
        start_time=1768448896000,
        topic_id="3c57a110-399a-43b3-bc3c-5d60e065239a")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tls.GetLogHistograms(ctx, &tls.GetLogHistogramsArgs{
    			EndTime:   1768450896000,
    			Interval:  pulumi.IntRef(60000),
    			Query:     "*",
    			StartTime: 1768448896000,
    			TopicId:   "3c57a110-399a-43b3-bc3c-5d60e065239a",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Tls.GetLogHistograms.Invoke(new()
        {
            EndTime = 1768450896000,
            Interval = 60000,
            Query = "*",
            StartTime = 1768448896000,
            TopicId = "3c57a110-399a-43b3-bc3c-5d60e065239a",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.tls.TlsFunctions;
    import com.pulumi.volcengine.tls.inputs.GetLogHistogramsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var default = TlsFunctions.getLogHistograms(GetLogHistogramsArgs.builder()
                .endTime(1768450896000)
                .interval(60000)
                .query("*")
                .startTime(1768448896000)
                .topicId("3c57a110-399a-43b3-bc3c-5d60e065239a")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:tls:getLogHistograms
          Arguments:
            endTime: 1.768450896e+12
            interval: 60000
            query: '*'
            startTime: 1.768448896e+12
            topicId: 3c57a110-399a-43b3-bc3c-5d60e065239a
    

    Using getLogHistograms

    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 getLogHistograms(args: GetLogHistogramsArgs, opts?: InvokeOptions): Promise<GetLogHistogramsResult>
    function getLogHistogramsOutput(args: GetLogHistogramsOutputArgs, opts?: InvokeOptions): Output<GetLogHistogramsResult>
    def get_log_histograms(end_time: Optional[int] = None,
                           interval: Optional[int] = None,
                           query: Optional[str] = None,
                           start_time: Optional[int] = None,
                           topic_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLogHistogramsResult
    def get_log_histograms_output(end_time: Optional[pulumi.Input[int]] = None,
                           interval: Optional[pulumi.Input[int]] = None,
                           query: Optional[pulumi.Input[str]] = None,
                           start_time: Optional[pulumi.Input[int]] = None,
                           topic_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLogHistogramsResult]
    func GetLogHistograms(ctx *Context, args *GetLogHistogramsArgs, opts ...InvokeOption) (*GetLogHistogramsResult, error)
    func GetLogHistogramsOutput(ctx *Context, args *GetLogHistogramsOutputArgs, opts ...InvokeOption) GetLogHistogramsResultOutput

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

    public static class GetLogHistograms 
    {
        public static Task<GetLogHistogramsResult> InvokeAsync(GetLogHistogramsArgs args, InvokeOptions? opts = null)
        public static Output<GetLogHistogramsResult> Invoke(GetLogHistogramsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogHistogramsResult> getLogHistograms(GetLogHistogramsArgs args, InvokeOptions options)
    public static Output<GetLogHistogramsResult> getLogHistograms(GetLogHistogramsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:tls/getLogHistograms:getLogHistograms
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTime int
    The end time.
    Query string
    The query statement.
    StartTime int
    The start time.
    TopicId string
    The topic id.
    Interval int
    The interval.
    EndTime int
    The end time.
    Query string
    The query statement.
    StartTime int
    The start time.
    TopicId string
    The topic id.
    Interval int
    The interval.
    endTime Integer
    The end time.
    query String
    The query statement.
    startTime Integer
    The start time.
    topicId String
    The topic id.
    interval Integer
    The interval.
    endTime number
    The end time.
    query string
    The query statement.
    startTime number
    The start time.
    topicId string
    The topic id.
    interval number
    The interval.
    end_time int
    The end time.
    query str
    The query statement.
    start_time int
    The start time.
    topic_id str
    The topic id.
    interval int
    The interval.
    endTime Number
    The end time.
    query String
    The query statement.
    startTime Number
    The start time.
    topicId String
    The topic id.
    interval Number
    The interval.

    getLogHistograms Result

    The following output properties are available:

    EndTime int
    The end time.
    HistogramInfos List<GetLogHistogramsHistogramInfo>
    The histogram info.
    Id string
    The provider-assigned unique ID for this managed resource.
    Query string
    ResultStatus string
    The result status.
    StartTime int
    The start time.
    TopicId string
    TotalCount int
    The total count.
    Interval int
    EndTime int
    The end time.
    HistogramInfos []GetLogHistogramsHistogramInfo
    The histogram info.
    Id string
    The provider-assigned unique ID for this managed resource.
    Query string
    ResultStatus string
    The result status.
    StartTime int
    The start time.
    TopicId string
    TotalCount int
    The total count.
    Interval int
    endTime Integer
    The end time.
    histogramInfos List<GetLogHistogramsHistogramInfo>
    The histogram info.
    id String
    The provider-assigned unique ID for this managed resource.
    query String
    resultStatus String
    The result status.
    startTime Integer
    The start time.
    topicId String
    totalCount Integer
    The total count.
    interval Integer
    endTime number
    The end time.
    histogramInfos GetLogHistogramsHistogramInfo[]
    The histogram info.
    id string
    The provider-assigned unique ID for this managed resource.
    query string
    resultStatus string
    The result status.
    startTime number
    The start time.
    topicId string
    totalCount number
    The total count.
    interval number
    end_time int
    The end time.
    histogram_infos Sequence[GetLogHistogramsHistogramInfo]
    The histogram info.
    id str
    The provider-assigned unique ID for this managed resource.
    query str
    result_status str
    The result status.
    start_time int
    The start time.
    topic_id str
    total_count int
    The total count.
    interval int
    endTime Number
    The end time.
    histogramInfos List<Property Map>
    The histogram info.
    id String
    The provider-assigned unique ID for this managed resource.
    query String
    resultStatus String
    The result status.
    startTime Number
    The start time.
    topicId String
    totalCount Number
    The total count.
    interval Number

    Supporting Types

    GetLogHistogramsHistogramInfo

    Count int
    The count.
    EndTime int
    The end time.
    ResultStatus string
    The result status.
    StartTime int
    The start time.
    Count int
    The count.
    EndTime int
    The end time.
    ResultStatus string
    The result status.
    StartTime int
    The start time.
    count Integer
    The count.
    endTime Integer
    The end time.
    resultStatus String
    The result status.
    startTime Integer
    The start time.
    count number
    The count.
    endTime number
    The end time.
    resultStatus string
    The result status.
    startTime number
    The start time.
    count int
    The count.
    end_time int
    The end time.
    result_status str
    The result status.
    start_time int
    The start time.
    count Number
    The count.
    endTime Number
    The end time.
    resultStatus String
    The result status.
    startTime Number
    The start time.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate