tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDbbrainRedisTopBigKeys
Explore with Pulumi AI
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.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include
redis
- cloud database Redis. - Id string
- Key
Type string - Key type filter condition, the default is no filter, the value includes
string
,list
,set
,hash
,sortedset
,stream
. - Result
Output stringFile - Used to save results.
- Sort
By string - Sorting field, the value includes
Capacity
- memory,ItemCount
- number of elements, the default isCapacity
.
- Date string
- Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include
redis
- cloud database Redis. - Id string
- Key
Type string - Key type filter condition, the default is no filter, the value includes
string
,list
,set
,hash
,sortedset
,stream
. - Result
Output stringFile - Used to save results.
- Sort
By string - Sorting field, the value includes
Capacity
- memory,ItemCount
- number of elements, the default isCapacity
.
- date String
- Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
- instance
Id String - instance id.
- product String
- Service product type, supported values include
redis
- cloud database Redis. - id String
- key
Type String - Key type filter condition, the default is no filter, the value includes
string
,list
,set
,hash
,sortedset
,stream
. - result
Output StringFile - Used to save results.
- sort
By String - Sorting field, the value includes
Capacity
- memory,ItemCount
- number of elements, the default isCapacity
.
- date string
- Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
- instance
Id string - instance id.
- product string
- Service product type, supported values include
redis
- cloud database Redis. - id string
- key
Type string - Key type filter condition, the default is no filter, the value includes
string
,list
,set
,hash
,sortedset
,stream
. - result
Output stringFile - Used to save results.
- sort
By string - Sorting field, the value includes
Capacity
- memory,ItemCount
- number of elements, the default isCapacity
.
- 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_ strfile - Used to save results.
- sort_
by str - Sorting field, the value includes
Capacity
- memory,ItemCount
- number of elements, the default isCapacity
.
- date String
- Query date, such as 2021-05-27, the earliest date can be the previous 30 days.
- instance
Id String - instance id.
- product String
- Service product type, supported values include
redis
- cloud database Redis. - id String
- key
Type String - Key type filter condition, the default is no filter, the value includes
string
,list
,set
,hash
,sortedset
,stream
. - result
Output StringFile - Used to save results.
- sort
By String - Sorting field, the value includes
Capacity
- memory,ItemCount
- number of elements, the default isCapacity
.
getDbbrainRedisTopBigKeys Result
The following output properties are available:
- Date string
- Id string
- Instance
Id string - Product string
- Top
Keys List<GetDbbrain Redis Top Big Keys Top Key> - list of top keys.
- Key
Type string - Result
Output stringFile - Sort
By string
- Date string
- Id string
- Instance
Id string - Product string
- Top
Keys []GetDbbrain Redis Top Big Keys Top Key - list of top keys.
- Key
Type string - Result
Output stringFile - Sort
By string
- date String
- id String
- instance
Id String - product String
- top
Keys List<GetDbbrain Redis Top Big Keys Top Key> - list of top keys.
- key
Type String - result
Output StringFile - sort
By String
- date string
- id string
- instance
Id string - product string
- top
Keys GetDbbrain Redis Top Big Keys Top Key[] - list of top keys.
- key
Type string - result
Output stringFile - sort
By string
- date str
- id str
- instance_
id str - product str
- top_
keys Sequence[GetDbbrain Redis Top Big Keys Top Key] - list of top keys.
- key_
type str - result_
output_ strfile - sort_
by str
- date String
- id String
- instance
Id String - product String
- top
Keys List<Property Map> - list of top keys.
- key
Type String - result
Output StringFile - sort
By String
Supporting Types
GetDbbrainRedisTopBigKeysTopKey
- Encoding string
- key encoding method.
- Expire
Time double - Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
- Item
Count double - number of elements.
- Key string
- key name.
- Length double
- Key memory size, unit Byte.
- Max
Element doubleSize - Maximum element length.
- Type string
- key type.
- Encoding string
- key encoding method.
- Expire
Time float64 - Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
- Item
Count float64 - number of elements.
- Key string
- key name.
- Length float64
- Key memory size, unit Byte.
- Max
Element float64Size - Maximum element length.
- Type string
- key type.
- encoding String
- key encoding method.
- expire
Time Double - Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
- item
Count Double - number of elements.
- key String
- key name.
- length Double
- Key memory size, unit Byte.
- max
Element DoubleSize - Maximum element length.
- type String
- key type.
- encoding string
- key encoding method.
- expire
Time number - Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
- item
Count number - number of elements.
- key string
- key name.
- length number
- Key memory size, unit Byte.
- max
Element numberSize - 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_ floatsize - Maximum element length.
- type str
- key type.
- encoding String
- key encoding method.
- expire
Time Number - Key expiration timestamp (in milliseconds), 0 means no expiration time is set.
- item
Count Number - number of elements.
- key String
- key name.
- length Number
- Key memory size, unit Byte.
- max
Element NumberSize - 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack