list

package
v1.56.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TIME_FRAME = "now-3y"

Variables

This section is empty.

Functions

func GETEntities

func GETEntities(entityType string, client rest.Client, c chan Entity) error

func GETEntitiesWithTags

func GETEntitiesWithTags(entityType string, tags []Tag, client rest.Client, c chan Entity) error

func GetCustomTags

func GetCustomTags(entity Entity, client rest.Client, results chan EntityTags)

func GetEntities

func GetEntities(entityType EntityType, client rest.Client, results chan EntityTags)

func List

func List(client rest.Client) (api.Stubs, error)

Types

type Entity

type Entity struct {
	ID   string `json:"entityId"`
	Name string `json:"displayName"`
	Tags []Tag  `json:"tags"`
}

type EntityTag

type EntityTag struct {
	StringRepresentation string `json:"stringRepresentation"`
	Value                string `json:"value"`
	Key                  string `json:"key"`
	Context              string `json:"context"`
}

type EntityTags

type EntityTags struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Tags []Tag  `json:"tags"`
}

type EntityType

type EntityType struct {
	DimensionKey        string               `json:"dimensionKey,omitempty"`
	Type                string               `json:"type,omitempty"`
	FromRelationships   any                  `json:"fromRelationships,omitempty"`
	ToRelationships     any                  `json:"toRelationships,omitempty"`
	EntityLimitExceeded bool                 `json:"entityLimitExceeded,omitempty"`
	ManagementZones     string               `json:"managementZones,omitempty"`
	Tags                string               `json:"tags,omitempty"`
	DisplayName         string               `json:"displayName,omitempty"`
	Properties          []EntityTypeProperty `json:"properties,omitempty"`
}

func GETEntityTypes

func GETEntityTypes(client rest.Client) ([]EntityType, error)

func (EntityType) GetCustomTags

func (et EntityType) GetCustomTags(client rest.Client) ([]Tag, error)

type EntityTypeProperty

type EntityTypeProperty struct {
	ID          string `json:"id,omitempty"`
	DisplayName string `json:"displayName,omitempty"`
	Type        string `json:"type,omitempty"`
}

type GETEntitiesResponse

type GETEntitiesResponse struct {
	TotalCount  int      `json:"totalCount"`
	NextPageKey string   `json:"nextPageKey"`
	Entities    []Entity `json:"entities"`
}

type GetCustomTagsResponse

type GetCustomTagsResponse struct {
	TotalCount int   `json:"totalCount"`
	Tags       []Tag `json:"tags"`
}

type GetEntityTypesResponse

type GetEntityTypesResponse struct {
	TotalCount  int          `json:"totalCount"`
	NextPageKey string       `json:"nextPageKey"`
	Types       []EntityType `json:"types"`
}

type Tag

type Tag struct {
	StringRepresentation string `json:"stringRepresentation"`
	Value                string `json:"value"`
	Key                  string `json:"key"`
	Context              string `json:"context"`
}

func GETCustomTags

func GETCustomTags(entityID string, client rest.Client) ([]Tag, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL