dynatrace.LogTimestamp
Explore with Pulumi AI
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:
- Config
Item stringTitle - Name
- Date
Time stringPattern - Date-time pattern
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Timezone string
- Timezone
- Date
Search intLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- Entry
Boundary Pulumiverse.Dynatrace. Inputs. Log Timestamp Entry Boundary - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- Insert
After 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. Log Timestamp Matchers - 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 stringTitle - Name
- Date
Time stringPattern - Date-time pattern
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Timezone string
- Timezone
- Date
Search intLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- Entry
Boundary LogTimestamp Entry Boundary Args - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- Insert
After 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
Log
Timestamp Matchers Args - 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 StringTitle - Name
- date
Time StringPattern - Date-time pattern
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - timezone String
- Timezone
- date
Search IntegerLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- entry
Boundary LogTimestamp Entry Boundary - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- insert
After 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
Log
Timestamp Matchers - 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 stringTitle - Name
- date
Time stringPattern - Date-time pattern
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - timezone string
- Timezone
- date
Search numberLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- entry
Boundary LogTimestamp Entry Boundary - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- insert
After 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
Log
Timestamp Matchers - 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_ strtitle - Name
- date_
time_ strpattern - Date-time pattern
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - timezone str
- Timezone
- date_
search_ intlimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- entry_
boundary LogTimestamp Entry Boundary Args - 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
Log
Timestamp Matchers Args - no documentation available
- scope str
- The scope of this setting (HOST, KUBERNETESCLUSTER, HOSTGROUP). Omit this property if you want to cover the whole environment.
- config
Item StringTitle - Name
- date
Time StringPattern - Date-time pattern
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - timezone String
- Timezone
- date
Search NumberLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- entry
Boundary Property Map - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- insert
After 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.
- Config
Item stringTitle - Name
- Date
Search intLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- Date
Time stringPattern - Date-time pattern
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Entry
Boundary Pulumiverse.Dynatrace. Inputs. Log Timestamp Entry Boundary - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- Insert
After 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. Log Timestamp Matchers - 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 stringTitle - Name
- Date
Search intLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- Date
Time stringPattern - Date-time pattern
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Entry
Boundary LogTimestamp Entry Boundary Args - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- Insert
After 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
Log
Timestamp Matchers Args - 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 StringTitle - Name
- date
Search IntegerLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- date
Time StringPattern - Date-time pattern
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - entry
Boundary LogTimestamp Entry Boundary - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- insert
After 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
Log
Timestamp Matchers - 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 stringTitle - Name
- date
Search numberLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- date
Time stringPattern - Date-time pattern
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - entry
Boundary LogTimestamp Entry Boundary - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- insert
After 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
Log
Timestamp Matchers - 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_ strtitle - Name
- date_
search_ intlimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- date_
time_ strpattern - Date-time pattern
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - entry_
boundary LogTimestamp Entry Boundary Args - 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
Log
Timestamp Matchers Args - 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
- config
Item StringTitle - Name
- date
Search NumberLimit - Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- date
Time StringPattern - Date-time pattern
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - entry
Boundary Property Map - Optional field. Enter a fragment of the line text that starts the entry. No support for wildcards - the text is treated literally.
- insert
After 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
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.