Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

refactor: service response changes and dashboardID handling (#11485)

swapnil-signoz7932917f5fea
diff --git a/docs/api/openapi.yml b/docs/api/openapi.yml
index 495f936058..6481ebeac1 100644
--- a/docs/api/openapi.yml
+++ b/docs/api/openapi.yml
@@ -870,14 +870,6 @@ components:
- timestampMillis
- data
type: object
- CloudintegrationtypesAssets:
- properties:
- dashboards:
- items:
- $ref: '#/components/schemas/CloudintegrationtypesDashboard'
- nullable: true
- type: array
- type: object
CloudintegrationtypesAzureAccountConfig:
properties:
deploymentRegion:
@@ -1025,17 +1017,6 @@ components:
- ingestionUrl
- ingestionKey
type: object
- CloudintegrationtypesDashboard:
- properties:
- definition:
- $ref: '#/components/schemas/DashboardtypesStorableDashboardData'
- description:
- type: string
- id:
- type: string
- title:
- type: string
- type: object
CloudintegrationtypesDataCollected:
properties:
logs:
@@ -1209,7 +1190,7 @@ components:
CloudintegrationtypesService:
properties:
assets:
- $ref: '#/components/schemas/CloudintegrationtypesAssets'
+ $ref: '#/components/schemas/CloudintegrationtypesServiceAssets'
cloudIntegrationService:
$ref: '#/components/schemas/CloudintegrationtypesCloudIntegrationService'
dataCollected:
@@ -1222,8 +1203,6 @@ components:
type: string
supportedSignals:
$ref: '#/components/schemas/CloudintegrationtypesSupportedSignals'
- telemetryCollectionStrategy:
- $ref: '#/components/schemas/CloudintegrationtypesTelemetryCollectionStrategy'
title:
type: string
required:
@@ -1234,9 +1213,17 @@ components:
- assets
- supportedSignals
- dataCollected
- - telemetryCollectionStrategy
- cloudIntegrationService
type: object
+ CloudintegrationtypesServiceAssets:
+ properties:
+ dashboards:
+ items:
+ $ref: '#/components/schemas/CloudintegrationtypesServiceDashboard'
+ type: array
+ required:
+ - dashboards
+ type: object
CloudintegrationtypesServiceConfig:
properties:
aws:
@@ -1244,6 +1231,18 @@ components:
azure:
$ref: '#/components/schemas/CloudintegrationtypesAzureServiceConfig'
type: object
+ CloudintegrationtypesServiceDashboard:
+ properties:
+ description:
+ type: string
+ integrationDashboard:
+ $ref: '#/components/schemas/CloudintegrationtypesStorableIntegrationDashboard'
+ title:
+ type: string
+ required:
+ - title
+ - description
+ type: object
CloudintegrationtypesServiceID:
enum:
- alb
@@ -1278,6 +1277,30 @@ components:
- icon
- enabled
type: object
+ CloudintegrationtypesStorableIntegrationDashboard:
+ properties:
+ createdAt:
+ format: date-time
+ type: string
+ dashboardId:
+ type: string
+ id:
+ type: string
+ provider:
+ type: string
+ slug:
+ type: string
+ updatedAt:
+ format: date-time
+ type: string
+ required:
+ - id
+ - dashboardId
+ - provider
+ - slug
+ - createdAt
+ - updatedAt
+ type: object
CloudintegrationtypesSupportedSignals:
properties:
logs:
@@ -1285,13 +1308,6 @@ components:
metrics:
type: boolean
type: object
- CloudintegrationtypesTelemetryCollectionStrategy:
- properties:
- aws:
- $ref: '#/components/schemas/CloudintegrationtypesAWSTelemetryCollectionStrategy'
- azure:
- $ref: '#/components/schemas/CloudintegrationtypesAzureTelemetryCollectionStrategy'
- type: object
CloudintegrationtypesUpdatableAccount:
properties:
config:
diff --git a/ee/modules/cloudintegration/implcloudintegration/module.go b/ee/modules/cloudintegration/implcloudintegration/module.go
index a72165a863..2ac5a98040 100644
--- a/ee/modules/cloudintegration/implcloudintegration/module.go
+++ b/ee/modules/cloudintegration/implcloudintegration/module.go
@@ -355,26 +355,32 @@ func (module *module) GetService(ctx context.Context, orgID valuer.UUID, service
var integrationService *cloudintegrationtypes.CloudIntegrationService
- if !cloudIntegrationID.IsZero() {
- storedService, err := module.store.GetServiceByServiceID(ctx, cloudIntegrationID, serviceID)
- if err != nil && !errors.Ast(err, errors.TypeNotFound) {
- return nil, err
- }
- if storedService != nil {
- serviceConfig, err := cloudintegrationtypes.NewServiceConfigFromJSON(provider, storedService.Config)
- if err != nil {
- return nil, err
- }
+ if cloudIntegrationID.IsZero() {
+ return cloudintegrationtypes.NewService(provider, serviceDefinition, nil, nil), nil
+ }
- integrationService = cloudintegrationtypes.NewCloudIntegrationServiceFromStorable(storedService, serviceConfig)
- }
+ storedService, err := module.store.GetServiceByServiceID(ctx, cloudIntegrationID, serviceID)
+ if err != nil && !errors.Ast(err, errors.TypeNotFound) {
+ return nil, err
+ }
+ if storedService == nil {
+ return cloudintegrationtypes.NewService(provider, serviceDefinition, nil, nil), nil
+ }
- if err := module.enrichDashboardIDs(ctx, orgID, provider, serviceID, serviceDefinition); err != nil {
- return nil, err
- }
+ serviceConfig, err := cloudintegrationtypes.NewServiceConfigFromJSON(provider, storedService.Config)
+ if err != nil {
+ return nil, err
}
- return cloudintegrationtypes.NewService(*serviceDefinition, integrationService), nil
+ integrationService = cloudintegrationtypes.NewCloudIntegrationServiceFromStorable(storedService, serviceConfig)
+
+ slugPrefix := cloudintegrationtypes.CloudIntegrationDashboardSlugPrefix(provider, serviceID)
+ integrationDashboards, err := module.store.ListIntegrationDashboardsBySlugPrefix(ctx, orgID, cloudintegrationtypes.IntegrationDashboardProviderCloudIntegration, slugPrefix)
+ if err != nil {
+ return nil, err
+ }
+
+ return cloudintegrationtypes.NewService(provider, serviceDefinition, integrationService, integrationDashboards), nil
}
func (module *module) CreateService(ctx context.Context, orgID valuer.UUID, createdBy string, creator valuer.UUID, service *cloudintegrationtypes.CloudIntegrationService, provider cloudintegrationtypes.CloudProviderType) error {
@@ -583,20 +589,3 @@ func (module *module) deprovisionDashboards(ctx context.Context, orgID valuer.UU
}
return nil
}
-
-// enrichDashboardIDs replaces the raw dashboard name in each Dashboard.ID with the provisioned UUID.
-// TODO: remove this hack and send idiomatic response to client.
-func (module *module) enrichDashboardIDs(ctx context.Context, orgID valuer.UUID, provider cloudintegrationtypes.CloudProviderType, serviceID cloudintegrationtypes.ServiceID, serviceDefinition *cloudintegrationtypes.ServiceDefinition) error {
- for i, d := range serviceDefinition.Assets.Dashboards {
- slug := cloudintegrationtypes.CloudIntegrationDashboardSlug(provider, serviceID, d.ID)
- row, err := module.store.GetIntegrationDashboardBySlug(ctx, orgID, cloudintegrationtypes.IntegrationDashboardProviderCloudIntegration, slug)
- if err != nil {
- if errors.Ast(err, errors.TypeNotFound) {
- continue
- }
- return err
- }
- serviceDefinition.Assets.Dashboards[i].ID = row.DashboardID
- }
- return nil
-}
diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.ts
index 7fed15fe0d..142d57e2c5 100644
--- a/frontend/src/api/generated/services/sigNoz.schemas.ts
+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts
@@ -2457,33 +2457,6 @@ export interface CloudintegrationtypesAccountDTO {
updatedAt?: string;
}
-export interface DashboardtypesStorableDashboardDataDTO {
- [key: string]: unknown;
-}
-
-export interface CloudintegrationtypesDashboardDTO {
- definition?: DashboardtypesStorableDashboardDataDTO;
- /**
- * @type string
- */
- description?: string;
- /**
- * @type string
- */
- id?: string;
- /**
- * @type string
- */
- title?: string;
-}
-
-export interface CloudintegrationtypesAssetsDTO {
- /**
- * @type array,null
- */
- dashboards?: CloudintegrationtypesDashboardDTO[] | null;
-}
-
export interface CloudintegrationtypesAzureConnectionArtifactDTO {
/**
* @type string
@@ -2866,6 +2839,54 @@ export interface CloudintegrationtypesPostableAgentCheckInDTO {
providerAccountId?: string;
}
+export interface CloudintegrationtypesStorableIntegrationDashboardDTO {
+ /**
+ * @type string
+ * @format date-time
+ */
+ createdAt: string;
+ /**
+ * @type string
+ */
+ dashboardId: string;
+ /**
+ * @type string
+ */
+ id: string;
+ /**
+ * @type string
+ */
+ provider: string;
+ /**
+ * @type string
+ */
+ slug: string;
+ /**
+ * @type string
+ * @format date-time
+ */
+ updatedAt: string;
+}
+
+export interface CloudintegrationtypesServiceDashboardDTO {
+ /**
+ * @type string
+ */
+ description: string;
+ integrationDashboard?: CloudintegrationtypesStorableIntegrationDashboardDTO;
+ /**
+ * @type string
+ */
+ title: string;
+}
+
+export interface CloudintegrationtypesServiceAssetsDTO {
+ /**
+ * @type array
+ */
+ dashboards: CloudintegrationtypesServiceDashboardDTO[];
+}
+
export interface CloudintegrationtypesSupportedSignalsDTO {
/**
* @type boolean
@@ -2877,13 +2898,8 @@ export interface CloudintegrationtypesSupportedSignalsDTO {
metrics?: boolean;
}
-export interface CloudintegrationtypesTelemetryCollectionStrategyDTO {
- aws?: CloudintegrationtypesAWSTelemetryCollectionStrategyDTO;
- azure?: CloudintegrationtypesAzureTelemetryCollectionStrategyDTO;
-}
-
export interface CloudintegrationtypesServiceDTO {
- assets: CloudintegrationtypesAssetsDTO;
+ assets: CloudintegrationtypesServiceAssetsDTO;
cloudIntegrationService: CloudintegrationtypesCloudIntegrationServiceDTO | null;
dataCollected: CloudintegrationtypesDataCollectedDTO;
/**
@@ -2899,7 +2915,6 @@ export interface CloudintegrationtypesServiceDTO {
*/
overview: string;
supportedSignals: CloudintegrationtypesSupportedSignalsDTO;
- telemetryCollectionStrategy: CloudintegrationtypesTelemetryCollectionStrategyDTO;
/**
* @type string
*/
@@ -3705,6 +3720,10 @@ export interface DashboardtypesCustomVariableSpecDTO {
customValue: string;
}
+export interface DashboardtypesStorableDashboardDataDTO {
+ [key: string]: unknown;
+}
+
export enum DashboardtypesSourceDTO {
user = 'user',
system = 'system',
diff --git a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/mockData.ts b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/mockData.ts
index 7f099becb7..3e0cf3ed4f 100644
--- a/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/mockData.ts
+++ b/frontend/src/container/Integrations/CloudIntegration/AmazonWebServices/__tests__/mockData.ts
@@ -55,7 +55,6 @@ const buildServiceDetailsResponse = (
},
},
},
- telemetryCollectionStrategy: { aws: {} },
},
});
diff --git a/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/DashboardCard.tsx b/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/DashboardCard.tsx
new file mode 100644
index 0000000000..970ab58d3d
--- /dev/null
+++ b/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/DashboardCard.tsx
@@ -0,0 +1,68 @@
+import type { KeyboardEvent, MouseEvent } from 'react';
+import { TooltipSimple } from '@signozhq/ui/tooltip';
+import { CloudintegrationtypesServiceDashboardDTO } from 'api/generated/services/sigNoz.schemas';
+import { useSafeNavigate } from 'hooks/useSafeNavigate';
+import { openInNewTab } from 'utils/navigation';
+
+const DISABLED_TOOLTIP =
+ 'Enable metrics collection for this service to view this dashboard.';
+
+function DashboardCard({
+ dashboard,
+ isInteractive,
+}: {
+ dashboard: CloudintegrationtypesServiceDashboardDTO;
+ isInteractive: boolean;
+}): JSX.Element {
+ const dashboardId = dashboard.integrationDashboard?.dashboardId;
+ const isClickable = Boolean(dashboardId) && isInteractive;
+ const dashboardUrl = dashboardId ? `/dashboard/${dashboardId}` : '';
+
+ const { safeNavigate } = useSafeNavigate();
+
+ const interactiveProps = isClickable
+ ? {
+ role: 'button',
+ tabIndex: 0,
+ onClick: (event: MouseEvent<HTMLDivElement>): void => {
+ if (event.metaKey || event.ctrlKey) {
+ openInNewTab(dashboardUrl);
+ return;
+ }
+ safeNavigate(dashboardUrl);
+ },
+ onKeyDown: (event: KeyboardEvent<HTMLDivElement>): void => {
+ if (event.key === 'Enter' || event.key === ' ') {
+ event.preventDefault();
+ safeNavigate(dashboardUrl);
+ }
+ },
+ }
+ : {};
+
+ const card = (
+ <div
+ className={`aws-service-dashboard-item ${
+ isClickable
+ ? 'aws-service-dashboard-item-clickable'
+ : 'aws-service-dashboard-item-disabled'
+ } `}
+ {...interactiveProps}
+ >
+ <div className="aws-service-dashboard-item-content">
+ <div className="aws-service-dashboard-item-title">{dashboard.title}</div>
+ <div className="aws-service-dashboard-item-description">
+ {dashboard.description}
+ </div>
+ </div>
+ </div>
+ );
+
+ if (!dashboardId) {
+ return <TooltipSimple title={DISABLED_TOOLTIP}>{card}</TooltipSimple>;
+ }
+
+ return card;
+}
+
+export default DashboardCard;
diff --git a/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.styles.scss b/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.styles.scss
index 6874153f81..cd2c3cfca5 100644
--- a/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.styles.scss
+++ b/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.styles.scss
@@ -53,6 +53,11 @@
}
}
+ &.aws-service-dashboard-item-disabled {
+ cursor: not-allowed;
+ opacity: 0.6;
+ }
+
.aws-service-dashboard-item-content {
display: flex;
flex-direction: column;
diff --git a/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.tsx b/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.tsx
index abfeb1b052..8248b0f714 100644
--- a/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.tsx
+++ b/frontend/src/container/Integrations/CloudIntegration/ServiceDashboards/ServiceDashboards.tsx
@@ -1,11 +1,9 @@
-/* eslint-disable sonarjs/cognitive-complexity */
import {
- CloudintegrationtypesDashboardDTO,
+ CloudintegrationtypesServiceDashboardDTO,
CloudintegrationtypesServiceDTO,
} from 'api/generated/services/sigNoz.schemas';
-import { useSafeNavigate } from 'hooks/useSafeNavigate';
-import { withBasePath } from 'utils/basePath';
+import DashboardCard from './DashboardCard';
import './ServiceDashboards.styles.scss';
function ServiceDashboards({
@@ -16,7 +14,6 @@ function ServiceDashboards({
isInteractive?: boolean;
}): JSX.Element {
const dashboards = service?.assets?.dashboards || [];
- const { safeNavigate } = useSafeNavigate();
if (!dashboards.length) {
return <></>;
}
@@ -25,68 +22,20 @@ function ServiceDashboards({
<div className="aws-service-dashboards">
<div className="aws-service-dashboards-title">Dashboards</div>
<div className="aws-service-dashboards-items">
- {dashboards.map((dashboard: CloudintegrationtypesDashboardDTO) => {
- if (!dashboard.id) {
- return null;
- }
-
- const dashboardUrl = `/dashboard/${dashboard.id}`;
-
- return (
- <div
- key={dashboard.id}
- className={`aws-service-dashboard-item ${
- isInteractive ? 'aws-service-dashboard-item-clickable' : ''
- }`}
- role={isInteractive ? 'button' : undefined}
- tabIndex={isInteractive ? 0 : -1}
- onClick={(event): void => {
- if (!isInteractive) {
- return;
- }
- if (event.metaKey || event.ctrlKey) {
- window.open(
- withBasePath(dashboardUrl),
- '_blank',
- 'noopener,noreferrer',
- );
- return;
- }
- safeNavigate(dashboardUrl);
- }}
- onAuxClick={(event): void => {
- if (!isInteractive) {
- return;
- }
- if (event.button === 1) {
- window.open(
- withBasePath(dashboardUrl),
- '_blank',
- 'noopener,noreferrer',
- );
- }
- }}
- onKeyDown={(event): void => {
- if (!isInteractive) {
- return;
- }
- if (event.key === 'Enter' || event.key === ' ') {
- event.preventDefault();
- safeNavigate(dashboardUrl);
- }
- }}
- >
- <div className="aws-service-dashboard-item-content">
- <div className="aws-service-dashboard-item-title">
- {dashboard.title}
- </div>
- <div className="aws-service-dashboard-item-description">
- {dashboard.description}
- </div>
- </div>
- </div>
- );
- })}
+ {dashboards.map(
+ (dashboard: CloudintegrationtypesServiceDashboardDTO, index: number) => {
+ const key =
+ dashboard.integrationDashboard?.dashboardId ||
+ `${dashboard.title}-${index}`;
+ return (
+ <DashboardCard
+ key={key}
+ dashboard={dashboard}
+ isInteractive={isInteractive}
+ />
+ );
+ },
+ )}
</div>
</div>
);
diff --git a/pkg/modules/cloudintegration/implcloudintegration/handler.go b/pkg/modules/cloudintegration/implcloudintegration/handler.go
index f0167db35b..7a9764cb60 100644
--- a/pkg/modules/cloudintegration/implcloudintegration/handler.go
+++ b/pkg/modules/cloudintegration/implcloudintegration/handler.go
@@ -440,4 +440,3 @@ func (handler *handler) AgentCheckIn(rw http.ResponseWriter, r *http.Request) {
render.Success(rw, http.StatusOK, cloudintegrationtypes.NewGettableAgentCheckIn(provider, resp))
}
-
diff --git a/pkg/types/cloudintegrationtypes/integration_dashboard.go b/pkg/types/cloudintegrationtypes/integration_dashboard.go
index 81d3768c88..f6510d78a2 100644
--- a/pkg/types/cloudintegrationtypes/integration_dashboard.go
+++ b/pkg/types/cloudintegrationtypes/integration_dashboard.go
@@ -18,14 +18,16 @@ var (
type StorableIntegrationDashboard struct {
bun.BaseModel `bun:"table:integration_dashboard"`
- ID string `bun:"id,pk,type:text"`
- DashboardID string `bun:"dashboard_id,type:text"`
- Provider IntegrationDashboardProviderType `bun:"provider,type:text"`
- Slug string `bun:"slug,type:text"`
- CreatedAt time.Time `bun:"created_at"`
- UpdatedAt time.Time `bun:"updated_at"`
+ ID string `json:"id" bun:"id,pk,type:text" required:"true"`
+ DashboardID string `json:"dashboardId" bun:"dashboard_id,type:text" required:"true"`
+ Provider IntegrationDashboardProviderType `json:"provider" bun:"provider,type:text" required:"true"`
+ Slug string `json:"slug" bun:"slug,type:text" required:"true"`
+ CreatedAt time.Time `json:"createdAt" bun:"created_at" required:"true"`
+ UpdatedAt time.Time `json:"updatedAt" bun:"updated_at" required:"true"`
}
+type IntegrationDashboard = StorableIntegrationDashboard
+
func NewStorableIntegrationDashboard(dashboardID string, provider IntegrationDashboardProviderType, slug string) *StorableIntegrationDashboard {
now := time.Now()
return &StorableIntegrationDashboard{
diff --git a/pkg/types/cloudintegrationtypes/service.go b/pkg/types/cloudintegrationtypes/service.go
index a7799a9f13..f947a5fdd4 100644
--- a/pkg/types/cloudintegrationtypes/service.go
+++ b/pkg/types/cloudintegrationtypes/service.go
@@ -50,10 +50,18 @@ type ListServicesMetadataParams struct {
// Service represents a cloud integration service with its definition,
// cloud integration service is non nil only when the service entry exists in DB with ANY config (enabled or disabled).
type Service struct {
- ServiceDefinition
+ ServiceDefinitionMetadata
+ Overview string `json:"overview" required:"true"` // markdown
+ ServiceAssets ServiceAssets `json:"assets" required:"true"`
+ SupportedSignals SupportedSignals `json:"supportedSignals" required:"true"`
+ DataCollected DataCollected `json:"dataCollected" required:"true"`
CloudIntegrationService *CloudIntegrationService `json:"cloudIntegrationService" required:"true" nullable:"true"`
}
+type ServiceAssets struct {
+ Dashboards []*ServiceDashboard `json:"dashboards" required:"true" nullable:"false"`
+}
+
type GetServiceParams struct {
CloudIntegrationID valuer.UUID `query:"cloud_integration_id" required:"false"`
}
@@ -121,6 +129,12 @@ type Dashboard struct {
Definition dashboardtypes.StorableDashboardData `json:"definition,omitempty"`
}
+type ServiceDashboard struct {
+ Title string `json:"title" required:"true"`
+ Description string `json:"description" required:"true"`
+ IntegrationDashboard *IntegrationDashboard `json:"integrationDashboard,omitempty" required:"false"`
+}
+
func NewCloudIntegrationService(serviceID ServiceID, cloudIntegrationID valuer.UUID, provider CloudProviderType, config *ServiceConfig) (*CloudIntegrationService, error) {
switch provider {
case CloudProviderTypeAWS:
@@ -164,11 +178,41 @@ func NewServiceMetadata(definition ServiceDefinition, enabled bool) *ServiceMeta
}
}
-func NewService(def ServiceDefinition, storableService *CloudIntegrationService) *Service {
- return &Service{
- ServiceDefinition: def,
- CloudIntegrationService: storableService,
+func NewService(provider CloudProviderType, def *ServiceDefinition, integrationService *CloudIntegrationService, integrationDashboards []*StorableIntegrationDashboard) *Service {
+ service := &Service{
+ ServiceDefinitionMetadata: def.ServiceDefinitionMetadata,
+ Overview: def.Overview,
+ SupportedSignals: def.SupportedSignals,
+ DataCollected: def.DataCollected,
+ CloudIntegrationService: integrationService,
+ ServiceAssets: ServiceAssets{Dashboards: make([]*ServiceDashboard, 0, len(def.Assets.Dashboards))},
+ }
+
+ integrationDashboardsMap := make(map[string]*IntegrationDashboard)
+ for _, d := range integrationDashboards {
+ integrationDashboardsMap[d.Slug] = d
+ }
+
+ for _, d := range def.Assets.Dashboards {
+ dashboard := &ServiceDashboard{
+ Title: d.Title,
+ Description: d.Description,
+ }
+
+ if integrationService != nil {
+ slug := CloudIntegrationDashboardSlug(provider, integrationService.Type, d.ID)
+
+ if integrationDashboard, exists := integrationDashboardsMap[slug]; exists {
+ if integrationDashboard != nil {
+ dashboard.IntegrationDashboard = integrationDashboard
+ }
+ }
+ }
+
+ service.ServiceAssets.Dashboards = append(service.ServiceAssets.Dashboards, dashboard)
}
+
+ return service
}
func NewGettableServicesMetadata(services []*ServiceMetadata) *GettableServicesMetadata {