services

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultServices = []*Settings{
	{
		Name: "cloud:azure:storage:storageaccounts:table",
		MonitoredMetrics: []*AzureMonitoredMetric{
			{
				Name:       "TableCapacity",
				Dimensions: []string{},
			},
			{
				Name:       "Transactions",
				Dimensions: []string{},
			},
		},
	},
	{
		Name: "cloud:azure:storage:storageaccounts",
		MonitoredMetrics: []*AzureMonitoredMetric{
			{
				Name:       "Transactions",
				Dimensions: []string{},
			},
			{
				Name:       "UsedCapacity",
				Dimensions: []string{},
			},
		},
	},
	{
		Name: "cloud:azure:storage:storageaccounts:file",
		MonitoredMetrics: []*AzureMonitoredMetric{
			{
				Name:       "FileCapacity",
				Dimensions: []string{},
			},
			{
				Name:       "Transactions",
				Dimensions: []string{},
			},
		},
	},
	{
		Name: "cloud:azure:storage:storageaccounts:blob",
		MonitoredMetrics: []*AzureMonitoredMetric{
			{
				Name:       "BlobCapacity",
				Dimensions: []string{},
			},
			{
				Name:       "Transactions",
				Dimensions: []string{},
			},
		},
	},
	{
		Name: "cloud:azure:storage:storageaccounts:queue",
		MonitoredMetrics: []*AzureMonitoredMetric{
			{
				Name:       "QueueCapacity",
				Dimensions: []string{},
			},
			{
				Name:       "Transactions",
				Dimensions: []string{},
			},
		},
	},
	{
		Name:             "azure_service_bus_namespace",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_vm",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_redis_cache",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_load_balancer",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_sql",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_event_hub_namespace",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_web_app",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_iot_hub",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_application_gateway",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_cosmos_db",
		MonitoredMetrics: nil,
	},
	{
		Name:             "azure_api_management_service",
		MonitoredMetrics: nil,
	},
}

Functions

This section is empty.

Types

type AzureMonitoredMetric

type AzureMonitoredMetric struct {
	Name       string   `json:"name,omitempty"` // The name of the metric of the supporting service.
	Dimensions []string `json:"dimensions"`     // A list of metric's dimensions names. It must include all the recommended dimensions.
}

AzureMonitoredMetric A metric of supporting service to be monitored.

func DefaultMetrics

func DefaultMetrics(metric string) []*AzureMonitoredMetric

func (*AzureMonitoredMetric) MarshalHCL

func (amm *AzureMonitoredMetric) MarshalHCL(properties hcl.Properties) error

func (*AzureMonitoredMetric) Schema

func (amm *AzureMonitoredMetric) Schema() map[string]*schema.Schema

func (*AzureMonitoredMetric) UnmarshalHCL

func (amm *AzureMonitoredMetric) UnmarshalHCL(decoder hcl.Decoder) error

type Settings

type Settings struct {
	CredentialsID         string                  `json:"-"`
	Name                  string                  `json:"name"`                       // The name of the supporting service.
	MonitoredMetrics      []*AzureMonitoredMetric `json:"monitoredMetrics,omitempty"` // A list of metrics to be monitored for this service. It must include all the recommended metrics.
	BuiltIn               bool                    `json:"-"`
	RequiredMetrics       string                  `json:"-"`
	UseRecommendedMetrics bool                    `json:"-"`
}

func (*Settings) IsComputer

func (me *Settings) IsComputer() bool

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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