public static class CreateLogAnalyticsObjectCollectionRuleDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateLogAnalyticsObjectCollectionRuleDetails |
build() |
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
charEncoding(String charEncoding)
An optional character encoding to aid in detecting the character encoding of the contents
of the objects while processing.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
collectionType(ObjectCollectionRuleCollectionTypes collectionType)
The type of collection.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment to which this rule belongs.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
copy(CreateLogAnalyticsObjectCollectionRuleDetails model) |
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
description(String description)
A string that describes the details of the rule.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
entityId(String entityId)
Logging Analytics entity OCID.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
isEnabled(Boolean isEnabled)
Whether or not this rule is currently enabled.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
isForceHistoricCollection(Boolean isForceHistoricCollection)
Flag to allow historic collection if poll period overlaps with existing ACTIVE collection
rule
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
logGroupId(String logGroupId)
Logging Analytics Log group OCID to associate the processed logs with.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
logSet(String logSet)
The logSet to be associated with the processed logs.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
logSetExtRegex(String logSetExtRegex)
The regex to be applied against given logSetKey.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
logSetKey(LogSetKeyTypes logSetKey)
An optional parameter to indicate from where the logSet to be extracted using
logSetExtRegex.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
logSourceName(String logSourceName)
Name of the Logging Analytics Source to use for the processing.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
logType(LogTypes logType)
Type of files/objects in this object collection rule.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
name(String name)
A unique name given to the rule.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
objectNameFilters(List<String> objectNameFilters)
When the filters are provided, only the objects matching the filters are picked up for
processing.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
osBucketName(String osBucketName)
Name of the Object Storage bucket.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
osNamespace(String osNamespace)
Object Storage namespace.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
overrides(Map<String,List<PropertyOverride>> overrides)
The override is used to modify some important configuration properties for objects
matching a specific pattern inside the bucket.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
pollSince(String pollSince)
The oldest time of the file in the bucket to consider for collection.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
pollTill(String pollTill)
The newest time of the file in the bucket to consider for collection.
|
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
timezone(String timezone)
Timezone to be used when processing log entries whose timestamps do not include an
explicit timezone.
|
public CreateLogAnalyticsObjectCollectionRuleDetails.Builder name(String name)
A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
name
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder description(String description)
A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
description
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment to which this rule belongs.
compartmentId
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder osNamespace(String osNamespace)
Object Storage namespace.
osNamespace
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder osBucketName(String osBucketName)
Name of the Object Storage bucket.
osBucketName
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder collectionType(ObjectCollectionRuleCollectionTypes collectionType)
The type of collection.
collectionType
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder pollSince(String pollSince)
The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
pollSince
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder pollTill(String pollTill)
The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
pollTill
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logGroupId(String logGroupId)
Logging Analytics Log group OCID to associate the processed logs with.
logGroupId
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSourceName(String logSourceName)
Name of the Logging Analytics Source to use for the processing.
logSourceName
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder entityId(String entityId)
Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
entityId
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder charEncoding(String charEncoding)
An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8859_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
charEncoding
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder isEnabled(Boolean isEnabled)
Whether or not this rule is currently enabled.
isEnabled
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder timezone(String timezone)
Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
timezone
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSet(String logSet)
The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
logSet
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSetKey(LogSetKeyTypes logSetKey)
An optional parameter to indicate from where the logSet to be extracted using
logSetExtRegex. Default value is OBJECT_PATH (e.g.
/n/
logSetKey
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logSetExtRegex(String logSetExtRegex)
The regex to be applied against given logSetKey. Regex has to be in string escaped format.
logSetExtRegex
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder overrides(Map<String,List<PropertyOverride>> overrides)
The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are “contains”.
overrides
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder objectNameFilters(List<String> objectNameFilters)
When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard “*”. For more information on filters, see Event Filters.
objectNameFilters
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder logType(LogTypes logType)
Type of files/objects in this object collection rule.
logType
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder isForceHistoricCollection(Boolean isForceHistoricCollection)
Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
isForceHistoricCollection
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. Example: {"bar-key": "value"}
freeformTags
- the value to setpublic CreateLogAnalyticsObjectCollectionRuleDetails build()
public CreateLogAnalyticsObjectCollectionRuleDetails.Builder copy(CreateLogAnalyticsObjectCollectionRuleDetails model)
Copyright © 2016–2024. All rights reserved.