@Generated(value="OracleSDKGenerator", comments="API Version: 20200601") public final class CreateLogAnalyticsObjectCollectionRuleDetails extends Object
The configuration details of an Object Storage based collection rule to enable automatic log collection.
CreateLogAnalyticsObjectCollectionRuleDetails.Builder. This model distinguishes fields
that are null because they are unset from fields that are explicitly set to null. This is done in
the setter methods of the CreateLogAnalyticsObjectCollectionRuleDetails.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).| Modifier and Type | Class and Description |
|---|---|
static class |
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
| Constructor and Description |
|---|
CreateLogAnalyticsObjectCollectionRuleDetails(String name,
String description,
String compartmentId,
String osNamespace,
String osBucketName,
ObjectCollectionRuleCollectionTypes collectionType,
String pollSince,
String pollTill,
String logGroupId,
String logSourceName,
String entityId,
String charEncoding,
Map<String,List<PropertyOverride>> overrides,
Map<String,Map<String,Object>> definedTags,
Map<String,String> freeformTags)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getCharEncoding()
An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing.
|
ObjectCollectionRuleCollectionTypes |
getCollectionType()
The type of collection.
|
String |
getCompartmentId()
The OCID of the compartment to which this rule belongs.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDescription()
A string that describes the details of the rule.
|
String |
getEntityId()
Log Analytics entity OCID.
|
Map<String,String> |
getFreeformTags()
Simple key-value pair that is applied without any predefined name, type or scope.
|
String |
getLogGroupId()
Log Analytics Log group OCID to associate the processed logs with.
|
String |
getLogSourceName()
Name of the Log Analytics Source to use for the processing.
|
String |
getName()
A unique name given to the rule.
|
String |
getOsBucketName()
Name of the Object Storage bucket.
|
String |
getOsNamespace()
Object Storage namespace.
|
Map<String,List<PropertyOverride>> |
getOverrides()
The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket.
|
String |
getPollSince()
The oldest time of the file in the bucket to consider for collection.
|
String |
getPollTill()
The oldest time of the file in the bucket to consider for collection.
|
int |
hashCode() |
CreateLogAnalyticsObjectCollectionRuleDetails.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"name","description","compartmentId","osNamespace","osBucketName","collectionType","pollSince","pollTill","logGroupId","logSourceName","entityId","charEncoding","overrides","definedTags","freeformTags"}) @Deprecated public CreateLogAnalyticsObjectCollectionRuleDetails(String name, String description, String compartmentId, String osNamespace, String osBucketName, ObjectCollectionRuleCollectionTypes collectionType, String pollSince, String pollTill, String logGroupId, String logSourceName, String entityId, String charEncoding, Map<String,List<PropertyOverride>> overrides, Map<String,Map<String,Object>> definedTags, Map<String,String> freeformTags)
public static CreateLogAnalyticsObjectCollectionRuleDetails.Builder builder()
Create a new builder.
public CreateLogAnalyticsObjectCollectionRuleDetails.Builder toBuilder()
public String getName()
A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
public String getDescription()
A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
public String getCompartmentId()
The OCID of the compartment to which this rule belongs.
public String getOsNamespace()
Object Storage namespace.
public String getOsBucketName()
Name of the Object Storage bucket.
public ObjectCollectionRuleCollectionTypes getCollectionType()
The type of collection. Accepted values are: LIVE. Collection type LIVE indicates to enable log collection from the time of this rule creation, and continue until the rule exists.
public String getPollSince()
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. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
public String getPollTill()
The oldest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. When collectionType is LIVE, specifying pollTill will result in error.
public String getLogGroupId()
Log Analytics Log group OCID to associate the processed logs with.
public String getLogSourceName()
Name of the Log Analytics Source to use for the processing.
public String getEntityId()
Log Analytics entity OCID. Associates the processed logs with the given entity (optional).
public String getCharEncoding()
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_8589_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.
public Map<String,List<PropertyOverride>> getOverrides()
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. Supported matchType for override are "contains".
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
public Map<String,String> getFreeformTags()
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: {\"bar-key\": \"value\"}
Copyright © 2016–2020. All rights reserved.