iotsecuritysolutionsanalytics

package
v0.20230801.1155153 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/iotsecuritysolutionsanalytics Documentation

The iotsecuritysolutionsanalytics SDK allows for interaction with the Azure Resource Manager Service security (API Version 2017-08-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/iotsecuritysolutionsanalytics"

Client Initialization

client := iotsecuritysolutionsanalytics.NewIoTSecuritySolutionsAnalyticsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsAggregatedAlertDismiss

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewAggregatedAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue", "aggregatedAlertValue")

read, err := client.IoTSecuritySolutionsAnalyticsAggregatedAlertDismiss(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsAggregatedAlertGet

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewAggregatedAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue", "aggregatedAlertValue")

read, err := client.IoTSecuritySolutionsAnalyticsAggregatedAlertGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsAggregatedAlertsList

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")

// alternatively `client.IoTSecuritySolutionsAnalyticsAggregatedAlertsList(ctx, id, iotsecuritysolutionsanalytics.DefaultIoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationOptions())` can be used to do batched pagination
items, err := client.IoTSecuritySolutionsAnalyticsAggregatedAlertsListComplete(ctx, id, iotsecuritysolutionsanalytics.DefaultIoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsGetAll

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")

read, err := client.IoTSecuritySolutionsAnalyticsGetAll(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsGetDefault

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")

read, err := client.IoTSecuritySolutionsAnalyticsGetDefault(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsRecommendationGet

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewAggregatedRecommendationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue", "aggregatedRecommendationValue")

read, err := client.IoTSecuritySolutionsAnalyticsRecommendationGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: IoTSecuritySolutionsAnalyticsClient.IoTSecuritySolutionsAnalyticsRecommendationsList

ctx := context.TODO()
id := iotsecuritysolutionsanalytics.NewIotSecuritySolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotSecuritySolutionValue")

// alternatively `client.IoTSecuritySolutionsAnalyticsRecommendationsList(ctx, id, iotsecuritysolutionsanalytics.DefaultIoTSecuritySolutionsAnalyticsRecommendationsListOperationOptions())` can be used to do batched pagination
items, err := client.IoTSecuritySolutionsAnalyticsRecommendationsListComplete(ctx, id, iotsecuritysolutionsanalytics.DefaultIoTSecuritySolutionsAnalyticsRecommendationsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForReportedSeverity

func PossibleValuesForReportedSeverity() []string

func ValidateAggregatedAlertID

func ValidateAggregatedAlertID(input interface{}, key string) (warnings []string, errors []error)

ValidateAggregatedAlertID checks that 'input' can be parsed as a Aggregated Alert ID

func ValidateAggregatedRecommendationID

func ValidateAggregatedRecommendationID(input interface{}, key string) (warnings []string, errors []error)

ValidateAggregatedRecommendationID checks that 'input' can be parsed as a Aggregated Recommendation ID

func ValidateIotSecuritySolutionID

func ValidateIotSecuritySolutionID(input interface{}, key string) (warnings []string, errors []error)

ValidateIotSecuritySolutionID checks that 'input' can be parsed as a Iot Security Solution ID

Types

type AggregatedAlertId

type AggregatedAlertId struct {
	SubscriptionId          string
	ResourceGroupName       string
	IotSecuritySolutionName string
	AggregatedAlertName     string
}

AggregatedAlertId is a struct representing the Resource ID for a Aggregated Alert

func NewAggregatedAlertID

func NewAggregatedAlertID(subscriptionId string, resourceGroupName string, iotSecuritySolutionName string, aggregatedAlertName string) AggregatedAlertId

NewAggregatedAlertID returns a new AggregatedAlertId struct

func ParseAggregatedAlertID

func ParseAggregatedAlertID(input string) (*AggregatedAlertId, error)

ParseAggregatedAlertID parses 'input' into a AggregatedAlertId

func ParseAggregatedAlertIDInsensitively

func ParseAggregatedAlertIDInsensitively(input string) (*AggregatedAlertId, error)

ParseAggregatedAlertIDInsensitively parses 'input' case-insensitively into a AggregatedAlertId note: this method should only be used for API response data and not user input

func (AggregatedAlertId) ID

func (id AggregatedAlertId) ID() string

ID returns the formatted Aggregated Alert ID

func (AggregatedAlertId) Segments

func (id AggregatedAlertId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Aggregated Alert ID

func (AggregatedAlertId) String

func (id AggregatedAlertId) String() string

String returns a human-readable description of this Aggregated Alert ID

type AggregatedRecommendationId

type AggregatedRecommendationId struct {
	SubscriptionId               string
	ResourceGroupName            string
	IotSecuritySolutionName      string
	AggregatedRecommendationName string
}

AggregatedRecommendationId is a struct representing the Resource ID for a Aggregated Recommendation

func NewAggregatedRecommendationID

func NewAggregatedRecommendationID(subscriptionId string, resourceGroupName string, iotSecuritySolutionName string, aggregatedRecommendationName string) AggregatedRecommendationId

NewAggregatedRecommendationID returns a new AggregatedRecommendationId struct

func ParseAggregatedRecommendationID

func ParseAggregatedRecommendationID(input string) (*AggregatedRecommendationId, error)

ParseAggregatedRecommendationID parses 'input' into a AggregatedRecommendationId

func ParseAggregatedRecommendationIDInsensitively

func ParseAggregatedRecommendationIDInsensitively(input string) (*AggregatedRecommendationId, error)

ParseAggregatedRecommendationIDInsensitively parses 'input' case-insensitively into a AggregatedRecommendationId note: this method should only be used for API response data and not user input

func (AggregatedRecommendationId) ID

ID returns the formatted Aggregated Recommendation ID

func (AggregatedRecommendationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Aggregated Recommendation ID

func (AggregatedRecommendationId) String

func (id AggregatedRecommendationId) String() string

String returns a human-readable description of this Aggregated Recommendation ID

type IoTSecurityAggregatedAlert

type IoTSecurityAggregatedAlert struct {
	Id         *string                               `json:"id,omitempty"`
	Name       *string                               `json:"name,omitempty"`
	Properties *IoTSecurityAggregatedAlertProperties `json:"properties,omitempty"`
	Tags       *map[string]string                    `json:"tags,omitempty"`
	Type       *string                               `json:"type,omitempty"`
}

type IoTSecurityAggregatedAlertOperationPredicate

type IoTSecurityAggregatedAlertOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (IoTSecurityAggregatedAlertOperationPredicate) Matches

type IoTSecurityAggregatedAlertProperties

type IoTSecurityAggregatedAlertProperties struct {
	ActionTaken          *string           `json:"actionTaken,omitempty"`
	AggregatedDateUtc    *string           `json:"aggregatedDateUtc,omitempty"`
	AlertDisplayName     *string           `json:"alertDisplayName,omitempty"`
	AlertType            *string           `json:"alertType,omitempty"`
	Count                *int64            `json:"count,omitempty"`
	Description          *string           `json:"description,omitempty"`
	EffectedResourceType *string           `json:"effectedResourceType,omitempty"`
	LogAnalyticsQuery    *string           `json:"logAnalyticsQuery,omitempty"`
	RemediationSteps     *string           `json:"remediationSteps,omitempty"`
	ReportedSeverity     *ReportedSeverity `json:"reportedSeverity,omitempty"`
	SystemSource         *string           `json:"systemSource,omitempty"`
	VendorName           *string           `json:"vendorName,omitempty"`
}

type IoTSecurityAggregatedRecommendation

type IoTSecurityAggregatedRecommendation struct {
	Id         *string                                        `json:"id,omitempty"`
	Name       *string                                        `json:"name,omitempty"`
	Properties *IoTSecurityAggregatedRecommendationProperties `json:"properties,omitempty"`
	Tags       *map[string]string                             `json:"tags,omitempty"`
	Type       *string                                        `json:"type,omitempty"`
}

type IoTSecurityAggregatedRecommendationOperationPredicate

type IoTSecurityAggregatedRecommendationOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (IoTSecurityAggregatedRecommendationOperationPredicate) Matches

type IoTSecurityAggregatedRecommendationProperties

type IoTSecurityAggregatedRecommendationProperties struct {
	Description               *string           `json:"description,omitempty"`
	DetectedBy                *string           `json:"detectedBy,omitempty"`
	HealthyDevices            *int64            `json:"healthyDevices,omitempty"`
	LogAnalyticsQuery         *string           `json:"logAnalyticsQuery,omitempty"`
	RecommendationDisplayName *string           `json:"recommendationDisplayName,omitempty"`
	RecommendationName        *string           `json:"recommendationName,omitempty"`
	RecommendationTypeId      *string           `json:"recommendationTypeId,omitempty"`
	RemediationSteps          *string           `json:"remediationSteps,omitempty"`
	ReportedSeverity          *ReportedSeverity `json:"reportedSeverity,omitempty"`
	UnhealthyDeviceCount      *int64            `json:"unhealthyDeviceCount,omitempty"`
}

type IoTSecurityAlertedDevice

type IoTSecurityAlertedDevice struct {
	AlertsCount *int64  `json:"alertsCount,omitempty"`
	DeviceId    *string `json:"deviceId,omitempty"`
}

type IoTSecurityAlertedDevicesList

type IoTSecurityAlertedDevicesList struct {
	NextLink *string                    `json:"nextLink,omitempty"`
	Value    []IoTSecurityAlertedDevice `json:"value"`
}

type IoTSecurityDeviceAlert

type IoTSecurityDeviceAlert struct {
	AlertDisplayName *string           `json:"alertDisplayName,omitempty"`
	AlertsCount      *int64            `json:"alertsCount,omitempty"`
	ReportedSeverity *ReportedSeverity `json:"reportedSeverity,omitempty"`
}

type IoTSecurityDeviceAlertsList

type IoTSecurityDeviceAlertsList struct {
	NextLink *string                  `json:"nextLink,omitempty"`
	Value    []IoTSecurityDeviceAlert `json:"value"`
}

type IoTSecurityDeviceRecommendation

type IoTSecurityDeviceRecommendation struct {
	DevicesCount              *int64            `json:"devicesCount,omitempty"`
	RecommendationDisplayName *string           `json:"recommendationDisplayName,omitempty"`
	ReportedSeverity          *ReportedSeverity `json:"reportedSeverity,omitempty"`
}

type IoTSecurityDeviceRecommendationsList

type IoTSecurityDeviceRecommendationsList struct {
	NextLink *string                           `json:"nextLink,omitempty"`
	Value    []IoTSecurityDeviceRecommendation `json:"value"`
}

type IoTSecuritySolutionAnalyticsModel

type IoTSecuritySolutionAnalyticsModel struct {
	Id         *string                                      `json:"id,omitempty"`
	Name       *string                                      `json:"name,omitempty"`
	Properties *IoTSecuritySolutionAnalyticsModelProperties `json:"properties,omitempty"`
	Type       *string                                      `json:"type,omitempty"`
}

type IoTSecuritySolutionAnalyticsModelList

type IoTSecuritySolutionAnalyticsModelList struct {
	NextLink *string                             `json:"nextLink,omitempty"`
	Value    []IoTSecuritySolutionAnalyticsModel `json:"value"`
}

type IoTSecuritySolutionAnalyticsModelProperties

type IoTSecuritySolutionAnalyticsModelProperties struct {
	DevicesMetrics                     *[]IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsInlined `json:"devicesMetrics,omitempty"`
	Metrics                            *IoTSeverityMetrics                                                 `json:"metrics,omitempty"`
	MostPrevalentDeviceAlerts          *IoTSecurityDeviceAlertsList                                        `json:"mostPrevalentDeviceAlerts,omitempty"`
	MostPrevalentDeviceRecommendations *IoTSecurityDeviceRecommendationsList                               `json:"mostPrevalentDeviceRecommendations,omitempty"`
	TopAlertedDevices                  *IoTSecurityAlertedDevicesList                                      `json:"topAlertedDevices,omitempty"`
	UnhealthyDeviceCount               *int64                                                              `json:"unhealthyDeviceCount,omitempty"`
}

type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsInlined

type IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsInlined struct {
	Date           *string             `json:"date,omitempty"`
	DevicesMetrics *IoTSeverityMetrics `json:"devicesMetrics,omitempty"`
}

func (*IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsInlined) GetDateAsTime

func (*IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsInlined) SetDateAsTime

type IoTSecuritySolutionsAnalyticsAggregatedAlertDismissOperationResponse

type IoTSecuritySolutionsAnalyticsAggregatedAlertDismissOperationResponse struct {
	HttpResponse *http.Response
}

type IoTSecuritySolutionsAnalyticsAggregatedAlertGetOperationResponse

type IoTSecuritySolutionsAnalyticsAggregatedAlertGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *IoTSecurityAggregatedAlert
}

type IoTSecuritySolutionsAnalyticsAggregatedAlertsListCompleteResult

type IoTSecuritySolutionsAnalyticsAggregatedAlertsListCompleteResult struct {
	Items []IoTSecurityAggregatedAlert
}

type IoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationOptions

type IoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationOptions struct {
	Top *int64
}

type IoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationResponse

type IoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]IoTSecurityAggregatedAlert
	// contains filtered or unexported fields
}

func (IoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationResponse) HasMore

func (IoTSecuritySolutionsAnalyticsAggregatedAlertsListOperationResponse) LoadMore

type IoTSecuritySolutionsAnalyticsClient

type IoTSecuritySolutionsAnalyticsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewIoTSecuritySolutionsAnalyticsClientWithBaseURI

func NewIoTSecuritySolutionsAnalyticsClientWithBaseURI(endpoint string) IoTSecuritySolutionsAnalyticsClient

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsAggregatedAlertDismiss

IoTSecuritySolutionsAnalyticsAggregatedAlertDismiss ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsAggregatedAlertGet

IoTSecuritySolutionsAnalyticsAggregatedAlertGet ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsAggregatedAlertsList

IoTSecuritySolutionsAnalyticsAggregatedAlertsList ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsAggregatedAlertsListComplete

IoTSecuritySolutionsAnalyticsAggregatedAlertsListComplete retrieves all of the results into a single object

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsAggregatedAlertsListCompleteMatchingPredicate

IoTSecuritySolutionsAnalyticsAggregatedAlertsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsGetAll

IoTSecuritySolutionsAnalyticsGetAll ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsGetDefault

IoTSecuritySolutionsAnalyticsGetDefault ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsRecommendationGet

IoTSecuritySolutionsAnalyticsRecommendationGet ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsRecommendationsList

IoTSecuritySolutionsAnalyticsRecommendationsList ...

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsRecommendationsListComplete

IoTSecuritySolutionsAnalyticsRecommendationsListComplete retrieves all of the results into a single object

func (IoTSecuritySolutionsAnalyticsClient) IoTSecuritySolutionsAnalyticsRecommendationsListCompleteMatchingPredicate

IoTSecuritySolutionsAnalyticsRecommendationsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type IoTSecuritySolutionsAnalyticsGetAllOperationResponse

type IoTSecuritySolutionsAnalyticsGetAllOperationResponse struct {
	HttpResponse *http.Response
	Model        *IoTSecuritySolutionAnalyticsModelList
}

type IoTSecuritySolutionsAnalyticsGetDefaultOperationResponse

type IoTSecuritySolutionsAnalyticsGetDefaultOperationResponse struct {
	HttpResponse *http.Response
	Model        *IoTSecuritySolutionAnalyticsModel
}

type IoTSecuritySolutionsAnalyticsRecommendationGetOperationResponse

type IoTSecuritySolutionsAnalyticsRecommendationGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *IoTSecurityAggregatedRecommendation
}

type IoTSecuritySolutionsAnalyticsRecommendationsListCompleteResult

type IoTSecuritySolutionsAnalyticsRecommendationsListCompleteResult struct {
	Items []IoTSecurityAggregatedRecommendation
}

type IoTSecuritySolutionsAnalyticsRecommendationsListOperationOptions

type IoTSecuritySolutionsAnalyticsRecommendationsListOperationOptions struct {
	Top *int64
}

type IoTSecuritySolutionsAnalyticsRecommendationsListOperationResponse

type IoTSecuritySolutionsAnalyticsRecommendationsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]IoTSecurityAggregatedRecommendation
	// contains filtered or unexported fields
}

func (IoTSecuritySolutionsAnalyticsRecommendationsListOperationResponse) HasMore

func (IoTSecuritySolutionsAnalyticsRecommendationsListOperationResponse) LoadMore

type IoTSeverityMetrics

type IoTSeverityMetrics struct {
	High   *int64 `json:"high,omitempty"`
	Low    *int64 `json:"low,omitempty"`
	Medium *int64 `json:"medium,omitempty"`
}

type IotSecuritySolutionId

type IotSecuritySolutionId struct {
	SubscriptionId          string
	ResourceGroupName       string
	IotSecuritySolutionName string
}

IotSecuritySolutionId is a struct representing the Resource ID for a Iot Security Solution

func NewIotSecuritySolutionID

func NewIotSecuritySolutionID(subscriptionId string, resourceGroupName string, iotSecuritySolutionName string) IotSecuritySolutionId

NewIotSecuritySolutionID returns a new IotSecuritySolutionId struct

func ParseIotSecuritySolutionID

func ParseIotSecuritySolutionID(input string) (*IotSecuritySolutionId, error)

ParseIotSecuritySolutionID parses 'input' into a IotSecuritySolutionId

func ParseIotSecuritySolutionIDInsensitively

func ParseIotSecuritySolutionIDInsensitively(input string) (*IotSecuritySolutionId, error)

ParseIotSecuritySolutionIDInsensitively parses 'input' case-insensitively into a IotSecuritySolutionId note: this method should only be used for API response data and not user input

func (IotSecuritySolutionId) ID

func (id IotSecuritySolutionId) ID() string

ID returns the formatted Iot Security Solution ID

func (IotSecuritySolutionId) Segments

func (id IotSecuritySolutionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Iot Security Solution ID

func (IotSecuritySolutionId) String

func (id IotSecuritySolutionId) String() string

String returns a human-readable description of this Iot Security Solution ID

type ReportedSeverity

type ReportedSeverity string
const (
	ReportedSeverityHigh          ReportedSeverity = "High"
	ReportedSeverityInformational ReportedSeverity = "Informational"
	ReportedSeverityLow           ReportedSeverity = "Low"
	ReportedSeverityMedium        ReportedSeverity = "Medium"
)

Jump to

Keyboard shortcuts

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