{"modulePath":"github.com/devtron-labs/devtron","version":"v1.8.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package AppView\n\n## Types\n\n```go\ntype AppContainer struct {\n\tAppId                   int                        `json:\"appId\"`\n\tAppName                 string                     `json:\"appName\"`\n\tProjectId               int                        `json:\"projectId\"`\n\tAppEnvironmentContainer []*AppEnvironmentContainer `json:\"environments\"`\n\tDefaultEnv              AppEnvironmentContainer    `json:\"-\"`\n\tDescription             GenericNoteResponseBean    `json:\"description\"`\n}\n```\n\n```go\ntype AppContainerResponse struct {\n\tAppContainers      []*AppContainer    `json:\"appContainers\"`\n\tAppCount           int                `json:\"appCount\"`\n\tDeploymentGroupDTO DeploymentGroupDTO `json:\"deploymentGroup,omitempty\"`\n}\n```\n\n```go\ntype AppDetailContainer struct {\n\tDeploymentDetailContainer `json:\",inline\"`\n\tInstanceDetail            []InstanceDetail       `json:\"instanceDetail\"` //pod list with cpu, memory usage percent\n\tEnvironments              []Environment          `json:\"otherEnvironment,omitempty\"`\n\tLinkOuts                  []LinkOuts             `json:\"linkOuts,omitempty\"`\n\tResourceTree              map[string]interface{} `json:\"resourceTree,omitempty\"`\n\tNotes                     string                 `json:\"notes,omitempty\"`\n}\n```\n\n```go\ntype AppDetailsContainer struct {\n\tResourceTree  map[string]interface{} `json:\"resourceTree,omitempty\"`\n\tNotes         string                 `json:\"notes,omitempty\"`\n\tReleaseStatus map[string]interface{} `json:\"releaseStatus\"`\n}\n```\n\n```go\ntype AppEnvironmentContainer struct {\n\tAppId                       int                       `json:\"appId\"`\n\tAppName                     string                    `json:\"appName\"`\n\tEnvironmentId               int                       `json:\"environmentId\"`\n\tEnvironmentName             string                    `json:\"environmentName\"`\n\tNamespace                   string                    `json:\"namespace\"`\n\tClusterName                 string                    `json:\"clusterName\"`\n\tDeploymentCounter           int                       `json:\"deploymentCounter,omitempty\"`\n\tInstanceCounter             int                       `json:\"instanceCounter,omitempty\"`\n\tStatus                      string                    `json:\"status\"`\n\tAppStatus                   string                    `json:\"appStatus\"`\n\tCdStageStatus               *string                   `json:\"cdStageStatus\"`\n\tPreStageStatus              *string                   `json:\"preStageStatus\"`\n\tPostStageStatus             *string                   `json:\"postStageStatus\"`\n\tLastDeployedTime            string                    `json:\"lastDeployedTime,omitempty\"`\n\tLastDeployedImage           string                    `json:\"lastDeployedImage,omitempty\"`\n\tLastDeployedBy              string                    `json:\"lastDeployedBy,omitempty\"`\n\tLastSuccessDeploymentDetail DeploymentDetailContainer `json:\"-\"`\n\tDefault                     bool                      `json:\"default\"`\n\tDeleted                     bool                      `json:\"deleted\"`\n\tMaterialInfo                json.RawMessage           `json:\"materialInfo,omitempty\"`\n\tDataSource                  string                    `json:\"dataSource,omitempty\"`\n\tMaterialInfoJson            string                    `json:\"-\"`\n\tPipelineId                  int                       `json:\"-\"`\n\tPipelineReleaseCounter      int                       `json:\"-\"`\n\tCiArtifactId                int                       `json:\"ciArtifactId\"`\n\tActive                      bool                      `json:\"-\"`\n\tTeamId                      int                       `json:\"teamId\"`\n\tTeamName                    string                    `json:\"teamName\"`\n\tDescription                 string                    `json:\"description\" validate:\"max=40\"`\n\tTotalCount                  int                       `json:\"-\"`\n\tCommits                     []string                  `json:\"commits\"`\n}\n```\n\n```go\ntype AppStageStatus struct {\n\tStage     int    `json:\"stage\"`\n\tStageName string `json:\"stageName,omitempty\"`\n\tStatus    bool   `json:\"status\"`\n\tRequired  bool   `json:\"required\"`\n}\n```\n\n```go\ntype AppStages struct {\n\tAppId                   int    `json:\"app_id,omitempty\" sql:\"app_id\"`\n\tCiTemplateId            int    `json:\"ci_template_id,omitempty\" sql:\"ci_template_id\"`\n\tCiPipelineId            int    `json:\"ci_pipeline_id,omitempty\" sql:\"ci_pipeline_id\"`\n\tChartId                 int    `json:\"chart_id,omitempty\" sql:\"chart_id\"`\n\tChartGitRepoUrl         string `json:\"chart_git_repo_url,omitempty\" sql:\"chart_git_repo_url\"`\n\tPipelineId              int    `json:\"pipeline_id,omitempty\" sql:\"pipeline_id\"`\n\tYamlStatus              int    `json:\"yaml_status,omitempty\" sql:\"yaml_status\"`\n\tYamlReviewed            bool   `json:\"yaml_reviewed,omitempty\" sql:\"yaml_reviewed\"`\n\tDeploymentConfigRepoURL string `json:\"deployment_config_repo_url\" sql:\"-\"`\n\tGitMaterialExists       int    `json:\"-\" sql:\"-\"`\n}\n```\n\n```go\ntype CiMaterialDTO struct {\n\tName        string `json:\"name\"`\n\tSourceType  string `json:\"type\"`\n\tSourceValue string `json:\"value\"`\n}\n```\n\n```go\ntype CiPipelineLastSucceededTime struct {\n\tCiPipelineID    int       `json:\"ci_pipeline_id\"`\n\tLastSucceededOn time.Time `json:\"last_succeeded_on\"`\n}\n```\n\n```go\ntype DeploymentDetailContainer struct {\n\tInstalledAppId                int                    `json:\"installedAppId,omitempty\"`\n\tAppId                         int                    `json:\"appId,omitempty\"`\n\tPcoId                         int                    `json:\"pcoId\"`\n\tCdPipelineId                  int                    `json:\"cdPipelineId,omitempty\"`\n\tTriggerType                   string                 `json:\"triggerType,omitempty\"`\n\tParentEnvironmentName         string                 `json:\"parentEnvironmentName\"`\n\tAppStoreInstalledAppVersionId int                    `json:\"appStoreInstalledAppVersionId,omitempty\"`\n\tAppStoreChartName             string                 `json:\"appStoreChartName,omitempty\"`\n\tAppStoreChartId               int                    `json:\"appStoreChartId,omitempty\"`\n\tAppStoreAppName               string                 `json:\"appStoreAppName,omitempty\"`\n\tAppStoreAppVersion            string                 `json:\"appStoreAppVersion,omitempty\"`\n\tAppName                       string                 `json:\"appName\"`\n\tEnvironmentId                 int                    `json:\"environmentId\"`\n\tEnvironmentName               string                 `json:\"environmentName\"`\n\tNamespace                     string                 `json:\"namespace,omitempty\"`\n\tStatus                        string                 `json:\"status,omitempty\"`\n\tStatusMessage                 string                 `json:\"statusMessage,omitempty\"`\n\tLastDeployedTime              string                 `json:\"lastDeployedTime,omitempty\"`\n\tLastDeployedBy                string                 `json:\"lastDeployedBy,omitempty\"`\n\tMaterialInfo                  json.RawMessage        `json:\"materialInfo,omitempty\"`\n\tMaterialInfoJsonString        string                 `json:\"-\"`\n\tReleaseVersion                string                 `json:\"releaseVersion,omitempty\"`\n\tDefault                       bool                   `json:\"default,omitempty\"`\n\tDataSource                    string                 `json:\"dataSource,omitempty\"`\n\tLastDeployedPipeline          string                 `json:\"lastDeployedPipeline,omitempty\"`\n\tDeprecated                    bool                   `json:\"deprecated\"`\n\tK8sVersion                    string                 `json:\"k8sVersion\"`\n\tCiArtifactId                  int                    `json:\"ciArtifactId\"`\n\tParentArtifactId              int                    `json:\"parentArtifactId\"`\n\tClusterId                     int                    `json:\"clusterId\"`\n\tDeploymentAppType             string                 `json:\"deploymentAppType\"`\n\tCiPipelineId                  int                    `json:\"ciPipelineId,omitempty\"`\n\tIsExternalCi                  bool                   `json:\"externalCi\"`\n\tClusterName                   string                 `json:\"clusterName,omitempty\"`\n\tDockerRegistryId              string                 `json:\"dockerRegistryId,omitempty\"`\n\tIpsAccessProvided             bool                   `json:\"ipsAccessProvided\"`\n\tDeploymentAppDeleteRequest    bool                   `json:\"deploymentAppDeleteRequest\"`\n\tDescription                   string                 `json:\"description\" validate:\"max=40\"`\n\tIsVirtualEnvironment          bool                   `json:\"isVirtualEnvironment\"`\n\tHelmPackageName               string                 `json:\"helmPackageName\"`\n\tHelmReleaseInstallStatus      string                 `json:\"-\"`\n\tDeploymentConfig              *bean.DeploymentConfig `json:\"-\"`\n\tIsPipelineTriggered           bool                   `json:\"isPipelineTriggered\"`\n\tReleaseMode                   string                 `json:\"releaseMode\"`\n\tLastDeployedById              int                    `json:\"-\" sql:\"last_deployed_by_id\"`\n}\n```\n\n```go\ntype DeploymentDetailStat struct {\n\tAppId         int           `json:\"appId\"`\n\tEnvironmentId int           `json:\"environmentId\"`\n\tNewPodStats   PodDetailStat `json:\"newPodStats,omitempty\"`\n\tOldPodStats   PodDetailStat `json:\"oldPodStats,omitempty\"`\n}\n```\n\n```go\ntype DeploymentGroupDTO struct {\n\tId             int             `json:\"id\"`\n\tName           string          `json:\"name\"`\n\tAppCount       int             `json:\"appCount\"`\n\tNoOfApps       string          `json:\"noOfApps\"`\n\tEnvironmentId  int             `json:\"environmentId\"`\n\tCiPipelineId   int             `json:\"ciPipelineId\"`\n\tCiMaterialDTOs []CiMaterialDTO `json:\"ciMaterialDTOs\"`\n}\n```\n\n```go\ntype Environment struct {\n\tAppStatus                  string   `json:\"appStatus\"` //this is not the status of environment , this make sense with a specific app only\n\tEnvironmentId              int      `json:\"environmentId\"`\n\tEnvironmentName            string   `json:\"environmentName\"`\n\tAppMetrics                 *bool    `json:\"appMetrics\"`\n\tInfraMetrics               *bool    `json:\"infraMetrics\"`\n\tProd                       bool     `json:\"prod\"`\n\tChartRefId                 int      `json:\"chartRefId\"`\n\tLastDeployed               string   `json:\"lastDeployed\"`\n\tLastDeployedBy             string   `json:\"lastDeployedBy\"`\n\tLastDeployedImage          string   `json:\"lastDeployedImage\"`\n\tDeploymentAppDeleteRequest bool     `json:\"deploymentAppDeleteRequest\"`\n\tDescription                string   `json:\"description\" validate:\"max=40\"`\n\tIsVirtualEnvironment       bool     `json:\"isVirtualEnvironment\"`\n\tClusterId                  int      `json:\"clusterId\"`\n\tPipelineId                 int      `json:\"pipelineId\"`\n\tLatestCdWorkflowRunnerId   int      `json:\"latestCdWorkflowRunnerId,omitempty\"`\n\tCiArtifactId               int      `json:\"ciArtifactId\"`\n\tCommits                    []string `json:\"commits\"`\n}\n```\n\n```go\ntype GenericNoteResponseBean struct {\n\tId          int       `json:\"id\" validate:\"number\"`\n\tDescription string    `json:\"description\"`\n\tUpdatedBy   string    `json:\"updatedBy\"`\n\tUpdatedOn   time.Time `json:\"updatedOn\"`\n\tCreatedBy   string    `json:\"createdBy\"`\n}\n```\n\n```go\ntype InstanceDetail struct {\n\tPodName            string  `json:\"podName,omitempty\"`\n\tCpuUsage           float64 `json:\"cpuUsage,omitempty\"`\n\tMemoryUsage        int64   `json:\"memoryUsage,omitempty\"`\n\tCpuRequest         float64 `json:\"cpuRequest,omitempty\"`\n\tMemoryRequest      int64   `json:\"memoryRequest,omitempty\"`\n\tCpuUsagePercent    float64 `json:\"cpuUsagePercent,omitempty\"`\n\tMemoryUsagePercent float64 `json:\"memoryUsagePercent,omitempty\"`\n}\n```\n\n```go\ntype JobCIPipeline struct {\n\tCiPipelineId                 int       `json:\"ciPipelineId\"`\n\tCiPipelineName               string    `json:\"ciPipelineName\"`\n\tStatus                       string    `json:\"status\"`\n\tLastRunAt                    time.Time `json:\"lastRunAt\"`\n\tLastSuccessAt                time.Time `json:\"lastSuccessAt\"`\n\tEnvironmentId                int       `json:\"environmentId\"`\n\tEnvironmentName              string    `json:\"environmentName\"`\n\tLastTriggeredEnvironmentName string    `json:\"lastTriggeredEnvironmentName\"`\n}\n```\n\n```go\ntype JobContainer struct {\n\tJobId          int                     `json:\"jobId\"`\n\tJobName        string                  `json:\"jobName\"\"`\n\tJobActualName  string                  `json:\"appName\"\"`\n\tDescription    GenericNoteResponseBean `json:\"description\"`\n\tJobCiPipelines []JobCIPipeline         `json:\"ciPipelines\"'`\n\tProjectId      int                     `json:\"projectId\"`\n}\n```\n\n```go\ntype JobContainerResponse struct {\n\tJobContainers []*JobContainer `json:\"jobContainers\"`\n\tJobCount      int             `json:\"jobCount\"`\n}\n```\n\n```go\ntype JobListingContainer struct {\n\tJobId                        int       `sql:\"job_id\" json:\"jobId\"`\n\tJobName                      string    `sql:\"job_name\" json:\"jobName\"`\n\tJobActualName                string    `sql:\"app_name\" json:\"appName\"`\n\tDescription                  string    `sql:\"description\" json:\"description\"`\n\tCiPipelineID                 int       `sql:\"ci_pipeline_id\" json:\"ciPipelineID\"`\n\tCiPipelineName               string    `sql:\"ci_pipeline_name\" json:\"ciPipelineName\"`\n\tStatus                       string    `sql:\"status\" json:\"status\"`\n\tStartedOn                    time.Time `sql:\"started_on\" json:\"startedOn\"`\n\tEnvironmentId                int       `sql:\"environment_id\" json:\"environmentId\"`\n\tEnvironmentName              string    `sql:\"environment_name\" json:\"environmentName\"`\n\tLastTriggeredEnvironmentName string    `sql:\"last_triggered_environment_name\" json:\"lastTriggeredEnvironmentName\"`\n\tLastTriggeredEnvironmentId   int       `sql:\"last_triggered_environment_id\" json:\"lastEnvironmentId\"`\n\tProjectId                    int       `sql:\"team_id\" json:\"projectId\"`\n\tCreatedBy                    int32     `sql:\"created_by\" json:\"createdBy\"`\n}\n```\n\n```go\ntype LinkOuts struct {\n\tId            int    `json:\"id\"`\n\tAppId         int    `json:\"appId,omitempty\"`\n\tEnvironmentId int    `json:\"environmentId,omitempty\"`\n\tName          string `json:\"name\"`\n\tAppName       string `json:\"appName,omitempty\"`\n\tEnvName       string `json:\"envName,omitempty\"`\n\tPodName       string `json:\"podName,omitempty\"`\n\tContainerName string `json:\"containerName,omitempty\"`\n\tLink          string `json:\"link,omitempty\"`\n\tDescription   string `json:\"description,omitempty\"`\n}\n```\n\n```go\ntype Notes struct {\n\tNotes string `json:\"gitOpsNotes,omitempty\"`\n}\n```\n\n```go\ntype PodDetailStat struct {\n\tPodCount           string  `json:\"podCount,omitempty\"`\n\tCpuUsagePercent    float64 `json:\"cpuUsagePercent,omitempty\"`\n\tMemoryUsagePercent float64 `json:\"memoryUsagePercent,omitempty\"`\n}\n```\n\n```go\ntype ResourceUsage struct {\n\tAppId         int     `json:\"appId\"` //app_id\n\tEnvironmentId int     `json:\"environmentId\"`\n\tCpuUsage      float64 `json:\"cpuUsage,omitempty\"`\n\tMemoryUsage   float64 `json:\"memoryUsage,omitempty\"`\n}\n```\n\n```go\ntype TriggerView struct {\n\tCiPipelineId           int                             `json:\"ciPipelineId\"`\n\tCiPipelineName         string                          `json:\"ciPipelineName\"`\n\tCdPipelineId           int                             `json:\"cdPipelineId\"`\n\tCdPipelineName         string                          `json:\"cdPipelineName\"`\n\tStatus                 string                          `json:\"status\"`\n\tStatusMessage          string                          `json:\"statusMessage,omitempty\"`\n\tLastDeployedTime       string                          `json:\"lastDeployedTime,omitempty\"`\n\tLastDeployedBy         string                          `json:\"lastDeployedBy,omitempty\"`\n\tMaterialInfo           json.RawMessage                 `json:\"materialInfo,omitempty\"`\n\tMaterialInfoJsonString string                          `json:\"-\"`\n\tReleaseVersion         string                          `json:\"releaseVersion,omitempty\"`\n\tDataSource             string                          `json:\"dataSource,omitempty\"`\n\tConditions             []v1alpha1.ApplicationCondition `json:\"conditions\"`\n\tAppName                string                          `json:\"appName\"`\n\tEnvironmentName        string                          `json:\"environmentName\"`\n}\n```\n\n","path":"github.com/devtron-labs/devtron/api/bean/AppView","name":"AppView","synopsis":"","isRedistributable":true}
