public final class RuleDeployment extends GeneratedMessageV3 implements RuleDeploymentOrBuilder
The RuleDeployment resource represents the deployment state of a Rule.
Protobuf type google.cloud.chronicle.v1.RuleDeployment
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALERTING_FIELD_NUMBER
public static final int ALERTING_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ARCHIVED_FIELD_NUMBER
public static final int ARCHIVED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ARCHIVE_TIME_FIELD_NUMBER
public static final int ARCHIVE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CONSUMER_RULES_FIELD_NUMBER
public static final int CONSUMER_RULES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EXECUTION_STATE_FIELD_NUMBER
public static final int EXECUTION_STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LAST_ALERT_STATUS_CHANGE_TIME_FIELD_NUMBER
public static final int LAST_ALERT_STATUS_CHANGE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PRODUCER_RULES_FIELD_NUMBER
public static final int PRODUCER_RULES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RUN_FREQUENCY_FIELD_NUMBER
public static final int RUN_FREQUENCY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RuleDeployment getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RuleDeployment.Builder newBuilder()
newBuilder(RuleDeployment prototype)
public static RuleDeployment.Builder newBuilder(RuleDeployment prototype)
public static RuleDeployment parseDelimitedFrom(InputStream input)
public static RuleDeployment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RuleDeployment parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RuleDeployment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RuleDeployment parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RuleDeployment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RuleDeployment parseFrom(CodedInputStream input)
public static RuleDeployment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RuleDeployment parseFrom(InputStream input)
public static RuleDeployment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RuleDeployment parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RuleDeployment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RuleDeployment> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAlerting()
public boolean getAlerting()
Whether detections resulting from this deployment should be considered
alerts.
bool alerting = 3;
Returns |
Type |
Description |
boolean |
The alerting.
|
getArchiveTime()
public Timestamp getArchiveTime()
Output only. The timestamp when the rule deployment archive state was last
set to true. If the rule deployment's current archive state is not set to
true, the field will be empty.
.google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The archiveTime.
|
getArchiveTimeOrBuilder()
public TimestampOrBuilder getArchiveTimeOrBuilder()
Output only. The timestamp when the rule deployment archive state was last
set to true. If the rule deployment's current archive state is not set to
true, the field will be empty.
.google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getArchived()
public boolean getArchived()
The archive state of the rule deployment.
Cannot be set to true unless enabled is set to false.
If set to true, alerting will automatically be set to false.
If currently set to true, enabled, alerting, and run_frequency cannot be
updated.
bool archived = 4;
Returns |
Type |
Description |
boolean |
The archived.
|
getConsumerRules(int index)
public String getConsumerRules(int index)
Output only. The names of the associated/chained consumer rules. Rules are
considered consumers of this rule if their rule text explicitly filters on
this rule's ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The consumerRules at the given index.
|
getConsumerRulesBytes(int index)
public ByteString getConsumerRulesBytes(int index)
Output only. The names of the associated/chained consumer rules. Rules are
considered consumers of this rule if their rule text explicitly filters on
this rule's ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the consumerRules at the given index.
|
getConsumerRulesCount()
public int getConsumerRulesCount()
Output only. The names of the associated/chained consumer rules. Rules are
considered consumers of this rule if their rule text explicitly filters on
this rule's ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
int |
The count of consumerRules.
|
getConsumerRulesList()
public ProtocolStringList getConsumerRulesList()
Output only. The names of the associated/chained consumer rules. Rules are
considered consumers of this rule if their rule text explicitly filters on
this rule's ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string consumer_rules = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getDefaultInstanceForType()
public RuleDeployment getDefaultInstanceForType()
getEnabled()
public boolean getEnabled()
Whether the rule is currently deployed continuously against incoming data.
bool enabled = 2;
Returns |
Type |
Description |
boolean |
The enabled.
|
getExecutionState()
public RuleDeployment.ExecutionState getExecutionState()
Output only. The execution state of the rule deployment.
.google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExecutionStateValue()
public int getExecutionStateValue()
Output only. The execution state of the rule deployment.
.google.cloud.chronicle.v1.RuleDeployment.ExecutionState execution_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
The enum numeric value on the wire for executionState.
|
getLastAlertStatusChangeTime()
public Timestamp getLastAlertStatusChangeTime()
Output only. The timestamp when the rule deployment alert state was lastly
changed. This is filled regardless of the current alert state. E.g. if the
current alert status is false, this timestamp will be the timestamp when
the alert status was changed to false.
.google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The lastAlertStatusChangeTime.
|
getLastAlertStatusChangeTimeOrBuilder()
public TimestampOrBuilder getLastAlertStatusChangeTimeOrBuilder()
Output only. The timestamp when the rule deployment alert state was lastly
changed. This is filled regardless of the current alert state. E.g. if the
current alert status is false, this timestamp will be the timestamp when
the alert status was changed to false.
.google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getName()
Required. The resource name of the rule deployment.
Note that RuleDeployment is a child of the overall Rule, not any individual
revision, so the resource ID segment for the Rule resource must not
reference a specific revision.
Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The resource name of the rule deployment.
Note that RuleDeployment is a child of the overall Rule, not any individual
revision, so the resource ID segment for the Rule resource must not
reference a specific revision.
Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/deployment
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<RuleDeployment> getParserForType()
Overrides
getProducerRules(int index)
public String getProducerRules(int index)
Output only. The names of the associated/chained producer rules. Rules are
considered producers for this rule if this rule explicitly filters on their
ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The producerRules at the given index.
|
getProducerRulesBytes(int index)
public ByteString getProducerRulesBytes(int index)
Output only. The names of the associated/chained producer rules. Rules are
considered producers for this rule if this rule explicitly filters on their
ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the producerRules at the given index.
|
getProducerRulesCount()
public int getProducerRulesCount()
Output only. The names of the associated/chained producer rules. Rules are
considered producers for this rule if this rule explicitly filters on their
ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
int |
The count of producerRules.
|
getProducerRulesList()
public ProtocolStringList getProducerRulesList()
Output only. The names of the associated/chained producer rules. Rules are
considered producers for this rule if this rule explicitly filters on their
ruleid. Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
repeated string producer_rules = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getRunFrequency()
public RunFrequency getRunFrequency()
The run frequency of the rule deployment.
.google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
getRunFrequencyValue()
public int getRunFrequencyValue()
The run frequency of the rule deployment.
.google.cloud.chronicle.v1.RunFrequency run_frequency = 6;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for runFrequency.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasArchiveTime()
public boolean hasArchiveTime()
Output only. The timestamp when the rule deployment archive state was last
set to true. If the rule deployment's current archive state is not set to
true, the field will be empty.
.google.protobuf.Timestamp archive_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the archiveTime field is set.
|
hasLastAlertStatusChangeTime()
public boolean hasLastAlertStatusChangeTime()
Output only. The timestamp when the rule deployment alert state was lastly
changed. This is filled regardless of the current alert state. E.g. if the
current alert status is false, this timestamp will be the timestamp when
the alert status was changed to false.
.google.protobuf.Timestamp last_alert_status_change_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the lastAlertStatusChangeTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RuleDeployment.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RuleDeployment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public RuleDeployment.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides