#[non_exhaustive]pub struct InsightsConfig {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub runtime_configs: Vec<RuntimeConfig>,
pub artifact_configs: Vec<ArtifactConfig>,
pub state: State,
pub annotations: HashMap<String, String>,
pub labels: HashMap<String, String>,
pub reconciling: bool,
pub errors: Vec<Status>,
pub insights_config_context: Option<InsightsConfigContext>,
/* private fields */
}Expand description
The InsightsConfig resource is the core configuration object to capture events from your Software Development Lifecycle. It acts as the central hub for managing how Developer connect understands your application, its runtime environments, and the artifacts deployed within them.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
create_time: Option<Timestamp>Output only. [Output only] Create timestamp
update_time: Option<Timestamp>Output only. [Output only] Update timestamp
runtime_configs: Vec<RuntimeConfig>Output only. The runtime configurations where the application is deployed.
artifact_configs: Vec<ArtifactConfig>Optional. The artifact configurations of the artifacts that are deployed.
state: StateOptional. Output only. The state of the InsightsConfig.
annotations: HashMap<String, String>Optional. User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations.
labels: HashMap<String, String>Optional. Set of labels associated with an InsightsConfig.
reconciling: boolOutput only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of InsightsConfig does not match the user’s intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.
errors: Vec<Status>Output only. Any errors that occurred while setting up the InsightsConfig.
Each error will be in the format: field_name: error_message, e.g.
GetAppHubApplication: Permission denied while getting App Hub
application. Please grant permissions to the P4SA.
insights_config_context: Option<InsightsConfigContext>The context of the InsightsConfig.
Implementations§
Source§impl InsightsConfig
impl InsightsConfig
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_runtime_configs<T, V>(self, v: T) -> Self
pub fn set_runtime_configs<T, V>(self, v: T) -> Self
Sets the value of runtime_configs.
Sourcepub fn set_artifact_configs<T, V>(self, v: T) -> Self
pub fn set_artifact_configs<T, V>(self, v: T) -> Self
Sets the value of artifact_configs.
Sourcepub fn set_annotations<T, K, V>(self, v: T) -> Self
pub fn set_annotations<T, K, V>(self, v: T) -> Self
Sets the value of annotations.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_reconciling<T: Into<bool>>(self, v: T) -> Self
pub fn set_reconciling<T: Into<bool>>(self, v: T) -> Self
Sets the value of reconciling.
Sourcepub fn set_errors<T, V>(self, v: T) -> Self
pub fn set_errors<T, V>(self, v: T) -> Self
Sets the value of errors.
Sourcepub fn set_insights_config_context<T: Into<Option<InsightsConfigContext>>>(
self,
v: T,
) -> Self
pub fn set_insights_config_context<T: Into<Option<InsightsConfigContext>>>( self, v: T, ) -> Self
Sets the value of insights_config_context.
Note that all the setters affecting insights_config_context are mutually
exclusive.
Sourcepub fn app_hub_application(&self) -> Option<&String>
pub fn app_hub_application(&self) -> Option<&String>
The value of insights_config_context
if it holds a AppHubApplication, None if the field is not set or
holds a different branch.
Sourcepub fn set_app_hub_application<T: Into<String>>(self, v: T) -> Self
pub fn set_app_hub_application<T: Into<String>>(self, v: T) -> Self
Sets the value of insights_config_context
to hold a AppHubApplication.
Note that all the setters affecting insights_config_context are
mutually exclusive.
Trait Implementations§
Source§impl Clone for InsightsConfig
impl Clone for InsightsConfig
Source§fn clone(&self) -> InsightsConfig
fn clone(&self) -> InsightsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more