tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getDbbrainRedisTopKeyPrefixList
Explore with Pulumi AI
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.
- Instance
Id string - instance id.
- Product string
- Service product type, supported values include
redis
- cloud database Redis. - Id string
- Result
Output stringFile - Used to save results.
- 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
- Result
Output stringFile - Used to save results.
- 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
- result
Output StringFile - Used to save results.
- 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
- result
Output stringFile - 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_ strfile - Used to save results.
- 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
- result
Output StringFile - Used to save results.
getDbbrainRedisTopKeyPrefixList Result
The following output properties are available:
- Date string
- Id string
- Instance
Id string - Items
List<Get
Dbbrain Redis Top Key Prefix List Item> - list of top key prefixes.
- Product string
- Result
Output stringFile
- Date string
- Id string
- Instance
Id string - Items
[]Get
Dbbrain Redis Top Key Prefix List Item - list of top key prefixes.
- Product string
- Result
Output stringFile
- date String
- id String
- instance
Id String - items
List<Get
Dbbrain Redis Top Key Prefix List Item> - list of top key prefixes.
- product String
- result
Output StringFile
- date string
- id string
- instance
Id string - items
Get
Dbbrain Redis Top Key Prefix List Item[] - list of top key prefixes.
- product string
- result
Output stringFile
- date str
- id str
- instance_
id str - items
Sequence[Get
Dbbrain Redis Top Key Prefix List Item] - list of top key prefixes.
- product str
- result_
output_ strfile
- date String
- id String
- instance
Id String - items List<Property Map>
- list of top key prefixes.
- product String
- result
Output StringFile
Supporting Types
GetDbbrainRedisTopKeyPrefixListItem
- Ave
Element doubleSize - Average element length.
- Count double
- The number of keys.
- Item
Count double - number of elements.
- Key
Pre stringIndex - key prefix.
- Length double
- Total occupied memory (Byte).
- Max
Element doubleSize - Maximum element length.
- Ave
Element float64Size - Average element length.
- Count float64
- The number of keys.
- Item
Count float64 - number of elements.
- Key
Pre stringIndex - key prefix.
- Length float64
- Total occupied memory (Byte).
- Max
Element float64Size - Maximum element length.
- ave
Element DoubleSize - Average element length.
- count Double
- The number of keys.
- item
Count Double - number of elements.
- key
Pre StringIndex - key prefix.
- length Double
- Total occupied memory (Byte).
- max
Element DoubleSize - Maximum element length.
- ave
Element numberSize - Average element length.
- count number
- The number of keys.
- item
Count number - number of elements.
- key
Pre stringIndex - key prefix.
- length number
- Total occupied memory (Byte).
- max
Element numberSize - Maximum element length.
- ave_
element_ floatsize - Average element length.
- count float
- The number of keys.
- item_
count float - number of elements.
- key_
pre_ strindex - key prefix.
- length float
- Total occupied memory (Byte).
- max_
element_ floatsize - Maximum element length.
- ave
Element NumberSize - Average element length.
- count Number
- The number of keys.
- item
Count Number - number of elements.
- key
Pre StringIndex - key prefix.
- length Number
- Total occupied memory (Byte).
- max
Element NumberSize - Maximum element length.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack