1. Packages
  2. Dynatrace
  3. API Docs
  4. LogTimestamp
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.LogTimestamp

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    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,
                     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.

    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",
        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"),
    	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")
        .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",
        matchers=dynatrace.LogTimestampMatchersArgs(
            matchers=[dynatrace.LogTimestampMatchersMatcherArgs(
                attribute="string",
                operator="string",
                values=["string"],
            )],
        ),
        scope="string")
    
    const logTimestampResource = new dynatrace.LogTimestamp("logTimestampResource", {
        configItemTitle: "string",
        dateTimePattern: "string",
        enabled: false,
        timezone: "string",
        matchers: {
            matchers: [{
                attribute: "string",
                operator: "string",
                values: ["string"],
            }],
        },
        scope: "string",
    });
    
    type: dynatrace:LogTimestamp
    properties:
        configItemTitle: string
        dateTimePattern: string
        enabled: false
        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

    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
    Matchers Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogTimestampMatchers
    no documentation available
    Scope string
    The scope of this setting (HOST, HOST_GROUP). 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
    Matchers LogTimestampMatchersArgs
    no documentation available
    Scope string
    The scope of this setting (HOST, HOST_GROUP). 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
    matchers LogTimestampMatchers
    no documentation available
    scope String
    The scope of this setting (HOST, HOST_GROUP). 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
    matchers LogTimestampMatchers
    no documentation available
    scope string
    The scope of this setting (HOST, HOST_GROUP). 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
    matchers LogTimestampMatchersArgs
    no documentation available
    scope str
    The scope of this setting (HOST, HOST_GROUP). 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
    matchers Property Map
    no documentation available
    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 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_time_pattern: Optional[str] = None,
            enabled: Optional[bool] = 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
    DateTimePattern string
    Date-time pattern
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Matchers Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogTimestampMatchers
    no documentation available
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Timezone string
    Timezone
    ConfigItemTitle string
    Name
    DateTimePattern string
    Date-time pattern
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Matchers LogTimestampMatchersArgs
    no documentation available
    Scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    Timezone string
    Timezone
    configItemTitle String
    Name
    dateTimePattern String
    Date-time pattern
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    matchers LogTimestampMatchers
    no documentation available
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    timezone String
    Timezone
    configItemTitle string
    Name
    dateTimePattern string
    Date-time pattern
    enabled boolean
    This setting is enabled (true) or disabled (false)
    matchers LogTimestampMatchers
    no documentation available
    scope string
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    timezone string
    Timezone
    config_item_title str
    Name
    date_time_pattern str
    Date-time pattern
    enabled bool
    This setting is enabled (true) or disabled (false)
    matchers LogTimestampMatchersArgs
    no documentation available
    scope str
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    timezone str
    Timezone
    configItemTitle String
    Name
    dateTimePattern String
    Date-time pattern
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    matchers Property Map
    no documentation available
    scope String
    The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
    timezone String
    Timezone

    Supporting Types

    LogTimestampMatchers, LogTimestampMatchersArgs

    LogTimestampMatchersMatcher, LogTimestampMatchersMatcherArgs

    Attribute string
    Operator string
    Values List<string>
    Attribute string
    Operator string
    Values []string
    attribute String
    operator String
    values List<String>
    attribute string
    operator string
    values string[]
    attribute str
    operator str
    values Sequence[str]
    attribute String
    operator String
    values List<String>

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs