Documentation
¶
Index ¶
- Constants
- Variables
- func ColorToHexRGB(color HDRColor4) string
- func ColorToHexRGBA(color HDRColor4) string
- type GeneratableAliasTimelineInfo
- type GeneratableEventInfo
- type GeneratableRevisionInfo
- type HDRColor3
- type HDRColor4
- type LogType
- type LogTypeFrontendMetadata
- type ParentRelationship
- type ParentRelationshipFrontendMetadata
- type RevisionState
- type RevisionStateFrontendMetadata
- type RevisionStateStyle
- type RevisionVerb
- type RevisionVerbFrontendMetadata
- type Severity
- type SeverityFrontendMetadata
Constants ¶
View Source
const EnumLogTypeLength = int(logTypeUnusedEnd) + 1
View Source
const EnumParentRelationshipLength = int(relationshipUnusedEnd) + 1
EnumParentRelationshipLength is the count of ParentRelationship enum elements.
Variables ¶
View Source
var LogTypes = map[LogType]LogTypeFrontendMetadata{ LogTypeUnknown: { EnumKeyName: "LogTypeUnknown", Label: "unknown", LabelBackgroundColor: mustHexToHDRColor4("#000000"), }, LogTypeEvent: { EnumKeyName: "LogTypeEvent", Label: "k8s_event", LabelBackgroundColor: mustHexToHDRColor4("#3fb549"), }, LogTypeAudit: { EnumKeyName: "LogTypeAudit", Label: "k8s_audit", LabelBackgroundColor: mustHexToHDRColor4("#000000"), }, LogTypeContainer: { EnumKeyName: "LogTypeContainer", Label: "k8s_container", LabelBackgroundColor: mustHexToHDRColor4("#fe9bab"), }, LogTypeNode: { EnumKeyName: "LogTypeNode", Label: "k8s_node", LabelBackgroundColor: mustHexToHDRColor4("#0077CC"), }, LogTypeGkeAudit: { EnumKeyName: "LogTypeGkeAudit", Label: "gke_audit", LabelBackgroundColor: mustHexToHDRColor4("#AA00FF"), }, LogTypeComputeApi: { EnumKeyName: "LogTypeComputeApi", Label: "compute_api", LabelBackgroundColor: mustHexToHDRColor4("#FFCC33"), }, LogTypeMulticloudAPI: { EnumKeyName: "LogTypeMulticloudAPI", Label: "multicloud_api", LabelBackgroundColor: mustHexToHDRColor4("#AA00FF"), }, LogTypeOnPremAPI: { EnumKeyName: "LogTypeOnPremAPI", Label: "onprem_api", LabelBackgroundColor: mustHexToHDRColor4("#AA00FF"), }, LogTypeNetworkAPI: { EnumKeyName: "LogTypeNetworkAPI", Label: "network_api", LabelBackgroundColor: mustHexToHDRColor4("#33CCFF"), }, LogTypeAutoscaler: { EnumKeyName: "LogTypeAutoscaler", Label: "autoscaler", LabelBackgroundColor: mustHexToHDRColor4("#FF5555"), }, LogTypeComposerEnvironment: { EnumKeyName: "LogTypeComposerEnvironment", Label: "composer_environment", LabelBackgroundColor: mustHexToHDRColor4("#88AA55"), }, LogTypeControlPlaneComponent: { EnumKeyName: "LogTypeControlPlaneComponent", Label: "control_plane_component", LabelBackgroundColor: mustHexToHDRColor4("#FF3333"), }, LogTypeSerialPort: { EnumKeyName: "LogTypeSerialPort", Label: "serial_port", LabelBackgroundColor: mustHexToHDRColor4("#333333"), }, LogTypeCSMAccessLog: { EnumKeyName: "LogTypeCSMAccessLog", Label: "csm_access_log", LabelBackgroundColor: mustHexToHDRColor4("#FF8500"), }, }
View Source
var ParentRelationships = map[ParentRelationship]ParentRelationshipFrontendMetadata{ RelationshipChild: { Visible: false, EnumKeyName: "RelationshipChild", Label: "resource", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#CCCCCC"), SortPriority: 1000, LongName: "The default resource timeline", Description: "A default timeline recording the history of Kubernetes resources", GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateInferred, SourceLogType: LogTypeAudit, Description: "This state indicates the resource exists at the time, but this existence is inferred from the other logs later. The detailed resource information is not available.", }, { State: RevisionStateExisting, SourceLogType: LogTypeAudit, Description: "This state indicates the resource exists at the time", }, { State: RevisionStateDeleted, SourceLogType: LogTypeAudit, Description: "This state indicates the resource is deleted at the time.", }, { State: RevisionStateDeleting, SourceLogType: LogTypeAudit, Description: "This state indicates the resource is being deleted with grace period at the time.", }, { State: RevisionStateProvisioning, SourceLogType: LogTypeGkeAudit, Description: "This state indicates the resource is being provisioned. Currently this state is only used for cluster/nodepool status only.", }, }, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeAudit, Description: "An event that related to a resource but not changing the resource. This is often an error log for an operation to the resource.", }, { SourceLogType: LogTypeEvent, Description: "An event that related to a resource", }, { SourceLogType: LogTypeNode, Description: "An event that related to a node resource", }, { SourceLogType: LogTypeComputeApi, Description: "An event that related to a compute resource", }, { SourceLogType: LogTypeControlPlaneComponent, Description: "A log related to the timeline resource related to control plane component", }, { SourceLogType: LogTypeAutoscaler, Description: "A log related to the Pod which triggered or prevented autoscaler", }, }, }, RelationshipResourceCondition: { Visible: true, EnumKeyName: "RelationshipResourceCondition", Label: "condition", LongName: "Status condition field timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#4c29e8"), Hint: "Resource condition written on .status.conditions", SortPriority: 2000, Description: "A timeline showing the state changes on `.status.conditions` of the parent resource", GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateConditionTrue, SourceLogType: LogTypeAudit, Description: "The condition state is `True`. **This doesn't always mean a good status** (For example, `NetworkUnreachabel` condition on a Node means a bad condition when it is `True`)", }, { State: RevisionStateConditionFalse, SourceLogType: LogTypeAudit, Description: "The condition state is `False`. **This doesn't always mean a bad status** (For example, `NetworkUnreachabel` condition on a Node means a good condition when it is `False`)", }, { State: RevisionStateConditionUnknown, SourceLogType: LogTypeAudit, Description: "The condition state is `Unknown`", }, }, }, RelationshipOperation: { Visible: true, EnumKeyName: "RelationshipOperation", Label: "operation", LongName: "Operation timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#000000"), Hint: "GCP operations associated with this resource", SortPriority: 3000, Description: "A timeline showing long running operation status related to the parent resource", GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateOperationStarted, SourceLogType: LogTypeComputeApi, Description: "A long running operation is running", }, { State: RevisionStateOperationFinished, SourceLogType: LogTypeComputeApi, Description: "An operation is finished at the time of left edge of this operation.", }, { State: RevisionStateOperationStarted, SourceLogType: LogTypeGkeAudit, Description: "A long running operation is running", }, { State: RevisionStateOperationFinished, SourceLogType: LogTypeGkeAudit, Description: "An operation is finished at the time of left edge of this operation.", }, { State: RevisionStateOperationStarted, SourceLogType: LogTypeNetworkAPI, Description: "A long running operation is running", }, { State: RevisionStateOperationFinished, SourceLogType: LogTypeNetworkAPI, Description: "An operation is finished at the time of left edge of this operation.", }, { State: RevisionStateOperationStarted, SourceLogType: LogTypeMulticloudAPI, Description: "A long running operation is running", }, { State: RevisionStateOperationFinished, SourceLogType: LogTypeMulticloudAPI, Description: "An operation is finished at the time of left edge of this operation.", }, { State: RevisionStateOperationStarted, SourceLogType: LogTypeOnPremAPI, Description: "A long running operation is running", }, { State: RevisionStateOperationFinished, SourceLogType: LogTypeOnPremAPI, Description: "An operation is finished at the time of left edge of this operation.", }, }, }, RelationshipEndpointSlice: { Visible: true, EnumKeyName: "RelationshipEndpointSlice", Label: "endpoint", LongName: "Endpoint serving state timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#008000"), Hint: "Pod serving status obtained from endpoint slice", SortPriority: 20000, Description: "A timeline indicates the status of endpoint related to the parent resource(Pod or Service)", GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateEndpointReady, SourceLogType: LogTypeAudit, Description: "An endpoint associated with the parent resource is ready", }, { State: RevisionStateEndpointUnready, SourceLogType: LogTypeAudit, Description: "An endpoint associated with the parent resource is not ready. Traffic shouldn't be routed during this time.", }, { State: RevisionStateEndpointTerminating, SourceLogType: LogTypeAudit, Description: "An endpoint associated with the parent resource is being terminated. New traffic shouldn't be routed to this endpoint during this time, but the endpoint can still have pending requests.", }, }, }, RelationshipContainer: { Visible: true, EnumKeyName: "RelationshipContainer", Label: "container", LongName: "Container timeline", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#fe9bab"), Hint: "Statuses/logs of a container", SortPriority: 5000, Description: "A timline of a container included in the parent timeline of a Pod", GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateContainerWaiting, SourceLogType: LogTypeAudit, Description: "The container is not started yet and waiting for something.(Example: Pulling images, mounting volumes ...etc)", }, { State: RevisionStateContainerRunningNonReady, SourceLogType: LogTypeAudit, Description: "The container is started but the readiness is not ready.", }, { State: RevisionStateContainerRunningReady, SourceLogType: LogTypeAudit, Description: "The container is started and the readiness is ready", }, { State: RevisionStateContainerTerminatedWithSuccess, SourceLogType: LogTypeAudit, Description: "The container is already terminated with successful exit code = 0", }, { State: RevisionStateContainerTerminatedWithError, SourceLogType: LogTypeAudit, Description: "The container is already terminated with errornous exit code != 0", }, }, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeContainer, Description: "A container log on stdout/etderr", }, { SourceLogType: LogTypeNode, Description: "kubelet/containerd logs associated with the container", }, }, }, RelationshipNodeComponent: { Visible: true, EnumKeyName: "RelationshipNodeComponent", Label: "node-component", LongName: "Node component timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#0077CC"), Hint: "Non container resource running on a node", SortPriority: 6000, Description: "A component running inside of the parent timeline of a Node", GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateInferred, SourceLogType: LogTypeNode, Description: "The component is infrred to be running because of the logs from it", }, { State: RevisionStateExisting, SourceLogType: LogTypeNode, Description: "The component is running running. (Few node components supports this state because the parser knows logs on startup for specific components)", }, { State: RevisionStateDeleted, SourceLogType: LogTypeNode, Description: "The component is no longer running. (Few node components supports this state because the parser knows logs on termination for specific components)", }, }, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeNode, Description: "A log from the component on the log", }, }, }, RelationshipOwnerReference: { Visible: true, EnumKeyName: "RelationshipOwnerReference", Label: "owns", LongName: "Owning children timeline", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#33DD88"), Hint: "A k8s resource related to this resource from .metadata.ownerReference field", SortPriority: 7000, GeneratableAliasTimelineInfo: []GeneratableAliasTimelineInfo{ { AliasedTimelineRelationship: RelationshipChild, SourceLogType: LogTypeAudit, Description: "This timeline shows the events and revisions of the owning resources.", }, }, }, RelationshipPodBinding: { Visible: true, EnumKeyName: "RelationshipPodBinding", Label: "binds", LongName: "Pod binding timeline", LabelColor: mustHexToHDRColor4("#000000"), LabelBackgroundColor: mustHexToHDRColor4("#FF8855"), Hint: "Pod binding subresource associated with this node", SortPriority: 8000, GeneratableAliasTimelineInfo: []GeneratableAliasTimelineInfo{ { AliasedTimelineRelationship: RelationshipChild, SourceLogType: LogTypeAudit, Description: "This timeline shows the binding subresources associated on a node", }, }, }, RelationshipNetworkEndpointGroup: { Visible: true, EnumKeyName: "RelationshipNetworkEndpointGroup", Label: "neg", LongName: "Network Endpoint Group timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#A52A2A"), Hint: "Pod serving status obtained from the associated NEG status", SortPriority: 20500, GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateConditionTrue, SourceLogType: LogTypeNetworkAPI, Description: "indicates the NEG is already attached to the Pod.", }, { State: RevisionStateConditionFalse, SourceLogType: LogTypeNetworkAPI, Description: "indicates the NEG is detached from the Pod", }, }, }, RelationshipManagedInstanceGroup: { Visible: true, EnumKeyName: "RelationshipManagedInstanceGroup", Label: "mig", LongName: "Managed instance group timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF5555"), Hint: "MIG logs associated to the parent node pool", SortPriority: 10000, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeAutoscaler, Description: "Autoscaler logs associated to a MIG(e.g The mig was scaled up by the austoscaler)", }, }, }, RelationshipControlPlaneComponent: { Visible: true, EnumKeyName: "RelationshipControlPlaneComponent", Label: "controlplane", LongName: "Control plane component timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF5555"), Hint: "control plane component of the cluster", SortPriority: 11000, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeControlPlaneComponent, Description: "A log from the control plane component", }, }, }, RelationshipSerialPort: { Visible: true, EnumKeyName: "RelationshipSerialPort", Label: "serialport", LongName: "Serialport log timeline", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#333333"), Hint: "Serial port logs of the node", SortPriority: 1500, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeSerialPort, Description: "A serialport log from the node", }, }, }, RelationshipAirflowTaskInstance: { Visible: true, EnumKeyName: "RelationshipAirflowTaskInstance", Label: "task", LongName: "@task(Operator, Sensor, etc)", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#377e22"), Hint: "Task is the basic unit of execution in Airflow", SortPriority: 1501, GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStateComposerTiDeferred, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = deferred", }, { State: RevisionStateComposerTiFailed, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = failed", }, { State: RevisionStateComposerTiRemoved, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = removed", }, { State: RevisionStateComposerTiRunning, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = running", }, { State: RevisionStateComposerTiScheduled, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = scheduled", }, { State: RevisionStateComposerTiSuccess, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = success", }, { State: RevisionStateComposerTiQueued, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = queued", }, { State: RevisionStateComposerTiUpForRetry, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = up_for_retry", }, { State: RevisionStateComposerTiUpForReschedule, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = reschedule", }, { State: RevisionStateComposerTiZombie, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = zombie", }, { State: RevisionStateComposerTiUpstreamFailed, SourceLogType: LogTypeComposerEnvironment, Description: "Ti.state = upstream_failed", }, { State: RevisionStateComposerTiRestarting, SourceLogType: LogTypeControlPlaneComponent, Description: "Ti.state = restarting", }, }, }, RelationshipCSMAccessLog: { Visible: true, EnumKeyName: "RelationshipCSMAccessLog", Label: "csm", LongName: "CSM access log", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF8500"), Hint: "CSM Access logs related to this resource", SortPriority: 5001, GeneratableEvents: []GeneratableEventInfo{ { SourceLogType: LogTypeCSMAccessLog, Description: "An access log entry reported from CSM", }, }, }, RelationshipPodPhase: { Visible: true, EnumKeyName: "RelationshipPodPhase", Label: "pod", LongName: "Pod phase", LabelColor: mustHexToHDRColor4("#FFFFFF"), LabelBackgroundColor: mustHexToHDRColor4("#FF8855"), Hint: "Pod phase running on the node", SortPriority: 8000, GeneratableRevisions: []GeneratableRevisionInfo{ { State: RevisionStatePodPhasePending, SourceLogType: LogTypeAudit, Description: "Pod is pending", }, { State: RevisionStatePodPhaseRunning, SourceLogType: LogTypeAudit, Description: "Pod is running", }, { State: RevisionStatePodPhaseSucceeded, SourceLogType: LogTypeAudit, Description: "Pod is succeeded", }, { State: RevisionStatePodPhaseFailed, SourceLogType: LogTypeAudit, Description: "Pod is failed", }, { State: RevisionStatePodPhaseUnknown, SourceLogType: LogTypeAudit, Description: "Pod phase is unknown", }, }, }, }
View Source
var RevisionStates = map[RevisionState]RevisionStateFrontendMetadata{ RevisionStateInferred: { EnumKeyName: "RevisionStateInferred", BackgroundColor: mustHexToHDRColor4("#999922"), CSSSelector: "inferred", Label: "Resource may be existing", Icon: "unknown_document", Style: RevisionStateStylePartialInfo, }, RevisionStateExisting: { EnumKeyName: "RevisionStateExisting", BackgroundColor: mustHexToHDRColor4("#0000FF"), CSSSelector: "existing", Label: "Resource is existing", Icon: "deployed_code", }, RevisionStateDeleted: { EnumKeyName: "RevisionStateDeleted", BackgroundColor: mustHexToHDRColor4("#CC0000"), CSSSelector: "deleted", Label: "Resource is deleted", Icon: "delete_forever", Style: RevisionStateStyleDeleted, }, RevisionStateConditionTrue: { EnumKeyName: "RevisionStateConditionTrue", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "condition_true", Label: "State is 'True'", Icon: "lightbulb", }, RevisionStateConditionFalse: { EnumKeyName: "RevisionStateConditionFalse", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "condition_false", Label: "State is 'False'", Icon: "light_off", }, RevisionStateConditionUnknown: { EnumKeyName: "RevisionStateConditionUnknown", BackgroundColor: mustHexToHDRColor4("#663366"), CSSSelector: "condition_unknown", Label: "State is 'Unknown'", Icon: "siren_question", }, RevisionStateOperationStarted: { EnumKeyName: "RevisionStateOperationStarted", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "operation_started", Label: "Processing operation", Icon: "change_circle", }, RevisionStateOperationFinished: { EnumKeyName: "RevisionStateOperationFinished", BackgroundColor: mustHexToHDRColor4("#333333"), CSSSelector: "operation_finished", Label: "Operation is finished", Icon: "check_circle", Style: RevisionStateStyleDeleted, }, RevisionStateContainerWaiting: { EnumKeyName: "RevisionStateContainerWaiting", BackgroundColor: mustHexToHDRColor4("#4444ff"), CSSSelector: "container_waiting", Label: "Waiting for starting container", Icon: "deployed_code_history", Style: RevisionStateStyleDeleted, }, RevisionStateContainerRunningNonReady: { EnumKeyName: "RevisionStateContainerRunningNonReady", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "container_running_non_ready", Label: "Container is not ready", Icon: "heart_broken", }, RevisionStateContainerRunningReady: { EnumKeyName: "RevisionStateContainerRunningReady", BackgroundColor: mustHexToHDRColor4("#007700"), CSSSelector: "container_running_ready", Label: "Container is ready", Icon: "heart_check", }, RevisionStateContainerTerminatedWithSuccess: { EnumKeyName: "RevisionStateContainerTerminatedWithSuccess", BackgroundColor: mustHexToHDRColor4("#113333"), CSSSelector: "container_terminated_success", Label: "Container exited with healthy exit code", Style: RevisionStateStyleDeleted, Icon: "check_circle", }, RevisionStateContainerTerminatedWithError: { EnumKeyName: "RevisionStateContainerTerminatedWithError", BackgroundColor: mustHexToHDRColor4("#551111"), CSSSelector: "container_terminated_error", Label: "Container exited with erroneous exit code", Style: RevisionStateStyleDeleted, Icon: "error", }, RevisionStateComposerTiScheduled: { EnumKeyName: "RevisionStateComposerTiScheduled", BackgroundColor: mustHexToHDRColor4("#d1b48c"), CSSSelector: "composer_ti_scheduled", Label: "Task instance is scheduled", }, RevisionStateComposerTiQueued: { EnumKeyName: "RevisionStateComposerTiQueued", BackgroundColor: mustHexToHDRColor4("#808080"), CSSSelector: "composer_ti_queued", Label: "Task instance is queued", }, RevisionStateComposerTiRunning: { EnumKeyName: "RevisionStateComposerTiRunning", BackgroundColor: mustHexToHDRColor4("#00ff01"), CSSSelector: "composer_ti_running", Label: "Task instance is running", }, RevisionStateComposerTiDeferred: { EnumKeyName: "RevisionStateComposerTiDeferred", BackgroundColor: mustHexToHDRColor4("#9470dc"), CSSSelector: "composer_ti_deferred", Label: "Task instance is deferrd", }, RevisionStateComposerTiSuccess: { EnumKeyName: "RevisionStateComposerTiSuccess", BackgroundColor: mustHexToHDRColor4("#008001"), CSSSelector: "composer_ti_success", Label: "Task instance completed with success state", }, RevisionStateComposerTiFailed: { EnumKeyName: "RevisionStateComposerTiFailed", BackgroundColor: mustHexToHDRColor4("#fe0000"), CSSSelector: "composer_ti_failed", Label: "Task instance completed with errournous state", }, RevisionStateComposerTiUpForRetry: { EnumKeyName: "RevisionStateComposerTiUpForRetry", BackgroundColor: mustHexToHDRColor4("#fed700"), CSSSelector: "composer_ti_up_for_retry", Label: "Task instance is waiting for next retry", }, RevisionStateComposerTiRestarting: { EnumKeyName: "RevisionStateComposerTiRestarting", BackgroundColor: mustHexToHDRColor4("#ee82ef"), CSSSelector: "composer_ti_restarting", Label: "Task instance is being restarted", }, RevisionStateComposerTiRemoved: { EnumKeyName: "RevisionStateComposerTiRemoved", BackgroundColor: mustHexToHDRColor4("#d3d3d3"), CSSSelector: "composer_ti_removed", Label: "Task instance is removed", }, RevisionStateComposerTiUpstreamFailed: { EnumKeyName: "RevisionStateComposerTiUpstreamFailed", BackgroundColor: mustHexToHDRColor4("#ffa11b"), CSSSelector: "composer_ti_upstream_failed", Label: "Upstream of this task is failed", }, RevisionStateComposerTiZombie: { EnumKeyName: "RevisionStateComposerTiZombie", BackgroundColor: mustHexToHDRColor4("#4b0082"), CSSSelector: "composer_ti_zombie", Label: "Task instance is being zombie", }, RevisionStateComposerTiUpForReschedule: { EnumKeyName: "RevisionStateComposerTiUpForReschedule", BackgroundColor: mustHexToHDRColor4("#808080"), CSSSelector: "composer_ti_up_for_reschedule", Label: "Task instance is waiting for being rescheduled", }, RevisionStateDeleting: { EnumKeyName: "RevisionStateDeleting", BackgroundColor: mustHexToHDRColor4("#CC5500"), CSSSelector: "deleting", Label: "Resource is under deleting with graceful period", Icon: "auto_delete", }, RevisionStateEndpointReady: { EnumKeyName: "RevisionStateEndpointReady", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "ready", Label: "Endpoint is ready", Icon: "heart_check", }, RevisionStateEndpointUnready: { EnumKeyName: "RevisionStateEndpointUnready", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "unready", Label: "Endpoint is not ready", Icon: "heart_broken", }, RevisionStateEndpointTerminating: { EnumKeyName: "RevisionStateEndpointTerminating", BackgroundColor: mustHexToHDRColor4("#cea700"), CSSSelector: "terminating", Label: "Endpoint is being terminated", Icon: "auto_delete", }, RevisionStateProvisioning: { EnumKeyName: "RevisionStateProvisioning", BackgroundColor: mustHexToHDRColor4("#6666ff"), CSSSelector: "provisioning", Label: "Resource is being provisioned", Icon: "deployed_code_history", }, RevisionAutoscalerNoError: { EnumKeyName: "RevisionAutoscalerNoError", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "autoscaler_no_error", Label: "Autoscaler has no error", Icon: "heart_check", }, RevisionAutoscalerHasErrors: { EnumKeyName: "RevisionAutoscalerHasErrors", BackgroundColor: mustHexToHDRColor4("#EE4400"), CSSSelector: "autoscaler_has_errors", Label: "Autoscaler has errors", Icon: "heart_broken", }, RevisionStateConditionNotGiven: { EnumKeyName: "RevisionStateConditionNotGiven", BackgroundColor: mustHexToHDRColor4("#666666"), CSSSelector: "condition_not_given", Label: "Condition is not defined at this moment", Icon: "select", Style: RevisionStateStyleDeleted, }, RevisionStateConditionNoAvailableInfo: { EnumKeyName: "RevisionStateConditionNoAvailableInfo", BackgroundColor: mustHexToHDRColor4("#997700"), CSSSelector: "condition_no_available_info", Label: "No enough information to show condition", Icon: "unknown_document", }, RevisionStatePodPhasePending: { EnumKeyName: "RevisionStatePodPhasePending", BackgroundColor: mustHexToHDRColor4("#666666"), CSSSelector: "pod_phase_pending", Label: "Pod is pending", Icon: "hourglass_empty", }, RevisionStatePodPhaseScheduled: { EnumKeyName: "RevisionStatePodPhaseScheduled", BackgroundColor: mustHexToHDRColor4("#4444ff"), CSSSelector: "pod_phase_scheduled", Label: "Pod is scheduled", Icon: "schedule", }, RevisionStatePodPhaseRunning: { EnumKeyName: "RevisionStatePodPhaseRunning", BackgroundColor: mustHexToHDRColor4("#004400"), CSSSelector: "pod_phase_running", Label: "Pod is running", Icon: "motion_play", }, RevisionStatePodPhaseSucceeded: { EnumKeyName: "RevisionStatePodPhaseSucceeded", BackgroundColor: mustHexToHDRColor4("#113333"), CSSSelector: "pod_phase_succeeded", Label: "Pod is succeeded", Icon: "check_circle", Style: RevisionStateStyleDeleted, }, RevisionStatePodPhaseFailed: { EnumKeyName: "RevisionStatePodPhaseFailed", BackgroundColor: mustHexToHDRColor4("#331111"), CSSSelector: "pod_phase_failed", Label: "Pod is failed", Icon: "error", Style: RevisionStateStyleDeleted, }, RevisionStatePodPhaseUnknown: { EnumKeyName: "RevisionStatePodPhaseUnknown", BackgroundColor: mustHexToHDRColor4("#997700"), CSSSelector: "pod_phase_unknown", Label: "Pod status is not available from current log range", Style: RevisionStateStylePartialInfo, Icon: "unknown_document", }, RevisionStateContainerStatusNotAvailable: { EnumKeyName: "RevisionStateContainerStatusNotAvailable", BackgroundColor: mustHexToHDRColor4("#666666"), CSSSelector: "container_status_not_available", Label: "Container status is not available", Style: RevisionStateStylePartialInfo, Icon: "unknown_document", }, RevisionStateContainerStarted: { EnumKeyName: "RevisionStateContainerStarted", BackgroundColor: mustHexToHDRColor4("#997700"), CSSSelector: "container_started", Label: "Container is started but readiness info is not available", Style: RevisionStateStylePartialInfo, Icon: "siren_question", }, }
View Source
var RevisionVerbs = map[RevisionVerb]RevisionVerbFrontendMetadata{ RevisionVerbUnknown: { EnumKeyName: "RevisionVerbUnknown", Label: "Unknown", CSSSelector: "unknown", LabelBackgroundColor: mustHexToHDRColor4("#CC33CC"), }, RevisionVerbCreate: { EnumKeyName: "RevisionVerbCreate", Label: "Create", CSSSelector: "create", LabelBackgroundColor: mustHexToHDRColor4("#1E88E5"), }, RevisionVerbDelete: { EnumKeyName: "RevisionVerbDelete", Label: "Delete", CSSSelector: "delete", LabelBackgroundColor: mustHexToHDRColor4("#F54945"), }, RevisionVerbUpdate: { EnumKeyName: "RevisionVerbUpdate", Label: "Update", CSSSelector: "update", LabelBackgroundColor: mustHexToHDRColor4("#FDD835"), }, RevisionVerbPatch: { EnumKeyName: "RevisionVerbPatch", Label: "Patch", CSSSelector: "patch", LabelBackgroundColor: mustHexToHDRColor4("#FDD835"), }, RevisionVerbDeleteCollection: { EnumKeyName: "RevisionVerbDeleteCollection", Label: "DeleteCollection", CSSSelector: "delete-collection", LabelBackgroundColor: mustHexToHDRColor4("#F54945"), }, RevisionVerbReady: { EnumKeyName: "RevisionVerbReady", Label: "Ready", CSSSelector: "ready", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), }, RevisionVerbNonReady: { EnumKeyName: "RevisionVerbNonReady", Label: "NonReady", CSSSelector: "non-ready", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), }, RevisionVerbTerminating: { EnumKeyName: "RevisionVerbTerminating", Label: "Terminating", CSSSelector: "terminating", LabelBackgroundColor: mustHexToHDRColor4("#FFAA00"), }, RevisionVerbOperationStart: { EnumKeyName: "RevisionVerbOperationStart", Label: "Start", CSSSelector: "operation-start", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), }, RevisionVerbOperationFinish: { EnumKeyName: "RevisionVerbOperationFinish", Label: "Finish", CSSSelector: "operation-finish", LabelBackgroundColor: mustHexToHDRColor4("#9999CC"), }, RevisionVerbStatusUnknown: { EnumKeyName: "RevisionVerbStatusUnknown", Label: "Condition(Unknown)", CSSSelector: "status-unknown", LabelBackgroundColor: mustHexToHDRColor4("#AA66AA"), }, RevisionVerbStatusTrue: { EnumKeyName: "RevisionVerbStatusTrue", Label: "Condition(True)", CSSSelector: "status-true", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), }, RevisionVerbStatusFalse: { EnumKeyName: "RevisionVerbStatusFalse", Label: "Condition(False)", CSSSelector: "status-false", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), }, RevisionVerbContainerWaiting: { EnumKeyName: "RevisionVerbContainerWaiting", Label: "Waiting", LabelBackgroundColor: mustHexToHDRColor4("#FDD835"), CSSSelector: "container-waiting", }, RevisionVerbContainerReady: { EnumKeyName: "RevisionVerbContainerReady", Label: "Ready", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "container-ready", }, RevisionVerbContainerNonReady: { EnumKeyName: "RevisionVerbContainerNonReady", Label: "NonReady", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), CSSSelector: "container-non-ready", }, RevisionVerbContainerSuccess: { EnumKeyName: "RevisionVerbContainerSuccess", Label: "Success", LabelBackgroundColor: mustHexToHDRColor4("#007700"), CSSSelector: "container-success", }, RevisionVerbContainerError: { EnumKeyName: "RevisionVerbContainerError", Label: "Error", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "container-error", }, RevisionVerbComposerTaskInstanceScheduled: { EnumKeyName: "RevisionVerbComposerTaskInstanceScheduled", Label: "Scheduled", LabelBackgroundColor: mustHexToHDRColor4("#1E88E5"), CSSSelector: "composer-taskinstance-scheduled", }, RevisionVerbComposerTaskInstanceQueued: { EnumKeyName: "RevisionVerbComposerTaskInstanceQueued", Label: "Queued", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "composer-taskinstance-queued", }, RevisionVerbComposerTaskInstanceRunning: { EnumKeyName: "RevisionVerbComposerTaskInstanceRunning", Label: "Running", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "composer-taskinstance-running", }, RevisionVerbComposerTaskInstanceUpForRetry: { EnumKeyName: "RevisionVerbComposerTaskInstanceUpForRetry", Label: "UpForRetry", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), CSSSelector: "composer-taskinstance-upforretry", }, RevisionVerbComposerTaskInstanceSuccess: { EnumKeyName: "RevisionVerbComposerTaskInstanceSuccess", Label: "Success", LabelBackgroundColor: mustHexToHDRColor4("#22CC22"), CSSSelector: "composer-taskinstance-success", }, RevisionVerbComposerTaskInstanceFailed: { EnumKeyName: "RevisionVerbComposerTaskInstanceFailed", Label: "Failed", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "composer-taskinstance-failed", }, RevisionVerbComposerTaskInstanceDeferred: { EnumKeyName: "RevisionVerbComposerTaskInstanceDeferred", Label: "Deferred", LabelBackgroundColor: mustHexToHDRColor4("#9470DC"), CSSSelector: "composer-taskinstance-deferred", }, RevisionVerbComposerTaskInstanceUpForReschedule: { EnumKeyName: "RevisionVerbComposerTaskInstanceUpForReschedule", Label: "UpForReschedule", LabelBackgroundColor: mustHexToHDRColor4("#FF7700"), CSSSelector: "composer-taskinstance-upforreschedule", }, RevisionVerbComposerTaskInstanceRemoved: { EnumKeyName: "RevisionVerbComposerTaskInstanceRemoved", Label: "Removed", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "composer-taskinstance-removed", }, RevisionVerbComposerTaskInstanceUpstreamFailed: { EnumKeyName: "RevisionVerbComposerTaskInstanceUpstreamFailed", Label: "UpstreamFailed", LabelBackgroundColor: mustHexToHDRColor4("#A51915"), CSSSelector: "composer-taskinstance-upstreamfailed", }, RevisionVerbComposerTaskInstanceZombie: { EnumKeyName: "RevisionVerbComposerTaskInstanceZombie", Label: "Zombie", LabelBackgroundColor: mustHexToHDRColor4("#696969"), CSSSelector: "composer-taskinstance-zombie", }, RevisionVerbComposerTaskInstanceStats: { EnumKeyName: "RevisionVerbComposerTaskInstanceStats", Label: "Stats", LabelBackgroundColor: mustHexToHDRColor4("#DDDDDD"), CSSSelector: "composer-taskinstance-stats", }, RevisionVerbComposerTaskInstanceUnimplemented: { EnumKeyName: "RevisionVerbComposerTaskInstanceUnimplemented", Label: "Unimplemented", LabelBackgroundColor: mustHexToHDRColor4("#DDDDDD"), CSSSelector: "composer-taskinstance-unimplemented", }, }
View Source
var Severities = map[Severity]SeverityFrontendMetadata{ SeverityUnknown: { EnumKeyName: "SeverityUnknown", Label: "UNKNOWN", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#000000"), BorderColor: mustHexToHDRColor4("#AAAAAA"), }, SeverityInfo: { EnumKeyName: "SeverityInfo", Label: "INFO", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#0000FF"), BorderColor: mustHexToHDRColor4("#1E88E5"), }, SeverityWarning: { EnumKeyName: "SeverityWarning", Label: "WARNING", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#FFAA44"), BorderColor: mustHexToHDRColor4("#FDD835"), }, SeverityError: { EnumKeyName: "SeverityError", Label: "ERROR", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#FF3935"), BorderColor: mustHexToHDRColor4("#FF8888"), }, SeverityFatal: { EnumKeyName: "SeverityFatal", Label: "FATAL", LabelColor: mustHexToHDRColor4("#FFFFFF"), BackgroundColor: mustHexToHDRColor4("#AA66AA"), BorderColor: mustHexToHDRColor4("#FF99FF"), }, }
Functions ¶
func ColorToHexRGB ¶ added in v0.51.0
ColorToHexRGB converts HDRColor4 to sRGB hex.
func ColorToHexRGBA ¶ added in v0.51.0
ColorToHexRGBA converts HDRColor4 to sRGB hex with alpha.
Types ¶
type GeneratableAliasTimelineInfo ¶
type GeneratableAliasTimelineInfo struct {
AliasedTimelineRelationship ParentRelationship
SourceLogType LogType
Description string
}
type GeneratableEventInfo ¶
type GeneratableRevisionInfo ¶
type GeneratableRevisionInfo struct {
State RevisionState
SourceLogType LogType
Description string
}
type LogType ¶
type LogType int
const ( LogTypeUnknown LogType = 0 LogTypeEvent LogType = 1 LogTypeAudit LogType = 2 LogTypeContainer LogType = 3 LogTypeNode LogType = 4 LogTypeGkeAudit LogType = 5 LogTypeComputeApi LogType = 6 LogTypeMulticloudAPI LogType = 7 LogTypeOnPremAPI LogType = 8 LogTypeNetworkAPI LogType = 9 LogTypeAutoscaler LogType = 10 LogTypeComposerEnvironment LogType = 11 LogTypeControlPlaneComponent LogType = 12 LogTypeSerialPort LogType = 13 LogTypeCSMAccessLog LogType = 14 // Added since 0.49 )
type LogTypeFrontendMetadata ¶
type ParentRelationship ¶
type ParentRelationship int
const ( RelationshipChild ParentRelationship = 0 RelationshipResourceCondition ParentRelationship = 1 RelationshipOperation ParentRelationship = 2 RelationshipEndpointSlice ParentRelationship = 3 RelationshipContainer ParentRelationship = 4 RelationshipNodeComponent ParentRelationship = 5 RelationshipOwnerReference ParentRelationship = 6 RelationshipPodBinding ParentRelationship = 7 // Deprecated and replaced by PodPhase RelationshipNetworkEndpointGroup ParentRelationship = 8 RelationshipManagedInstanceGroup ParentRelationship = 9 RelationshipControlPlaneComponent ParentRelationship = 10 RelationshipSerialPort ParentRelationship = 11 RelationshipAirflowTaskInstance ParentRelationship = 12 RelationshipCSMAccessLog ParentRelationship = 13 // Added since 0.49 RelationshipPodPhase ParentRelationship = 14 // Added since 0.50 )
type ParentRelationshipFrontendMetadata ¶
type ParentRelationshipFrontendMetadata struct {
// Visible is a flag if this relationship is visible as a chip left of timeline name.
Visible bool
// EnumKeyName is the name of enum exactly matching with the constant variable defined in this file.
EnumKeyName string
// Label is a short name shown on frontend as the chip on the left of timeline name.
Label string
// Hint explains the meaning of this timeline. This is shown as the tooltip on front end.
Hint string
LabelColor HDRColor4
LabelBackgroundColor HDRColor4
SortPriority int
// LongName is a descriptive name of the ralationship. This value is used in the document.
LongName string
// Description is a description of this timeline ralationship. This value is used in the document.
Description string
// GeneratableEvents contains the list of possible event types put on a timeline with the relationship type. This field is used for document generation.
GeneratableEvents []GeneratableEventInfo
// GeneratableRevisions contains the list of possible revision types put on a timeline with the relationship type. This field is used for document generation.
GeneratableRevisions []GeneratableRevisionInfo
// GeneratableAliasTimelineInfo contains the list of possible target timelines aliased from the timeline of this relationship. This field is used for document generation.
GeneratableAliasTimelineInfo []GeneratableAliasTimelineInfo
}
parentRelationshipFrontendMetadata is a type defined for each parent relationship types.
type RevisionState ¶
type RevisionState int
const ( RevisionStateInferred RevisionState = 0 RevisionStateExisting RevisionState = 1 RevisionStateDeleted RevisionState = 2 RevisionStateConditionTrue RevisionState = 3 RevisionStateConditionFalse RevisionState = 4 RevisionStateConditionUnknown RevisionState = 5 RevisionStateOperationStarted RevisionState = 6 RevisionStateOperationFinished RevisionState = 7 RevisionStateContainerWaiting RevisionState = 8 RevisionStateContainerRunningNonReady RevisionState = 9 RevisionStateContainerRunningReady RevisionState = 10 RevisionStateContainerTerminatedWithSuccess RevisionState = 11 RevisionStateContainerTerminatedWithError RevisionState = 12 // Cloud Composer RevisionStateComposerTiScheduled RevisionState = 13 RevisionStateComposerTiQueued RevisionState = 14 RevisionStateComposerTiRunning RevisionState = 15 RevisionStateComposerTiDeferred RevisionState = 16 RevisionStateComposerTiSuccess RevisionState = 17 RevisionStateComposerTiFailed RevisionState = 18 RevisionStateComposerTiUpForRetry RevisionState = 19 RevisionStateComposerTiRestarting RevisionState = 20 RevisionStateComposerTiRemoved RevisionState = 21 RevisionStateComposerTiUpstreamFailed RevisionState = 22 RevisionStateComposerTiZombie RevisionState = 23 RevisionStateComposerTiUpForReschedule RevisionState = 24 RevisionStateDeleting RevisionState = 25 // Added since 0.41 RevisionStateEndpointReady RevisionState = 26 RevisionStateEndpointTerminating RevisionState = 27 RevisionStateEndpointUnready RevisionState = 28 RevisionStateProvisioning RevisionState = 29 // Added since 0.42 RevisionAutoscalerNoError RevisionState = 30 // Added since 0.49 RevisionAutoscalerHasErrors RevisionState = 31 RevisionStateConditionNotGiven RevisionState = 32 // Added since 0.50 RevisionStateConditionNoAvailableInfo RevisionState = 33 // Added since 0.50 RevisionStatePodPhasePending RevisionState = 34 // Added since 0.50 RevisionStatePodPhaseScheduled RevisionState = 35 // Added since 0.50 RevisionStatePodPhaseRunning RevisionState = 36 // Added since 0.50 RevisionStatePodPhaseSucceeded RevisionState = 37 // Added since 0.50 RevisionStatePodPhaseFailed RevisionState = 38 // Added since 0.50 RevisionStatePodPhaseUnknown RevisionState = 39 // Added since 0.50 RevisionStateContainerStatusNotAvailable RevisionState = 40 // Added since 0.50 RevisionStateContainerStarted RevisionState = 41 // Added since 0.50 )
type RevisionStateFrontendMetadata ¶
type RevisionStateFrontendMetadata struct {
// EnumKeyName is the name of this enum value. Must match with the enum key.
EnumKeyName string
// CSSSelector is used for CSS class name. it must be valid as the css class name
CSSSelector string
// Label is human readable text explaining this state.
Label string
// BackgroundColor is used for rendering the revision rectangles in timeline view.
BackgroundColor HDRColor4
// Icon is used for rendering the icon in timeline view.
Icon string
// Style decides non color styling of the revision like stripes depending on its revision purpose.
Style RevisionStateStyle
}
type RevisionStateStyle ¶ added in v0.51.0
type RevisionStateStyle int
const ( RevisionStateStyleNormal RevisionStateStyle = 0 RevisionStateStyleDeleted RevisionStateStyle = 1 RevisionStateStylePartialInfo RevisionStateStyle = 2 )
type RevisionVerb ¶
type RevisionVerb int
const ( RevisionVerbUnknown RevisionVerb = 0 RevisionVerbCreate RevisionVerb = 1 RevisionVerbDelete RevisionVerb = 2 RevisionVerbUpdate RevisionVerb = 3 RevisionVerbPatch RevisionVerb = 4 RevisionVerbDeleteCollection RevisionVerb = 5 RevisionVerbReady RevisionVerb = 6 RevisionVerbNonReady RevisionVerb = 7 RevisionVerbOperationStart RevisionVerb = 8 RevisionVerbOperationFinish RevisionVerb = 9 RevisionVerbStatusUnknown RevisionVerb = 10 RevisionVerbStatusTrue RevisionVerb = 11 RevisionVerbStatusFalse RevisionVerb = 12 RevisionVerbContainerWaiting RevisionVerb = 13 RevisionVerbContainerReady RevisionVerb = 14 RevisionVerbContainerNonReady RevisionVerb = 15 RevisionVerbContainerSuccess RevisionVerb = 16 RevisionVerbContainerError RevisionVerb = 17 RevisionVerbComposerTaskInstanceScheduled RevisionVerb = 18 RevisionVerbComposerTaskInstanceQueued RevisionVerb = 19 RevisionVerbComposerTaskInstanceRunning RevisionVerb = 20 RevisionVerbComposerTaskInstanceUpForRetry RevisionVerb = 21 RevisionVerbComposerTaskInstanceSuccess RevisionVerb = 22 RevisionVerbComposerTaskInstanceFailed RevisionVerb = 23 RevisionVerbComposerTaskInstanceDeferred RevisionVerb = 24 RevisionVerbComposerTaskInstanceUpForReschedule RevisionVerb = 25 RevisionVerbComposerTaskInstanceRemoved RevisionVerb = 26 RevisionVerbComposerTaskInstanceUpstreamFailed RevisionVerb = 27 RevisionVerbComposerTaskInstanceZombie RevisionVerb = 28 RevisionVerbComposerTaskInstanceStats RevisionVerb = 29 RevisionVerbComposerTaskInstanceUnimplemented RevisionVerb = 30 RevisionVerbTerminating RevisionVerb = 31 // Added since 0.41 for endpoint slice )
type RevisionVerbFrontendMetadata ¶
type RevisionVerbFrontendMetadata struct {
// EnumKeyName is the name of this enum value. Must match with the enum key.
EnumKeyName string
// Label string shown on frontnend to indicate the verb.
Label string
CSSSelector string
// Background color of the label on log pane and the diamond shape on timeline view.
LabelBackgroundColor HDRColor4
}
type SeverityFrontendMetadata ¶
type SeverityFrontendMetadata struct {
// EnumKeyName is the name of this enum value. Must match with the enum key.
EnumKeyName string
// Label string shown on frontnend to indicate the severity.
Label string
// Label color used in log pane.
LabelColor HDRColor4
// Background color of the label on log pane and the diamond shape on timeline view.
BackgroundColor HDRColor4
// Border color of the diamond shape on timeline view.
BorderColor HDRColor4
}
Click to show internal directories.
Click to hide internal directories.