1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ApmTraces
  5. getQueryQuickPicks
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.ApmTraces.getQueryQuickPicks

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Query Quick Picks in Oracle Cloud Infrastructure Apm Traces service.

    Returns a list of predefined Quick Pick queries intended to assist the user to choose a query to run. There is no sorting applied on the results.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testQueryQuickPicks = oci.ApmTraces.getQueryQuickPicks({
        apmDomainId: testApmDomain.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_query_quick_picks = oci.ApmTraces.get_query_quick_picks(apm_domain_id=test_apm_domain["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ApmTraces"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ApmTraces.GetQueryQuickPicks(ctx, &apmtraces.GetQueryQuickPicksArgs{
    			ApmDomainId: testApmDomain.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testQueryQuickPicks = Oci.ApmTraces.GetQueryQuickPicks.Invoke(new()
        {
            ApmDomainId = testApmDomain.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ApmTraces.ApmTracesFunctions;
    import com.pulumi.oci.ApmTraces.inputs.GetQueryQuickPicksArgs;
    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 testQueryQuickPicks = ApmTracesFunctions.getQueryQuickPicks(GetQueryQuickPicksArgs.builder()
                .apmDomainId(testApmDomain.id())
                .build());
    
        }
    }
    
    variables:
      testQueryQuickPicks:
        fn::invoke:
          Function: oci:ApmTraces:getQueryQuickPicks
          Arguments:
            apmDomainId: ${testApmDomain.id}
    

    Using getQueryQuickPicks

    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 getQueryQuickPicks(args: GetQueryQuickPicksArgs, opts?: InvokeOptions): Promise<GetQueryQuickPicksResult>
    function getQueryQuickPicksOutput(args: GetQueryQuickPicksOutputArgs, opts?: InvokeOptions): Output<GetQueryQuickPicksResult>
    def get_query_quick_picks(apm_domain_id: Optional[str] = None,
                              filters: Optional[Sequence[_apmtraces.GetQueryQuickPicksFilter]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetQueryQuickPicksResult
    def get_query_quick_picks_output(apm_domain_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_apmtraces.GetQueryQuickPicksFilterArgs]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetQueryQuickPicksResult]
    func GetQueryQuickPicks(ctx *Context, args *GetQueryQuickPicksArgs, opts ...InvokeOption) (*GetQueryQuickPicksResult, error)
    func GetQueryQuickPicksOutput(ctx *Context, args *GetQueryQuickPicksOutputArgs, opts ...InvokeOption) GetQueryQuickPicksResultOutput

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

    public static class GetQueryQuickPicks 
    {
        public static Task<GetQueryQuickPicksResult> InvokeAsync(GetQueryQuickPicksArgs args, InvokeOptions? opts = null)
        public static Output<GetQueryQuickPicksResult> Invoke(GetQueryQuickPicksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQueryQuickPicksResult> getQueryQuickPicks(GetQueryQuickPicksArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ApmTraces/getQueryQuickPicks:getQueryQuickPicks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ApmDomainId string
    The APM Domain ID for the intended request.
    Filters List<GetQueryQuickPicksFilter>
    ApmDomainId string
    The APM Domain ID for the intended request.
    Filters []GetQueryQuickPicksFilter
    apmDomainId String
    The APM Domain ID for the intended request.
    filters List<GetQueryQuickPicksFilter>
    apmDomainId string
    The APM Domain ID for the intended request.
    filters GetQueryQuickPicksFilter[]
    apm_domain_id str
    The APM Domain ID for the intended request.
    filters Sequence[apmtraces.GetQueryQuickPicksFilter]
    apmDomainId String
    The APM Domain ID for the intended request.
    filters List<Property Map>

    getQueryQuickPicks Result

    The following output properties are available:

    ApmDomainId string
    Id string
    The provider-assigned unique ID for this managed resource.
    QuickPicks List<GetQueryQuickPicksQuickPick>
    The list of quick_picks.
    Filters List<GetQueryQuickPicksFilter>
    ApmDomainId string
    Id string
    The provider-assigned unique ID for this managed resource.
    QuickPicks []GetQueryQuickPicksQuickPick
    The list of quick_picks.
    Filters []GetQueryQuickPicksFilter
    apmDomainId String
    id String
    The provider-assigned unique ID for this managed resource.
    quickPicks List<GetQueryQuickPicksQuickPick>
    The list of quick_picks.
    filters List<GetQueryQuickPicksFilter>
    apmDomainId string
    id string
    The provider-assigned unique ID for this managed resource.
    quickPicks GetQueryQuickPicksQuickPick[]
    The list of quick_picks.
    filters GetQueryQuickPicksFilter[]
    apm_domain_id str
    id str
    The provider-assigned unique ID for this managed resource.
    quick_picks Sequence[apmtraces.GetQueryQuickPicksQuickPick]
    The list of quick_picks.
    filters Sequence[apmtraces.GetQueryQuickPicksFilter]
    apmDomainId String
    id String
    The provider-assigned unique ID for this managed resource.
    quickPicks List<Property Map>
    The list of quick_picks.
    filters List<Property Map>

    Supporting Types

    GetQueryQuickPicksFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetQueryQuickPicksQuickPick

    QuickPickName string
    Quick Pick name for the query.
    QuickPickQuery string
    Query for the Quick Pick.
    QuickPickName string
    Quick Pick name for the query.
    QuickPickQuery string
    Query for the Quick Pick.
    quickPickName String
    Quick Pick name for the query.
    quickPickQuery String
    Query for the Quick Pick.
    quickPickName string
    Quick Pick name for the query.
    quickPickQuery string
    Query for the Quick Pick.
    quick_pick_name str
    Quick Pick name for the query.
    quick_pick_query str
    Query for the Quick Pick.
    quickPickName String
    Quick Pick name for the query.
    quickPickQuery String
    Query for the Quick Pick.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi