Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
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,
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,
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),
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)
.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,
insert_after="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",
dateSearchLimit: 0,
insertAfter: "string",
matchers: {
matchers: [{
attribute: "string",
operator: "string",
values: ["string"],
}],
},
scope: "string",
});
type: dynatrace:LogTimestamp
properties:
configItemTitle: string
dateSearchLimit: 0
dateTimePattern: string
enabled: false
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
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 - (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- 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, HOST_GROUP). 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 - (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- 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, HOST_GROUP). 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 - (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- 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, HOST_GROUP). 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 - (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- 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, HOST_GROUP). 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 - (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- 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, HOST_GROUP). 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 - (v1.275) Defines the number of characters in every log line (starting from the first character in the line) where the timestamp is searched.
- 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, 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_search_limit: Optional[int] = None,
date_time_pattern: Optional[str] = None,
enabled: Optional[bool] = 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 - (v1.275) 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
) - 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, HOST_GROUP). Omit this property if you want to cover the whole environment.
- Timezone string
- Timezone
- Config
Item stringTitle - Name
- Date
Search intLimit - (v1.275) 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
) - 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, HOST_GROUP). Omit this property if you want to cover the whole environment.
- Timezone string
- Timezone
- config
Item StringTitle - Name
- date
Search IntegerLimit - (v1.275) 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
) - 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, HOST_GROUP). Omit this property if you want to cover the whole environment.
- timezone String
- Timezone
- config
Item stringTitle - Name
- date
Search numberLimit - (v1.275) 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
) - 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, HOST_GROUP). Omit this property if you want to cover the whole environment.
- timezone string
- Timezone
- config_
item_ strtitle - Name
- date_
search_ intlimit - (v1.275) 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
) - 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, HOST_GROUP). Omit this property if you want to cover the whole environment.
- timezone str
- Timezone
- config
Item StringTitle - Name
- date
Search NumberLimit - (v1.275) 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
) - 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, HOST_GROUP). Omit this property if you want to cover the whole environment.
- timezone String
- Timezone
Supporting Types
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.