1. Packages
  2. Dynatrace
  3. API Docs
  4. LogStorage
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.LogStorage

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    Create LogStorage Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogStorage(name: string, args: LogStorageArgs, opts?: CustomResourceOptions);
    @overload
    def LogStorage(resource_name: str,
                   args: LogStorageArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogStorage(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   enabled: Optional[bool] = None,
                   send_to_storage: Optional[bool] = None,
                   insert_after: Optional[str] = None,
                   matchers: Optional[LogStorageMatchersArgs] = None,
                   name: Optional[str] = None,
                   scope: Optional[str] = None)
    func NewLogStorage(ctx *Context, name string, args LogStorageArgs, opts ...ResourceOption) (*LogStorage, error)
    public LogStorage(string name, LogStorageArgs args, CustomResourceOptions? opts = null)
    public LogStorage(String name, LogStorageArgs args)
    public LogStorage(String name, LogStorageArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogStorage
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LogStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LogStorageArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LogStorageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogStorageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogStorageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var logStorageResource = new Dynatrace.LogStorage("logStorageResource", new()
    {
        Enabled = false,
        SendToStorage = false,
        InsertAfter = "string",
        Matchers = new Dynatrace.Inputs.LogStorageMatchersArgs
        {
            Matchers = new[]
            {
                new Dynatrace.Inputs.LogStorageMatchersMatcherArgs
                {
                    Attribute = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Name = "string",
        Scope = "string",
    });
    
    example, err := dynatrace.NewLogStorage(ctx, "logStorageResource", &dynatrace.LogStorageArgs{
    	Enabled:       pulumi.Bool(false),
    	SendToStorage: pulumi.Bool(false),
    	InsertAfter:   pulumi.String("string"),
    	Matchers: &dynatrace.LogStorageMatchersArgs{
    		Matchers: dynatrace.LogStorageMatchersMatcherArray{
    			&dynatrace.LogStorageMatchersMatcherArgs{
    				Attribute: pulumi.String("string"),
    				Operator:  pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Name:  pulumi.String("string"),
    	Scope: pulumi.String("string"),
    })
    
    var logStorageResource = new LogStorage("logStorageResource", LogStorageArgs.builder()
        .enabled(false)
        .sendToStorage(false)
        .insertAfter("string")
        .matchers(LogStorageMatchersArgs.builder()
            .matchers(LogStorageMatchersMatcherArgs.builder()
                .attribute("string")
                .operator("string")
                .values("string")
                .build())
            .build())
        .name("string")
        .scope("string")
        .build());
    
    log_storage_resource = dynatrace.LogStorage("logStorageResource",
        enabled=False,
        send_to_storage=False,
        insert_after="string",
        matchers=dynatrace.LogStorageMatchersArgs(
            matchers=[dynatrace.LogStorageMatchersMatcherArgs(
                attribute="string",
                operator="string",
                values=["string"],
            )],
        ),
        name="string",
        scope="string")
    
    const logStorageResource = new dynatrace.LogStorage("logStorageResource", {
        enabled: false,
        sendToStorage: false,
        insertAfter: "string",
        matchers: {
            matchers: [{
                attribute: "string",
                operator: "string",
                values: ["string"],
            }],
        },
        name: "string",
        scope: "string",
    });
    
    type: dynatrace:LogStorage
    properties:
        enabled: false
        insertAfter: string
        matchers:
            matchers:
                - attribute: string
                  operator: string
                  values:
                    - string
        name: string
        scope: string
        sendToStorage: false
    

    LogStorage Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LogStorage resource accepts the following input properties:

    Enabled bool
    This setting is enabled (true) or disabled (false)
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Matchers Pulumiverse.Dynatrace.Inputs.LogStorageMatchers
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Matchers LogStorageMatchersArgs
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogStorageMatchers
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    sendToStorage boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogStorageMatchers
    no documentation available
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    send_to_storage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogStorageMatchersArgs
    no documentation available
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers Property Map
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogStorage resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing LogStorage Resource

    Get an existing LogStorage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LogStorageState, opts?: CustomResourceOptions): LogStorage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            matchers: Optional[LogStorageMatchersArgs] = None,
            name: Optional[str] = None,
            scope: Optional[str] = None,
            send_to_storage: Optional[bool] = None) -> LogStorage
    func GetLogStorage(ctx *Context, name string, id IDInput, state *LogStorageState, opts ...ResourceOption) (*LogStorage, error)
    public static LogStorage Get(string name, Input<string> id, LogStorageState? state, CustomResourceOptions? opts = null)
    public static LogStorage get(String name, Output<String> id, LogStorageState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Matchers Pulumiverse.Dynatrace.Inputs.LogStorageMatchers
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Matchers LogStorageMatchersArgs
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    SendToStorage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogStorageMatchers
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogStorageMatchers
    no documentation available
    name string
    Name
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    sendToStorage boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled bool
    This setting is enabled (true) or disabled (false)
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogStorageMatchersArgs
    no documentation available
    name str
    Name
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    send_to_storage bool
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers Property Map
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    sendToStorage Boolean
    If true matching logs will be included in storage. If false matching logs will be excluded from storage.

    Supporting Types

    LogStorageMatchers, LogStorageMatchersArgs

    LogStorageMatchersMatcher, LogStorageMatchersMatcherArgs

    Attribute string
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_content, Log_source, Loglevel, Process_technology, Winlog_eventid, Winlog_opcode, Winlog_provider, Winlog_task
    Operator string
    Possible Values: MATCHES
    Values List<string>
    no documentation available
    Attribute string
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_content, Log_source, Loglevel, Process_technology, Winlog_eventid, Winlog_opcode, Winlog_provider, Winlog_task
    Operator string
    Possible Values: MATCHES
    Values []string
    no documentation available
    attribute String
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_content, Log_source, Loglevel, Process_technology, Winlog_eventid, Winlog_opcode, Winlog_provider, Winlog_task
    operator String
    Possible Values: MATCHES
    values List<String>
    no documentation available
    attribute string
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_content, Log_source, Loglevel, Process_technology, Winlog_eventid, Winlog_opcode, Winlog_provider, Winlog_task
    operator string
    Possible Values: MATCHES
    values string[]
    no documentation available
    attribute str
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_content, Log_source, Loglevel, Process_technology, Winlog_eventid, Winlog_opcode, Winlog_provider, Winlog_task
    operator str
    Possible Values: MATCHES
    values Sequence[str]
    no documentation available
    attribute String
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, Host_tag, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_content, Log_source, Loglevel, Process_technology, Winlog_eventid, Winlog_opcode, Winlog_provider, Winlog_task
    operator String
    Possible Values: MATCHES
    values List<String>
    no documentation available

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse