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

tencentcloud.getRumScores

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 rum scores

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const scores = tencentcloud.getRumScores({
        endTime: "2023082215",
        isDemo: 1,
        projectId: 1,
        startTime: "2023082214",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    scores = tencentcloud.get_rum_scores(end_time="2023082215",
        is_demo=1,
        project_id=1,
        start_time="2023082214")
    
    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.GetRumScores(ctx, &tencentcloud.GetRumScoresArgs{
    			EndTime:   "2023082215",
    			IsDemo:    pulumi.Float64Ref(1),
    			ProjectId: pulumi.Float64Ref(1),
    			StartTime: "2023082214",
    		}, 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 scores = Tencentcloud.GetRumScores.Invoke(new()
        {
            EndTime = "2023082215",
            IsDemo = 1,
            ProjectId = 1,
            StartTime = "2023082214",
        });
    
    });
    
    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.GetRumScoresArgs;
    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 scores = TencentcloudFunctions.getRumScores(GetRumScoresArgs.builder()
                .endTime("2023082215")
                .isDemo(1)
                .projectId(1)
                .startTime("2023082214")
                .build());
    
        }
    }
    
    variables:
      scores:
        fn::invoke:
          function: tencentcloud:getRumScores
          arguments:
            endTime: '2023082215'
            isDemo: 1
            projectId: 1
            startTime: '2023082214'
    

    Using getRumScores

    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 getRumScores(args: GetRumScoresArgs, opts?: InvokeOptions): Promise<GetRumScoresResult>
    function getRumScoresOutput(args: GetRumScoresOutputArgs, opts?: InvokeOptions): Output<GetRumScoresResult>
    def get_rum_scores(end_time: Optional[str] = None,
                       id: Optional[str] = None,
                       is_demo: Optional[float] = None,
                       project_id: Optional[float] = None,
                       result_output_file: Optional[str] = None,
                       start_time: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRumScoresResult
    def get_rum_scores_output(end_time: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       is_demo: Optional[pulumi.Input[float]] = None,
                       project_id: Optional[pulumi.Input[float]] = None,
                       result_output_file: Optional[pulumi.Input[str]] = None,
                       start_time: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRumScoresResult]
    func GetRumScores(ctx *Context, args *GetRumScoresArgs, opts ...InvokeOption) (*GetRumScoresResult, error)
    func GetRumScoresOutput(ctx *Context, args *GetRumScoresOutputArgs, opts ...InvokeOption) GetRumScoresResultOutput

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

    public static class GetRumScores 
    {
        public static Task<GetRumScoresResult> InvokeAsync(GetRumScoresArgs args, InvokeOptions? opts = null)
        public static Output<GetRumScoresResult> Invoke(GetRumScoresInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRumScoresResult> getRumScores(GetRumScoresArgs args, InvokeOptions options)
    public static Output<GetRumScoresResult> getRumScores(GetRumScoresArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getRumScores:getRumScores
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTime string
    End time.
    StartTime string
    Start time.
    Id string
    IsDemo double
    Get data from demo. This parameter is deprecated.
    ProjectId double
    Project ID.
    ResultOutputFile string
    Used to save results.
    EndTime string
    End time.
    StartTime string
    Start time.
    Id string
    IsDemo float64
    Get data from demo. This parameter is deprecated.
    ProjectId float64
    Project ID.
    ResultOutputFile string
    Used to save results.
    endTime String
    End time.
    startTime String
    Start time.
    id String
    isDemo Double
    Get data from demo. This parameter is deprecated.
    projectId Double
    Project ID.
    resultOutputFile String
    Used to save results.
    endTime string
    End time.
    startTime string
    Start time.
    id string
    isDemo number
    Get data from demo. This parameter is deprecated.
    projectId number
    Project ID.
    resultOutputFile string
    Used to save results.
    end_time str
    End time.
    start_time str
    Start time.
    id str
    is_demo float
    Get data from demo. This parameter is deprecated.
    project_id float
    Project ID.
    result_output_file str
    Used to save results.
    endTime String
    End time.
    startTime String
    Start time.
    id String
    isDemo Number
    Get data from demo. This parameter is deprecated.
    projectId Number
    Project ID.
    resultOutputFile String
    Used to save results.

    getRumScores Result

    The following output properties are available:

    EndTime string
    Id string
    ScoreSets List<GetRumScoresScoreSet>
    Score list.
    StartTime string
    IsDemo double
    ProjectId double
    Project ID.
    ResultOutputFile string
    EndTime string
    Id string
    ScoreSets []GetRumScoresScoreSet
    Score list.
    StartTime string
    IsDemo float64
    ProjectId float64
    Project ID.
    ResultOutputFile string
    endTime String
    id String
    scoreSets List<GetRumScoresScoreSet>
    Score list.
    startTime String
    isDemo Double
    projectId Double
    Project ID.
    resultOutputFile String
    endTime string
    id string
    scoreSets GetRumScoresScoreSet[]
    Score list.
    startTime string
    isDemo number
    projectId number
    Project ID.
    resultOutputFile string
    endTime String
    id String
    scoreSets List<Property Map>
    Score list.
    startTime String
    isDemo Number
    projectId Number
    Project ID.
    resultOutputFile String

    Supporting Types

    GetRumScoresScoreSet

    ApiDuration string
    The mean duration of api request.
    ApiFail string
    The number of failed api.
    ApiNum string
    The number of all request api.
    CreateTime string
    Project record created time.
    PageDuration string
    The duration of page load.
    PageError string
    The number of exception which happened on page.
    PagePv string
    Pv.
    PageUv string
    User view.
    ProjectId double
    Project ID.
    RecordNum double
    The number of record.
    Score string
    The score of project.
    StaticDuration string
    Duration.
    StaticFail string
    The number of failed request static resource.
    StaticNum string
    The number of static resource on page.
    ApiDuration string
    The mean duration of api request.
    ApiFail string
    The number of failed api.
    ApiNum string
    The number of all request api.
    CreateTime string
    Project record created time.
    PageDuration string
    The duration of page load.
    PageError string
    The number of exception which happened on page.
    PagePv string
    Pv.
    PageUv string
    User view.
    ProjectId float64
    Project ID.
    RecordNum float64
    The number of record.
    Score string
    The score of project.
    StaticDuration string
    Duration.
    StaticFail string
    The number of failed request static resource.
    StaticNum string
    The number of static resource on page.
    apiDuration String
    The mean duration of api request.
    apiFail String
    The number of failed api.
    apiNum String
    The number of all request api.
    createTime String
    Project record created time.
    pageDuration String
    The duration of page load.
    pageError String
    The number of exception which happened on page.
    pagePv String
    Pv.
    pageUv String
    User view.
    projectId Double
    Project ID.
    recordNum Double
    The number of record.
    score String
    The score of project.
    staticDuration String
    Duration.
    staticFail String
    The number of failed request static resource.
    staticNum String
    The number of static resource on page.
    apiDuration string
    The mean duration of api request.
    apiFail string
    The number of failed api.
    apiNum string
    The number of all request api.
    createTime string
    Project record created time.
    pageDuration string
    The duration of page load.
    pageError string
    The number of exception which happened on page.
    pagePv string
    Pv.
    pageUv string
    User view.
    projectId number
    Project ID.
    recordNum number
    The number of record.
    score string
    The score of project.
    staticDuration string
    Duration.
    staticFail string
    The number of failed request static resource.
    staticNum string
    The number of static resource on page.
    api_duration str
    The mean duration of api request.
    api_fail str
    The number of failed api.
    api_num str
    The number of all request api.
    create_time str
    Project record created time.
    page_duration str
    The duration of page load.
    page_error str
    The number of exception which happened on page.
    page_pv str
    Pv.
    page_uv str
    User view.
    project_id float
    Project ID.
    record_num float
    The number of record.
    score str
    The score of project.
    static_duration str
    Duration.
    static_fail str
    The number of failed request static resource.
    static_num str
    The number of static resource on page.
    apiDuration String
    The mean duration of api request.
    apiFail String
    The number of failed api.
    apiNum String
    The number of all request api.
    createTime String
    Project record created time.
    pageDuration String
    The duration of page load.
    pageError String
    The number of exception which happened on page.
    pagePv String
    Pv.
    pageUv String
    User view.
    projectId Number
    Project ID.
    recordNum Number
    The number of record.
    score String
    The score of project.
    staticDuration String
    Duration.
    staticFail String
    The number of failed request static resource.
    staticNum String
    The number of static resource on page.

    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