1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDbbrainRedisTopKeyPrefixList
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getDbbrainRedisTopKeyPrefixList

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

    Use this data source to query detailed information of dbbrain redis_top_key_prefix_list

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const redisTopKeyPrefixList = tencentcloud.getDbbrainRedisTopKeyPrefixList({
        instanceId: local.redis_id,
        date: "%s",
        product: "redis",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    redis_top_key_prefix_list = tencentcloud.get_dbbrain_redis_top_key_prefix_list(instance_id=local["redis_id"],
        date="%s",
        product="redis")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetDbbrainRedisTopKeyPrefixList(ctx, &tencentcloud.GetDbbrainRedisTopKeyPrefixListArgs{
    			InstanceId: local.Redis_id,
    			Date:       "%s",
    			Product:    "redis",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var redisTopKeyPrefixList = Tencentcloud.GetDbbrainRedisTopKeyPrefixList.Invoke(new()
        {
            InstanceId = local.Redis_id,
            Date = "%s",
            Product = "redis",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetDbbrainRedisTopKeyPrefixListArgs;
    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 redisTopKeyPrefixList = TencentcloudFunctions.getDbbrainRedisTopKeyPrefixList(GetDbbrainRedisTopKeyPrefixListArgs.builder()
                .instanceId(local.redis_id())
                .date("%s")
                .product("redis")
                .build());
    
        }
    }
    
    variables:
      redisTopKeyPrefixList:
        fn::invoke:
          function: tencentcloud:getDbbrainRedisTopKeyPrefixList
          arguments:
            instanceId: ${local.redis_id}
            date: '%s'
            product: redis
    

    Using getDbbrainRedisTopKeyPrefixList

    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 getDbbrainRedisTopKeyPrefixList(args: GetDbbrainRedisTopKeyPrefixListArgs, opts?: InvokeOptions): Promise<GetDbbrainRedisTopKeyPrefixListResult>
    function getDbbrainRedisTopKeyPrefixListOutput(args: GetDbbrainRedisTopKeyPrefixListOutputArgs, opts?: InvokeOptions): Output<GetDbbrainRedisTopKeyPrefixListResult>
    def get_dbbrain_redis_top_key_prefix_list(date: Optional[str] = None,
                                              id: Optional[str] = None,
                                              instance_id: Optional[str] = None,
                                              product: Optional[str] = None,
                                              result_output_file: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetDbbrainRedisTopKeyPrefixListResult
    def get_dbbrain_redis_top_key_prefix_list_output(date: Optional[pulumi.Input[str]] = None,
                                              id: Optional[pulumi.Input[str]] = None,
                                              instance_id: Optional[pulumi.Input[str]] = None,
                                              product: Optional[pulumi.Input[str]] = None,
                                              result_output_file: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainRedisTopKeyPrefixListResult]
    func GetDbbrainRedisTopKeyPrefixList(ctx *Context, args *GetDbbrainRedisTopKeyPrefixListArgs, opts ...InvokeOption) (*GetDbbrainRedisTopKeyPrefixListResult, error)
    func GetDbbrainRedisTopKeyPrefixListOutput(ctx *Context, args *GetDbbrainRedisTopKeyPrefixListOutputArgs, opts ...InvokeOption) GetDbbrainRedisTopKeyPrefixListResultOutput

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

    public static class GetDbbrainRedisTopKeyPrefixList 
    {
        public static Task<GetDbbrainRedisTopKeyPrefixListResult> InvokeAsync(GetDbbrainRedisTopKeyPrefixListArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainRedisTopKeyPrefixListResult> Invoke(GetDbbrainRedisTopKeyPrefixListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainRedisTopKeyPrefixListResult> getDbbrainRedisTopKeyPrefixList(GetDbbrainRedisTopKeyPrefixListArgs args, InvokeOptions options)
    public static Output<GetDbbrainRedisTopKeyPrefixListResult> getDbbrainRedisTopKeyPrefixList(GetDbbrainRedisTopKeyPrefixListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainRedisTopKeyPrefixList:getDbbrainRedisTopKeyPrefixList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Date string
    Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
    InstanceId string
    instance id.
    Product string
    Service product type, supported values include redis - cloud database Redis.
    Id string
    ResultOutputFile string
    Used to save results.
    Date string
    Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
    InstanceId string
    instance id.
    Product string
    Service product type, supported values include redis - cloud database Redis.
    Id string
    ResultOutputFile string
    Used to save results.
    date String
    Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
    instanceId String
    instance id.
    product String
    Service product type, supported values include redis - cloud database Redis.
    id String
    resultOutputFile String
    Used to save results.
    date string
    Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
    instanceId string
    instance id.
    product string
    Service product type, supported values include redis - cloud database Redis.
    id string
    resultOutputFile string
    Used to save results.
    date str
    Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
    instance_id str
    instance id.
    product str
    Service product type, supported values include redis - cloud database Redis.
    id str
    result_output_file str
    Used to save results.
    date String
    Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
    instanceId String
    instance id.
    product String
    Service product type, supported values include redis - cloud database Redis.
    id String
    resultOutputFile String
    Used to save results.

    getDbbrainRedisTopKeyPrefixList Result

    The following output properties are available:

    Date string
    Id string
    InstanceId string
    Items List<GetDbbrainRedisTopKeyPrefixListItem>
    list of top key prefixes.
    Product string
    ResultOutputFile string
    Date string
    Id string
    InstanceId string
    Items []GetDbbrainRedisTopKeyPrefixListItem
    list of top key prefixes.
    Product string
    ResultOutputFile string
    date String
    id String
    instanceId String
    items List<GetDbbrainRedisTopKeyPrefixListItem>
    list of top key prefixes.
    product String
    resultOutputFile String
    date string
    id string
    instanceId string
    items GetDbbrainRedisTopKeyPrefixListItem[]
    list of top key prefixes.
    product string
    resultOutputFile string
    date String
    id String
    instanceId String
    items List<Property Map>
    list of top key prefixes.
    product String
    resultOutputFile String

    Supporting Types

    GetDbbrainRedisTopKeyPrefixListItem

    AveElementSize double
    Average element length.
    Count double
    The number of keys.
    ItemCount double
    number of elements.
    KeyPreIndex string
    key prefix.
    Length double
    Total occupied memory (Byte).
    MaxElementSize double
    Maximum element length.
    AveElementSize float64
    Average element length.
    Count float64
    The number of keys.
    ItemCount float64
    number of elements.
    KeyPreIndex string
    key prefix.
    Length float64
    Total occupied memory (Byte).
    MaxElementSize float64
    Maximum element length.
    aveElementSize Double
    Average element length.
    count Double
    The number of keys.
    itemCount Double
    number of elements.
    keyPreIndex String
    key prefix.
    length Double
    Total occupied memory (Byte).
    maxElementSize Double
    Maximum element length.
    aveElementSize number
    Average element length.
    count number
    The number of keys.
    itemCount number
    number of elements.
    keyPreIndex string
    key prefix.
    length number
    Total occupied memory (Byte).
    maxElementSize number
    Maximum element length.
    ave_element_size float
    Average element length.
    count float
    The number of keys.
    item_count float
    number of elements.
    key_pre_index str
    key prefix.
    length float
    Total occupied memory (Byte).
    max_element_size float
    Maximum element length.
    aveElementSize Number
    Average element length.
    count Number
    The number of keys.
    itemCount Number
    number of elements.
    keyPreIndex String
    key prefix.
    length Number
    Total occupied memory (Byte).
    maxElementSize Number
    Maximum element length.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack