...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0/anomalydetector/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/cognitiveservices/v1.0/anomalydetector

     1  package anomalydetector
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // TimeGranularity enumerates the values for time granularity.
    10  type TimeGranularity string
    11  
    12  const (
    13  	// Daily ...
    14  	Daily TimeGranularity = "daily"
    15  	// Hourly ...
    16  	Hourly TimeGranularity = "hourly"
    17  	// Monthly ...
    18  	Monthly TimeGranularity = "monthly"
    19  	// PerMinute ...
    20  	PerMinute TimeGranularity = "minutely"
    21  	// PerSecond ...
    22  	PerSecond TimeGranularity = "secondly"
    23  	// Weekly ...
    24  	Weekly TimeGranularity = "weekly"
    25  	// Yearly ...
    26  	Yearly TimeGranularity = "yearly"
    27  )
    28  
    29  // PossibleTimeGranularityValues returns an array of possible values for the TimeGranularity const type.
    30  func PossibleTimeGranularityValues() []TimeGranularity {
    31  	return []TimeGranularity{Daily, Hourly, Monthly, PerMinute, PerSecond, Weekly, Yearly}
    32  }
    33  

View as plain text