Skip to content

Commit

Permalink
Merge pull request #520 from ARGOeu/devel
Browse files Browse the repository at this point in the history
Version 1.13.3
  • Loading branch information
themiszamani authored May 10, 2023
2 parents 1b93247 + 31e96f0 commit 628e786
Show file tree
Hide file tree
Showing 13 changed files with 1,919 additions and 670 deletions.
320 changes: 264 additions & 56 deletions app/topology/controller.go

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion app/topology/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

package topology

import "encoding/xml"
import (
"encoding/xml"

"github.com/ARGOeu/argo-web-api/utils/config"
)

// MongoInterface to retrieve and insert metricProfiles in mongo
// type MongoInterface struct {
Expand Down Expand Up @@ -75,6 +79,7 @@ type Endpoint struct {
Hostname string `bson:"hostname" json:"hostname"`
Notifications *Notifications `bson:"notifications" json:"notifications,omitempty"`
Tags map[string]string `bson:"tags" json:"tags"`
Tenant string `json:"tenant,omitempty"`
}

// Group includes information on of group group topology
Expand All @@ -86,6 +91,7 @@ type Group struct {
Subgroup string `bson:"subgroup" json:"subgroup"`
Notifications *Notifications `bson:"notifications" json:"notifications,omitempty"`
Tags map[string]string `bson:"tags" json:"tags"`
Tenant string `json:"tenant,omitempty"`
}

// ServiceType includes information about an available service type
Expand All @@ -96,6 +102,7 @@ type ServiceType struct {
Title string `bson:"title" json:"title"`
Description string `bson:"description" json:"description"`
Tags []string `bson:"tags" json:"tags,omitempty"`
Tenant string `json:"tenant,omitempty"`
}

// Notifications holds notification information about topology items
Expand All @@ -104,6 +111,11 @@ type Notifications struct {
Enabled bool `bson:"enabled" json:"enabled,omitempty"`
}

type TenantDB struct {
Tenant string
Config config.MongoConfig
}

// TagInfo groups all tags for a topology type
type TagInfo struct {
Name string `json:"name"`
Expand Down
Loading

0 comments on commit 628e786

Please sign in to comment.