com.google.api.services.logging.v2.model.LogExclusion Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.logging.v2.model;
/**
* Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource
* receives a large volume of log entries, you can use exclusions to reduce your chargeable logs.
* Note that exclusions on organization-level and folder-level sinks don't apply to child resources.
* Note also that you cannot modify the _Required sink or exclude logs from it.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Logging API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class LogExclusion extends com.google.api.client.json.GenericJson {
/**
* Output only. The creation timestamp of the exclusion.This field may not be present for older
* exclusions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Optional. A description of this exclusion.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Optional. If set to True, then this exclusion is disabled and it does not exclude any log
* entries. You can update an exclusion to change the value of this field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean disabled;
/**
* Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries)
* that matches the log entries to be excluded. By using the sample function
* (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than
* 100% of the matching log entries.For example, the following query matches 99% of low-severity
* log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String filter;
/**
* Output only. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are
* limited to 100 characters and can include only letters, digits, underscores, hyphens, and
* periods. First character has to be alphanumeric.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Output only. The last update timestamp of the exclusion.This field may not be present for older
* exclusions.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* Output only. The creation timestamp of the exclusion.This field may not be present for older
* exclusions.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The creation timestamp of the exclusion.This field may not be present for older
* exclusions.
* @param createTime createTime or {@code null} for none
*/
public LogExclusion setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Optional. A description of this exclusion.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* Optional. A description of this exclusion.
* @param description description or {@code null} for none
*/
public LogExclusion setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Optional. If set to True, then this exclusion is disabled and it does not exclude any log
* entries. You can update an exclusion to change the value of this field.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDisabled() {
return disabled;
}
/**
* Optional. If set to True, then this exclusion is disabled and it does not exclude any log
* entries. You can update an exclusion to change the value of this field.
* @param disabled disabled or {@code null} for none
*/
public LogExclusion setDisabled(java.lang.Boolean disabled) {
this.disabled = disabled;
return this;
}
/**
* Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries)
* that matches the log entries to be excluded. By using the sample function
* (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than
* 100% of the matching log entries.For example, the following query matches 99% of low-severity
* log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity
* @return value or {@code null} for none
*/
public java.lang.String getFilter() {
return filter;
}
/**
* Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries)
* that matches the log entries to be excluded. By using the sample function
* (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than
* 100% of the matching log entries.For example, the following query matches 99% of low-severity
* log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity
* @param filter filter or {@code null} for none
*/
public LogExclusion setFilter(java.lang.String filter) {
this.filter = filter;
return this;
}
/**
* Output only. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are
* limited to 100 characters and can include only letters, digits, underscores, hyphens, and
* periods. First character has to be alphanumeric.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are
* limited to 100 characters and can include only letters, digits, underscores, hyphens, and
* periods. First character has to be alphanumeric.
* @param name name or {@code null} for none
*/
public LogExclusion setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Output only. The last update timestamp of the exclusion.This field may not be present for older
* exclusions.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* Output only. The last update timestamp of the exclusion.This field may not be present for older
* exclusions.
* @param updateTime updateTime or {@code null} for none
*/
public LogExclusion setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public LogExclusion set(String fieldName, Object value) {
return (LogExclusion) super.set(fieldName, value);
}
@Override
public LogExclusion clone() {
return (LogExclusion) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy