grafana.MachineLearningHoliday
Explore with Pulumi AI
A holiday describes time periods where a time series is expected to behave differently to normal.
To use a holiday in a job, use its id in the holidays
attribute of a grafana.MachineLearningJob
:
Create MachineLearningHoliday Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MachineLearningHoliday(name: string, args?: MachineLearningHolidayArgs, opts?: CustomResourceOptions);
@overload
def MachineLearningHoliday(resource_name: str,
args: Optional[MachineLearningHolidayArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def MachineLearningHoliday(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_periods: Optional[Sequence[MachineLearningHolidayCustomPeriodArgs]] = None,
description: Optional[str] = None,
ical_timezone: Optional[str] = None,
ical_url: Optional[str] = None,
name: Optional[str] = None)
func NewMachineLearningHoliday(ctx *Context, name string, args *MachineLearningHolidayArgs, opts ...ResourceOption) (*MachineLearningHoliday, error)
public MachineLearningHoliday(string name, MachineLearningHolidayArgs? args = null, CustomResourceOptions? opts = null)
public MachineLearningHoliday(String name, MachineLearningHolidayArgs args)
public MachineLearningHoliday(String name, MachineLearningHolidayArgs args, CustomResourceOptions options)
type: grafana:MachineLearningHoliday
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MachineLearningHolidayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MachineLearningHolidayArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MachineLearningHolidayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MachineLearningHolidayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MachineLearningHolidayArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var machineLearningHolidayResource = new Grafana.MachineLearningHoliday("machineLearningHolidayResource", new()
{
CustomPeriods = new[]
{
new Grafana.Inputs.MachineLearningHolidayCustomPeriodArgs
{
EndTime = "string",
StartTime = "string",
Name = "string",
},
},
Description = "string",
IcalTimezone = "string",
IcalUrl = "string",
Name = "string",
});
example, err := grafana.NewMachineLearningHoliday(ctx, "machineLearningHolidayResource", &grafana.MachineLearningHolidayArgs{
CustomPeriods: grafana.MachineLearningHolidayCustomPeriodArray{
&grafana.MachineLearningHolidayCustomPeriodArgs{
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
IcalTimezone: pulumi.String("string"),
IcalUrl: pulumi.String("string"),
Name: pulumi.String("string"),
})
var machineLearningHolidayResource = new MachineLearningHoliday("machineLearningHolidayResource", MachineLearningHolidayArgs.builder()
.customPeriods(MachineLearningHolidayCustomPeriodArgs.builder()
.endTime("string")
.startTime("string")
.name("string")
.build())
.description("string")
.icalTimezone("string")
.icalUrl("string")
.name("string")
.build());
machine_learning_holiday_resource = grafana.MachineLearningHoliday("machineLearningHolidayResource",
custom_periods=[grafana.MachineLearningHolidayCustomPeriodArgs(
end_time="string",
start_time="string",
name="string",
)],
description="string",
ical_timezone="string",
ical_url="string",
name="string")
const machineLearningHolidayResource = new grafana.MachineLearningHoliday("machineLearningHolidayResource", {
customPeriods: [{
endTime: "string",
startTime: "string",
name: "string",
}],
description: "string",
icalTimezone: "string",
icalUrl: "string",
name: "string",
});
type: grafana:MachineLearningHoliday
properties:
customPeriods:
- endTime: string
name: string
startTime: string
description: string
icalTimezone: string
icalUrl: string
name: string
MachineLearningHoliday Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MachineLearningHoliday resource accepts the following input properties:
- Custom
Periods List<Pulumiverse.Grafana. Inputs. Machine Learning Holiday Custom Period> - A list of custom periods for the holiday.
- Description string
- A description of the holiday.
- Ical
Timezone string - The timezone to use for events in the iCal file pointed to by ical_url.
- Ical
Url string - A URL to an iCal file containing all occurrences of the holiday.
- Name string
- The name of the custom period.
- Custom
Periods []MachineLearning Holiday Custom Period Args - A list of custom periods for the holiday.
- Description string
- A description of the holiday.
- Ical
Timezone string - The timezone to use for events in the iCal file pointed to by ical_url.
- Ical
Url string - A URL to an iCal file containing all occurrences of the holiday.
- Name string
- The name of the custom period.
- custom
Periods List<MachineLearning Holiday Custom Period> - A list of custom periods for the holiday.
- description String
- A description of the holiday.
- ical
Timezone String - The timezone to use for events in the iCal file pointed to by ical_url.
- ical
Url String - A URL to an iCal file containing all occurrences of the holiday.
- name String
- The name of the custom period.
- custom
Periods MachineLearning Holiday Custom Period[] - A list of custom periods for the holiday.
- description string
- A description of the holiday.
- ical
Timezone string - The timezone to use for events in the iCal file pointed to by ical_url.
- ical
Url string - A URL to an iCal file containing all occurrences of the holiday.
- name string
- The name of the custom period.
- custom_
periods Sequence[MachineLearning Holiday Custom Period Args] - A list of custom periods for the holiday.
- description str
- A description of the holiday.
- ical_
timezone str - The timezone to use for events in the iCal file pointed to by ical_url.
- ical_
url str - A URL to an iCal file containing all occurrences of the holiday.
- name str
- The name of the custom period.
- custom
Periods List<Property Map> - A list of custom periods for the holiday.
- description String
- A description of the holiday.
- ical
Timezone String - The timezone to use for events in the iCal file pointed to by ical_url.
- ical
Url String - A URL to an iCal file containing all occurrences of the holiday.
- name String
- The name of the custom period.
Outputs
All input properties are implicitly available as output properties. Additionally, the MachineLearningHoliday resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MachineLearningHoliday Resource
Get an existing MachineLearningHoliday resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MachineLearningHolidayState, opts?: CustomResourceOptions): MachineLearningHoliday
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_periods: Optional[Sequence[MachineLearningHolidayCustomPeriodArgs]] = None,
description: Optional[str] = None,
ical_timezone: Optional[str] = None,
ical_url: Optional[str] = None,
name: Optional[str] = None) -> MachineLearningHoliday
func GetMachineLearningHoliday(ctx *Context, name string, id IDInput, state *MachineLearningHolidayState, opts ...ResourceOption) (*MachineLearningHoliday, error)
public static MachineLearningHoliday Get(string name, Input<string> id, MachineLearningHolidayState? state, CustomResourceOptions? opts = null)
public static MachineLearningHoliday get(String name, Output<String> id, MachineLearningHolidayState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Custom
Periods List<Pulumiverse.Grafana. Inputs. Machine Learning Holiday Custom Period> - A list of custom periods for the holiday.
- Description string
- A description of the holiday.
- Ical
Timezone string - The timezone to use for events in the iCal file pointed to by ical_url.
- Ical
Url string - A URL to an iCal file containing all occurrences of the holiday.
- Name string
- The name of the custom period.
- Custom
Periods []MachineLearning Holiday Custom Period Args - A list of custom periods for the holiday.
- Description string
- A description of the holiday.
- Ical
Timezone string - The timezone to use for events in the iCal file pointed to by ical_url.
- Ical
Url string - A URL to an iCal file containing all occurrences of the holiday.
- Name string
- The name of the custom period.
- custom
Periods List<MachineLearning Holiday Custom Period> - A list of custom periods for the holiday.
- description String
- A description of the holiday.
- ical
Timezone String - The timezone to use for events in the iCal file pointed to by ical_url.
- ical
Url String - A URL to an iCal file containing all occurrences of the holiday.
- name String
- The name of the custom period.
- custom
Periods MachineLearning Holiday Custom Period[] - A list of custom periods for the holiday.
- description string
- A description of the holiday.
- ical
Timezone string - The timezone to use for events in the iCal file pointed to by ical_url.
- ical
Url string - A URL to an iCal file containing all occurrences of the holiday.
- name string
- The name of the custom period.
- custom_
periods Sequence[MachineLearning Holiday Custom Period Args] - A list of custom periods for the holiday.
- description str
- A description of the holiday.
- ical_
timezone str - The timezone to use for events in the iCal file pointed to by ical_url.
- ical_
url str - A URL to an iCal file containing all occurrences of the holiday.
- name str
- The name of the custom period.
- custom
Periods List<Property Map> - A list of custom periods for the holiday.
- description String
- A description of the holiday.
- ical
Timezone String - The timezone to use for events in the iCal file pointed to by ical_url.
- ical
Url String - A URL to an iCal file containing all occurrences of the holiday.
- name String
- The name of the custom period.
Supporting Types
MachineLearningHolidayCustomPeriod, MachineLearningHolidayCustomPeriodArgs
- end_
time str - start_
time str - name str
- The name of the custom period.
Import
$ pulumi import grafana:index/machineLearningHoliday:MachineLearningHoliday name "{{ id }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.