1. Packages
  2. Dynatrace
  3. API Docs
  4. LogTimestamp
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.LogTimestamp

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    Create LogTimestamp Resource

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

    Constructor syntax

    new LogTimestamp(name: string, args: LogTimestampArgs, opts?: CustomResourceOptions);
    @overload
    def LogTimestamp(resource_name: str,
                     args: LogTimestampArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogTimestamp(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     config_item_title: Optional[str] = None,
                     date_time_pattern: Optional[str] = None,
                     enabled: Optional[bool] = None,
                     timezone: Optional[str] = None,
                     date_search_limit: Optional[int] = None,
                     entry_boundary: Optional[LogTimestampEntryBoundaryArgs] = None,
                     insert_after: Optional[str] = None,
                     matchers: Optional[LogTimestampMatchersArgs] = None,
                     scope: Optional[str] = None)
    func NewLogTimestamp(ctx *Context, name string, args LogTimestampArgs, opts ...ResourceOption) (*LogTimestamp, error)
    public LogTimestamp(string name, LogTimestampArgs args, CustomResourceOptions? opts = null)
    public LogTimestamp(String name, LogTimestampArgs args)
    public LogTimestamp(String name, LogTimestampArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogTimestamp
    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 LogTimestampArgs
    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 LogTimestampArgs
    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 LogTimestampArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogTimestampArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogTimestampArgs
    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 logTimestampResource = new Dynatrace.LogTimestamp("logTimestampResource", new()
    {
        ConfigItemTitle = "string",
        DateTimePattern = "string",
        Enabled = false,
        Timezone = "string",
        DateSearchLimit = 0,
        EntryBoundary = new Dynatrace.Inputs.LogTimestampEntryBoundaryArgs
        {
            Pattern = "string",
        },
        InsertAfter = "string",
        Matchers = new Dynatrace.Inputs.LogTimestampMatchersArgs
        {
            Matchers = new[]
            {
                new Dynatrace.Inputs.LogTimestampMatchersMatcherArgs
                {
                    Attribute = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Scope = "string",
    });
    
    example, err := dynatrace.NewLogTimestamp(ctx, "logTimestampResource", &dynatrace.LogTimestampArgs{
    	ConfigItemTitle: pulumi.String("string"),
    	DateTimePattern: pulumi.String("string"),
    	Enabled:         pulumi.Bool(false),
    	Timezone:        pulumi.String("string"),
    	DateSearchLimit: pulumi.Int(0),
    	EntryBoundary: &dynatrace.LogTimestampEntryBoundaryArgs{
    		Pattern: pulumi.String("string"),
    	},
    	InsertAfter: pulumi.String("string"),
    	Matchers: &dynatrace.LogTimestampMatchersArgs{
    		Matchers: dynatrace.LogTimestampMatchersMatcherArray{
    			&dynatrace.LogTimestampMatchersMatcherArgs{
    				Attribute: pulumi.String("string"),
    				Operator:  pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Scope: pulumi.String("string"),
    })
    
    var logTimestampResource = new LogTimestamp("logTimestampResource", LogTimestampArgs.builder()
        .configItemTitle("string")
        .dateTimePattern("string")
        .enabled(false)
        .timezone("string")
        .dateSearchLimit(0)
        .entryBoundary(LogTimestampEntryBoundaryArgs.builder()
            .pattern("string")
            .build())
        .insertAfter("string")
        .matchers(LogTimestampMatchersArgs.builder()
            .matchers(LogTimestampMatchersMatcherArgs.builder()
                .attribute("string")
                .operator("string")
                .values("string")
                .build())
            .build())
        .scope("string")
        .build());
    
    log_timestamp_resource = dynatrace.LogTimestamp("logTimestampResource",
        config_item_title="string",
        date_time_pattern="string",
        enabled=False,
        timezone="string",
        date_search_limit=0,
        entry_boundary={
            "pattern": "string",
        },
        insert_after="string",
        matchers={
            "matchers": [{
                "attribute": "string",
                "operator": "string",
                "values": ["string"],
            }],
        },
        scope="string")
    
    const logTimestampResource = new dynatrace.LogTimestamp("logTimestampResource", {
        configItemTitle: "string",
        dateTimePattern: "string",
        enabled: false,
        timezone: "string",
        dateSearchLimit: 0,
        entryBoundary: {
            pattern: "string",
        },
        insertAfter: "string",
        matchers: {
            matchers: [{
                attribute: "string",
                operator: "string",
                values: ["string"],
            }],
        },
        scope: "string",
    });
    
    type: dynatrace:LogTimestamp
    properties:
        configItemTitle: string
        dateSearchLimit: 0
        dateTimePattern: string
        enabled: false
        entryBoundary:
            pattern: string
        insertAfter: string
        matchers:
            matchers:
                - attribute: string
                  operator: string
                  values:
                    - string
        scope: string
        timezone: string
    

    LogTimestamp Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LogTimestamp resource accepts the following input properties:

    ConfigItemTitle string
    Name
    DateTimePattern string
    Date-time pattern
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Timezone string
    Timezone
    DateSearchLimit int
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    EntryBoundary Pulumiverse.Dynatrace.Inputs.LogTimestampEntryBoundary
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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.LogTimestampMatchers
    no documentation available
    Scope string
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    ConfigItemTitle string
    Name
    DateTimePattern string
    Date-time pattern
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Timezone string
    Timezone
    DateSearchLimit int
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    EntryBoundary LogTimestampEntryBoundaryArgs
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchersArgs
    no documentation available
    Scope string
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    configItemTitle String
    Name
    dateTimePattern String
    Date-time pattern
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    timezone String
    Timezone
    dateSearchLimit Integer
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    entryBoundary LogTimestampEntryBoundary
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchers
    no documentation available
    scope String
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    configItemTitle string
    Name
    dateTimePattern string
    Date-time pattern
    enabled boolean
    This setting is enabled (true) or disabled (false)
    timezone string
    Timezone
    dateSearchLimit number
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    entryBoundary LogTimestampEntryBoundary
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchers
    no documentation available
    scope string
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    config_item_title str
    Name
    date_time_pattern str
    Date-time pattern
    enabled bool
    This setting is enabled (true) or disabled (false)
    timezone str
    Timezone
    date_search_limit int
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    entry_boundary LogTimestampEntryBoundaryArgs
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchersArgs
    no documentation available
    scope str
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    configItemTitle String
    Name
    dateTimePattern String
    Date-time pattern
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    timezone String
    Timezone
    dateSearchLimit Number
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    entryBoundary Property Map
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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
    scope String
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogTimestamp 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 LogTimestamp Resource

    Get an existing LogTimestamp 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?: LogTimestampState, opts?: CustomResourceOptions): LogTimestamp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_item_title: Optional[str] = None,
            date_search_limit: Optional[int] = None,
            date_time_pattern: Optional[str] = None,
            enabled: Optional[bool] = None,
            entry_boundary: Optional[LogTimestampEntryBoundaryArgs] = None,
            insert_after: Optional[str] = None,
            matchers: Optional[LogTimestampMatchersArgs] = None,
            scope: Optional[str] = None,
            timezone: Optional[str] = None) -> LogTimestamp
    func GetLogTimestamp(ctx *Context, name string, id IDInput, state *LogTimestampState, opts ...ResourceOption) (*LogTimestamp, error)
    public static LogTimestamp Get(string name, Input<string> id, LogTimestampState? state, CustomResourceOptions? opts = null)
    public static LogTimestamp get(String name, Output<String> id, LogTimestampState 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:
    ConfigItemTitle string
    Name
    DateSearchLimit int
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    DateTimePattern string
    Date-time pattern
    Enabled bool
    This setting is enabled (true) or disabled (false)
    EntryBoundary Pulumiverse.Dynatrace.Inputs.LogTimestampEntryBoundary
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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.LogTimestampMatchers
    no documentation available
    Scope string
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    Timezone string
    Timezone
    ConfigItemTitle string
    Name
    DateSearchLimit int
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    DateTimePattern string
    Date-time pattern
    Enabled bool
    This setting is enabled (true) or disabled (false)
    EntryBoundary LogTimestampEntryBoundaryArgs
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchersArgs
    no documentation available
    Scope string
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    Timezone string
    Timezone
    configItemTitle String
    Name
    dateSearchLimit Integer
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    dateTimePattern String
    Date-time pattern
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    entryBoundary LogTimestampEntryBoundary
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchers
    no documentation available
    scope String
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    timezone String
    Timezone
    configItemTitle string
    Name
    dateSearchLimit number
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    dateTimePattern string
    Date-time pattern
    enabled boolean
    This setting is enabled (true) or disabled (false)
    entryBoundary LogTimestampEntryBoundary
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchers
    no documentation available
    scope string
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    timezone string
    Timezone
    config_item_title str
    Name
    date_search_limit int
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    date_time_pattern str
    Date-time pattern
    enabled bool
    This setting is enabled (true) or disabled (false)
    entry_boundary LogTimestampEntryBoundaryArgs
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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 LogTimestampMatchersArgs
    no documentation available
    scope str
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    timezone str
    Timezone
    configItemTitle String
    Name
    dateSearchLimit Number
    Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
    dateTimePattern String
    Date-time pattern
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    entryBoundary Property Map
    Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
    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
    scope String
    The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
    timezone String
    Timezone

    Supporting Types

    LogTimestampEntryBoundary, LogTimestampEntryBoundaryArgs

    Pattern string
    no documentation available
    Pattern string
    no documentation available
    pattern String
    no documentation available
    pattern string
    no documentation available
    pattern str
    no documentation available
    pattern String
    no documentation available

    LogTimestampMatchers, LogTimestampMatchersArgs

    LogTimestampMatchersMatcher, LogTimestampMatchersMatcherArgs

    Attribute string
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_source, Process_technology
    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, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_source, Process_technology
    Operator string
    Possible Values: MATCHES
    Values []string
    no documentation available
    attribute String
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_source, Process_technology
    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, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_source, Process_technology
    operator string
    Possible Values: MATCHES
    values string[]
    no documentation available
    attribute str
    Possible Values: Container_name, Dt_entity_container_group, Dt_entity_process_group, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_source, Process_technology
    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, K8s_container_name, K8s_deployment_name, K8s_namespace_name, Log_source, Process_technology
    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.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse