1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDbbrainRedisTopBigKeys
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getDbbrainRedisTopBigKeys

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of dbbrain redis_top_big_keys

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const redisTopBigKeys = tencentcloud.getDbbrainRedisTopBigKeys({
        instanceId: local.redis_id,
        date: "%s",
        product: "redis",
        sortBy: "Capacity",
        keyType: "string",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    redis_top_big_keys = tencentcloud.get_dbbrain_redis_top_big_keys(instance_id=local["redis_id"],
        date="%s",
        product="redis",
        sort_by="Capacity",
        key_type="string")
    
    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.GetDbbrainRedisTopBigKeys(ctx, &tencentcloud.GetDbbrainRedisTopBigKeysArgs{
    			InstanceId: local.Redis_id,
    			Date:       "%s",
    			Product:    "redis",
    			SortBy:     pulumi.StringRef("Capacity"),
    			KeyType:    pulumi.StringRef("string"),
    		}, 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 redisTopBigKeys = Tencentcloud.GetDbbrainRedisTopBigKeys.Invoke(new()
        {
            InstanceId = local.Redis_id,
            Date = "%s",
            Product = "redis",
            SortBy = "Capacity",
            KeyType = "string",
        });
    
    });
    
    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.GetDbbrainRedisTopBigKeysArgs;
    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 redisTopBigKeys = TencentcloudFunctions.getDbbrainRedisTopBigKeys(GetDbbrainRedisTopBigKeysArgs.builder()
                .instanceId(local.redis_id())
                .date("%s")
                .product("redis")
                .sortBy("Capacity")
                .keyType("string")
                .build());
    
        }
    }
    
    variables:
      redisTopBigKeys:
        fn::invoke:
          function: tencentcloud:getDbbrainRedisTopBigKeys
          arguments:
            instanceId: ${local.redis_id}
            date: '%s'
            product: redis
            sortBy: Capacity
            keyType: string
    

    Using getDbbrainRedisTopBigKeys

    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 getDbbrainRedisTopBigKeys(args: GetDbbrainRedisTopBigKeysArgs, opts?: InvokeOptions): Promise<GetDbbrainRedisTopBigKeysResult>
    function getDbbrainRedisTopBigKeysOutput(args: GetDbbrainRedisTopBigKeysOutputArgs, opts?: InvokeOptions): Output<GetDbbrainRedisTopBigKeysResult>
    def get_dbbrain_redis_top_big_keys(date: Optional[str] = None,
                                       id: Optional[str] = None,
                                       instance_id: Optional[str] = None,
                                       key_type: Optional[str] = None,
                                       product: Optional[str] = None,
                                       result_output_file: Optional[str] = None,
                                       sort_by: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetDbbrainRedisTopBigKeysResult
    def get_dbbrain_redis_top_big_keys_output(date: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       instance_id: Optional[pulumi.Input[str]] = None,
                                       key_type: Optional[pulumi.Input[str]] = None,
                                       product: Optional[pulumi.Input[str]] = None,
                                       result_output_file: Optional[pulumi.Input[str]] = None,
                                       sort_by: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainRedisTopBigKeysResult]
    func GetDbbrainRedisTopBigKeys(ctx *Context, args *GetDbbrainRedisTopBigKeysArgs, opts ...InvokeOption) (*GetDbbrainRedisTopBigKeysResult, error)
    func GetDbbrainRedisTopBigKeysOutput(ctx *Context, args *GetDbbrainRedisTopBigKeysOutputArgs, opts ...InvokeOption) GetDbbrainRedisTopBigKeysResultOutput

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

    public static class GetDbbrainRedisTopBigKeys 
    {
        public static Task<GetDbbrainRedisTopBigKeysResult> InvokeAsync(GetDbbrainRedisTopBigKeysArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainRedisTopBigKeysResult> Invoke(GetDbbrainRedisTopBigKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainRedisTopBigKeysResult> getDbbrainRedisTopBigKeys(GetDbbrainRedisTopBigKeysArgs args, InvokeOptions options)
    public static Output<GetDbbrainRedisTopBigKeysResult> getDbbrainRedisTopBigKeys(GetDbbrainRedisTopBigKeysArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainRedisTopBigKeys:getDbbrainRedisTopBigKeys
      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
    KeyType string
    Key type filter condition, the default is no filter, the value includes string, list, set, hash, sortedset, stream.
    ResultOutputFile string
    Used to save results.
    SortBy string
    Sorting field, the value includes Capacity - memory, ItemCount - number of elements, the default is Capacity.
    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
    KeyType string
    Key type filter condition, the default is no filter, the value includes string, list, set, hash, sortedset, stream.
    ResultOutputFile string
    Used to save results.
    SortBy string
    Sorting field, the value includes Capacity - memory, ItemCount - number of elements, the default is Capacity.
    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
    keyType String
    Key type filter condition, the default is no filter, the value includes string, list, set, hash, sortedset, stream.
    resultOutputFile String
    Used to save results.
    sortBy String
    Sorting field, the value includes Capacity - memory, ItemCount - number of elements, the default is Capacity.
    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
    keyType string
    Key type filter condition, the default is no filter, the value includes string, list, set, hash, sortedset, stream.
    resultOutputFile string
    Used to save results.
    sortBy string
    Sorting field, the value includes Capacity - memory, ItemCount - number of elements, the default is Capacity.
    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
    key_type str
    Key type filter condition, the default is no filter, the value includes string, list, set, hash, sortedset, stream.
    result_output_file str
    Used to save results.
    sort_by str
    Sorting field, the value includes Capacity - memory, ItemCount - number of elements, the default is Capacity.
    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
    keyType String
    Key type filter condition, the default is no filter, the value includes string, list, set, hash, sortedset, stream.
    resultOutputFile String
    Used to save results.
    sortBy String
    Sorting field, the value includes Capacity - memory, ItemCount - number of elements, the default is Capacity.

    getDbbrainRedisTopBigKeys Result

    The following output properties are available:

    Date string
    Id string
    InstanceId string
    Product string
    TopKeys List<GetDbbrainRedisTopBigKeysTopKey>
    list of top keys.
    KeyType string
    ResultOutputFile string
    SortBy string
    Date string
    Id string
    InstanceId string
    Product string
    TopKeys []GetDbbrainRedisTopBigKeysTopKey
    list of top keys.
    KeyType string
    ResultOutputFile string
    SortBy string
    date String
    id String
    instanceId String
    product String
    topKeys List<GetDbbrainRedisTopBigKeysTopKey>
    list of top keys.
    keyType String
    resultOutputFile String
    sortBy String
    date string
    id string
    instanceId string
    product string
    topKeys GetDbbrainRedisTopBigKeysTopKey[]
    list of top keys.
    keyType string
    resultOutputFile string
    sortBy string
    date String
    id String
    instanceId String
    product String
    topKeys List<Property Map>
    list of top keys.
    keyType String
    resultOutputFile String
    sortBy String

    Supporting Types

    GetDbbrainRedisTopBigKeysTopKey

    Encoding string
    key encoding method.
    ExpireTime double
    Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
    ItemCount double
    number of elements.
    Key string
    key name.
    Length double
    Key memory size, unit Byte.
    MaxElementSize double
    Maximum element length.
    Type string
    key type.
    Encoding string
    key encoding method.
    ExpireTime float64
    Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
    ItemCount float64
    number of elements.
    Key string
    key name.
    Length float64
    Key memory size, unit Byte.
    MaxElementSize float64
    Maximum element length.
    Type string
    key type.
    encoding String
    key encoding method.
    expireTime Double
    Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
    itemCount Double
    number of elements.
    key String
    key name.
    length Double
    Key memory size, unit Byte.
    maxElementSize Double
    Maximum element length.
    type String
    key type.
    encoding string
    key encoding method.
    expireTime number
    Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
    itemCount number
    number of elements.
    key string
    key name.
    length number
    Key memory size, unit Byte.
    maxElementSize number
    Maximum element length.
    type string
    key type.
    encoding str
    key encoding method.
    expire_time float
    Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
    item_count float
    number of elements.
    key str
    key name.
    length float
    Key memory size, unit Byte.
    max_element_size float
    Maximum element length.
    type str
    key type.
    encoding String
    key encoding method.
    expireTime Number
    Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
    itemCount Number
    number of elements.
    key String
    key name.
    length Number
    Key memory size, unit Byte.
    maxElementSize Number
    Maximum element length.
    type String
    key type.

    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.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack