1. Packages
  2. Snowflake Provider
  3. API Docs
  4. getResourceMonitors
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

snowflake.getResourceMonitors

Explore with Pulumi AI

snowflake logo
Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi

    !> V1 release candidate This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.

    Datasource used to get details of filtered resource monitors. Filtering is aligned with the current possibilities for SHOW RESOURCE MONITORS query (like is supported). The results of SHOW is encapsulated in show_output collection.

    Using getResourceMonitors

    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 getResourceMonitors(args: GetResourceMonitorsArgs, opts?: InvokeOptions): Promise<GetResourceMonitorsResult>
    function getResourceMonitorsOutput(args: GetResourceMonitorsOutputArgs, opts?: InvokeOptions): Output<GetResourceMonitorsResult>
    def get_resource_monitors(like: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetResourceMonitorsResult
    def get_resource_monitors_output(like: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetResourceMonitorsResult]
    func GetResourceMonitors(ctx *Context, args *GetResourceMonitorsArgs, opts ...InvokeOption) (*GetResourceMonitorsResult, error)
    func GetResourceMonitorsOutput(ctx *Context, args *GetResourceMonitorsOutputArgs, opts ...InvokeOption) GetResourceMonitorsResultOutput

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

    public static class GetResourceMonitors 
    {
        public static Task<GetResourceMonitorsResult> InvokeAsync(GetResourceMonitorsArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceMonitorsResult> Invoke(GetResourceMonitorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceMonitorsResult> getResourceMonitors(GetResourceMonitorsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: snowflake:index/getResourceMonitors:getResourceMonitors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).

    getResourceMonitors Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceMonitors List<GetResourceMonitorsResourceMonitor>
    Holds the aggregated output of all resource monitor details queries.
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceMonitors []GetResourceMonitorsResourceMonitor
    Holds the aggregated output of all resource monitor details queries.
    Like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    id String
    The provider-assigned unique ID for this managed resource.
    resourceMonitors List<GetResourceMonitorsResourceMonitor>
    Holds the aggregated output of all resource monitor details queries.
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    id string
    The provider-assigned unique ID for this managed resource.
    resourceMonitors GetResourceMonitorsResourceMonitor[]
    Holds the aggregated output of all resource monitor details queries.
    like string
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    id str
    The provider-assigned unique ID for this managed resource.
    resource_monitors Sequence[GetResourceMonitorsResourceMonitor]
    Holds the aggregated output of all resource monitor details queries.
    like str
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).
    id String
    The provider-assigned unique ID for this managed resource.
    resourceMonitors List<Property Map>
    Holds the aggregated output of all resource monitor details queries.
    like String
    Filters the output with case-insensitive pattern, with support for SQL wildcard characters (% and _).

    Supporting Types

    GetResourceMonitorsResourceMonitor

    ShowOutputs List<GetResourceMonitorsResourceMonitorShowOutput>
    Holds the output of SHOW RESOURCE MONITORS.
    ShowOutputs []GetResourceMonitorsResourceMonitorShowOutput
    Holds the output of SHOW RESOURCE MONITORS.
    showOutputs List<GetResourceMonitorsResourceMonitorShowOutput>
    Holds the output of SHOW RESOURCE MONITORS.
    showOutputs GetResourceMonitorsResourceMonitorShowOutput[]
    Holds the output of SHOW RESOURCE MONITORS.
    show_outputs Sequence[GetResourceMonitorsResourceMonitorShowOutput]
    Holds the output of SHOW RESOURCE MONITORS.
    showOutputs List<Property Map>
    Holds the output of SHOW RESOURCE MONITORS.

    GetResourceMonitorsResourceMonitorShowOutput

    Comment string
    CreatedOn string
    CreditQuota double
    EndTime string
    Frequency string
    Level string
    Name string
    Owner string
    RemainingCredits double
    StartTime string
    SuspendAt int
    SuspendImmediateAt int
    UsedCredits double
    Comment string
    CreatedOn string
    CreditQuota float64
    EndTime string
    Frequency string
    Level string
    Name string
    Owner string
    RemainingCredits float64
    StartTime string
    SuspendAt int
    SuspendImmediateAt int
    UsedCredits float64
    comment String
    createdOn String
    creditQuota Double
    endTime String
    frequency String
    level String
    name String
    owner String
    remainingCredits Double
    startTime String
    suspendAt Integer
    suspendImmediateAt Integer
    usedCredits Double
    comment string
    createdOn string
    creditQuota number
    endTime string
    frequency string
    level string
    name string
    owner string
    remainingCredits number
    startTime string
    suspendAt number
    suspendImmediateAt number
    usedCredits number
    comment String
    createdOn String
    creditQuota Number
    endTime String
    frequency String
    level String
    name String
    owner String
    remainingCredits Number
    startTime String
    suspendAt Number
    suspendImmediateAt Number
    usedCredits Number

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.61.1 published on Thursday, Nov 14, 2024 by Pulumi