tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDbbrainSlowLogUserHostStats
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 slow_log_user_host_stats
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const test = tencentcloud.getDbbrainSlowLogUserHostStats({
endTime: "%s",
instanceId: "%s",
product: "mysql",
startTime: "%s",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
test = tencentcloud.get_dbbrain_slow_log_user_host_stats(end_time="%s",
instance_id="%s",
product="mysql",
start_time="%s")
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.GetDbbrainSlowLogUserHostStats(ctx, &tencentcloud.GetDbbrainSlowLogUserHostStatsArgs{
EndTime: "%s",
InstanceId: "%s",
Product: pulumi.StringRef("mysql"),
StartTime: "%s",
}, 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 test = Tencentcloud.GetDbbrainSlowLogUserHostStats.Invoke(new()
{
EndTime = "%s",
InstanceId = "%s",
Product = "mysql",
StartTime = "%s",
});
});
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.GetDbbrainSlowLogUserHostStatsArgs;
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 test = TencentcloudFunctions.getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs.builder()
.endTime("%s")
.instanceId("%s")
.product("mysql")
.startTime("%s")
.build());
}
}
variables:
test:
fn::invoke:
function: tencentcloud:getDbbrainSlowLogUserHostStats
arguments:
endTime: '%s'
instanceId: '%s'
product: mysql
startTime: '%s'
Using getDbbrainSlowLogUserHostStats
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 getDbbrainSlowLogUserHostStats(args: GetDbbrainSlowLogUserHostStatsArgs, opts?: InvokeOptions): Promise<GetDbbrainSlowLogUserHostStatsResult>
function getDbbrainSlowLogUserHostStatsOutput(args: GetDbbrainSlowLogUserHostStatsOutputArgs, opts?: InvokeOptions): Output<GetDbbrainSlowLogUserHostStatsResult>
def get_dbbrain_slow_log_user_host_stats(end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
md5: Optional[str] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
start_time: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbbrainSlowLogUserHostStatsResult
def get_dbbrain_slow_log_user_host_stats_output(end_time: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
md5: Optional[pulumi.Input[str]] = None,
product: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainSlowLogUserHostStatsResult]
func GetDbbrainSlowLogUserHostStats(ctx *Context, args *GetDbbrainSlowLogUserHostStatsArgs, opts ...InvokeOption) (*GetDbbrainSlowLogUserHostStatsResult, error)
func GetDbbrainSlowLogUserHostStatsOutput(ctx *Context, args *GetDbbrainSlowLogUserHostStatsOutputArgs, opts ...InvokeOption) GetDbbrainSlowLogUserHostStatsResultOutput
> Note: This function is named GetDbbrainSlowLogUserHostStats
in the Go SDK.
public static class GetDbbrainSlowLogUserHostStats
{
public static Task<GetDbbrainSlowLogUserHostStatsResult> InvokeAsync(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions? opts = null)
public static Output<GetDbbrainSlowLogUserHostStatsResult> Invoke(GetDbbrainSlowLogUserHostStatsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbbrainSlowLogUserHostStatsResult> getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions options)
public static Output<GetDbbrainSlowLogUserHostStatsResult> getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDbbrainSlowLogUserHostStats:getDbbrainSlowLogUserHostStats
arguments:
# arguments dictionary
The following arguments are supported:
- End
Time string - EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
- Instance
Id string - instance id.
- Start
Time string - Start time of the query range, time format such as: 2019-09-10 12:13:14.
- Id string
- Md5 string
- MD5 value of SOL template.
- Product string
- Types of service products, supported values:
mysql
- Cloud Database MySQL;cynosdb
- Cloud Database TDSQL-C for MySQL, defaults tomysql
. - Result
Output stringFile - Used to save results.
- End
Time string - EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
- Instance
Id string - instance id.
- Start
Time string - Start time of the query range, time format such as: 2019-09-10 12:13:14.
- Id string
- Md5 string
- MD5 value of SOL template.
- Product string
- Types of service products, supported values:
mysql
- Cloud Database MySQL;cynosdb
- Cloud Database TDSQL-C for MySQL, defaults tomysql
. - Result
Output stringFile - Used to save results.
- end
Time String - EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
- instance
Id String - instance id.
- start
Time String - Start time of the query range, time format such as: 2019-09-10 12:13:14.
- id String
- md5 String
- MD5 value of SOL template.
- product String
- Types of service products, supported values:
mysql
- Cloud Database MySQL;cynosdb
- Cloud Database TDSQL-C for MySQL, defaults tomysql
. - result
Output StringFile - Used to save results.
- end
Time string - EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
- instance
Id string - instance id.
- start
Time string - Start time of the query range, time format such as: 2019-09-10 12:13:14.
- id string
- md5 string
- MD5 value of SOL template.
- product string
- Types of service products, supported values:
mysql
- Cloud Database MySQL;cynosdb
- Cloud Database TDSQL-C for MySQL, defaults tomysql
. - result
Output stringFile - Used to save results.
- end_
time str - EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
- instance_
id str - instance id.
- start_
time str - Start time of the query range, time format such as: 2019-09-10 12:13:14.
- id str
- md5 str
- MD5 value of SOL template.
- product str
- Types of service products, supported values:
mysql
- Cloud Database MySQL;cynosdb
- Cloud Database TDSQL-C for MySQL, defaults tomysql
. - result_
output_ strfile - Used to save results.
- end
Time String - EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
- instance
Id String - instance id.
- start
Time String - Start time of the query range, time format such as: 2019-09-10 12:13:14.
- id String
- md5 String
- MD5 value of SOL template.
- product String
- Types of service products, supported values:
mysql
- Cloud Database MySQL;cynosdb
- Cloud Database TDSQL-C for MySQL, defaults tomysql
. - result
Output StringFile - Used to save results.
getDbbrainSlowLogUserHostStats Result
The following output properties are available:
- End
Time string - Id string
- Instance
Id string - Items
List<Get
Dbbrain Slow Log User Host Stats Item> - Detailed list of the slow log proportion for each source address.
- Start
Time string - Md5 string
- Product string
- Result
Output stringFile
- End
Time string - Id string
- Instance
Id string - Items
[]Get
Dbbrain Slow Log User Host Stats Item - Detailed list of the slow log proportion for each source address.
- Start
Time string - Md5 string
- Product string
- Result
Output stringFile
- end
Time String - id String
- instance
Id String - items
List<Get
Dbbrain Slow Log User Host Stats Item> - Detailed list of the slow log proportion for each source address.
- start
Time String - md5 String
- product String
- result
Output StringFile
- end
Time string - id string
- instance
Id string - items
Get
Dbbrain Slow Log User Host Stats Item[] - Detailed list of the slow log proportion for each source address.
- start
Time string - md5 string
- product string
- result
Output stringFile
- end_
time str - id str
- instance_
id str - items
Sequence[Get
Dbbrain Slow Log User Host Stats Item] - Detailed list of the slow log proportion for each source address.
- start_
time str - md5 str
- product str
- result_
output_ strfile
- end
Time String - id String
- instance
Id String - items List<Property Map>
- Detailed list of the slow log proportion for each source address.
- start
Time String - md5 String
- product String
- result
Output StringFile
Supporting Types
GetDbbrainSlowLogUserHostStatsItem
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