grafana.Report
Explore with Pulumi AI
Note: This resource is available only with Grafana Enterprise 7.+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const testDashboard = new grafana.Dashboard("testDashboard", {
configJson: `{
"uid": "report-dashboard",
"title": "report-dashboard"
}
`,
message: "inital commit.",
});
const testReport = new grafana.Report("testReport", {
dashboardUid: testDashboard.uid,
recipients: ["some@email.com"],
schedule: {
frequency: "hourly",
},
});
import pulumi
import pulumiverse_grafana as grafana
test_dashboard = grafana.Dashboard("testDashboard",
config_json="""{
"uid": "report-dashboard",
"title": "report-dashboard"
}
""",
message="inital commit.")
test_report = grafana.Report("testReport",
dashboard_uid=test_dashboard.uid,
recipients=["some@email.com"],
schedule=grafana.ReportScheduleArgs(
frequency="hourly",
))
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testDashboard, err := grafana.NewDashboard(ctx, "testDashboard", &grafana.DashboardArgs{
ConfigJson: pulumi.String("{\n \"uid\": \"report-dashboard\",\n \"title\": \"report-dashboard\"\n}\n"),
Message: pulumi.String("inital commit."),
})
if err != nil {
return err
}
_, err = grafana.NewReport(ctx, "testReport", &grafana.ReportArgs{
DashboardUid: testDashboard.Uid,
Recipients: pulumi.StringArray{
pulumi.String("some@email.com"),
},
Schedule: &grafana.ReportScheduleArgs{
Frequency: pulumi.String("hourly"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var testDashboard = new Grafana.Dashboard("testDashboard", new()
{
ConfigJson = @"{
""uid"": ""report-dashboard"",
""title"": ""report-dashboard""
}
",
Message = "inital commit.",
});
var testReport = new Grafana.Report("testReport", new()
{
DashboardUid = testDashboard.Uid,
Recipients = new[]
{
"some@email.com",
},
Schedule = new Grafana.Inputs.ReportScheduleArgs
{
Frequency = "hourly",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.Dashboard;
import com.pulumi.grafana.DashboardArgs;
import com.pulumi.grafana.Report;
import com.pulumi.grafana.ReportArgs;
import com.pulumi.grafana.inputs.ReportScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testDashboard = new Dashboard("testDashboard", DashboardArgs.builder()
.configJson("""
{
"uid": "report-dashboard",
"title": "report-dashboard"
}
""")
.message("inital commit.")
.build());
var testReport = new Report("testReport", ReportArgs.builder()
.dashboardUid(testDashboard.uid())
.recipients("some@email.com")
.schedule(ReportScheduleArgs.builder()
.frequency("hourly")
.build())
.build());
}
}
resources:
testDashboard:
type: grafana:Dashboard
properties:
configJson: |
{
"uid": "report-dashboard",
"title": "report-dashboard"
}
message: inital commit.
testReport:
type: grafana:Report
properties:
dashboardUid: ${testDashboard.uid}
recipients:
- some@email.com
schedule:
frequency: hourly
Create Report Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Report(name: string, args: ReportArgs, opts?: CustomResourceOptions);
@overload
def Report(resource_name: str,
args: ReportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Report(resource_name: str,
opts: Optional[ResourceOptions] = None,
recipients: Optional[Sequence[str]] = None,
schedule: Optional[ReportScheduleArgs] = None,
layout: Optional[str] = None,
formats: Optional[Sequence[str]] = None,
include_dashboard_link: Optional[bool] = None,
include_table_csv: Optional[bool] = None,
dashboard_id: Optional[int] = None,
message: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
orientation: Optional[str] = None,
dashboards: Optional[Sequence[ReportDashboardArgs]] = None,
reply_to: Optional[str] = None,
dashboard_uid: Optional[str] = None,
time_range: Optional[ReportTimeRangeArgs] = None)
func NewReport(ctx *Context, name string, args ReportArgs, opts ...ResourceOption) (*Report, error)
public Report(string name, ReportArgs args, CustomResourceOptions? opts = null)
public Report(String name, ReportArgs args)
public Report(String name, ReportArgs args, CustomResourceOptions options)
type: grafana:Report
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 ReportArgs
- 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 ReportArgs
- 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 ReportArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReportArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReportArgs
- 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 reportResource = new Grafana.Report("reportResource", new()
{
Recipients = new[]
{
"string",
},
Schedule = new Grafana.Inputs.ReportScheduleArgs
{
Frequency = "string",
CustomInterval = "string",
EndTime = "string",
LastDayOfMonth = false,
StartTime = "string",
Timezone = "string",
WorkdaysOnly = false,
},
Layout = "string",
Formats = new[]
{
"string",
},
IncludeDashboardLink = false,
IncludeTableCsv = false,
Message = "string",
Name = "string",
OrgId = "string",
Orientation = "string",
Dashboards = new[]
{
new Grafana.Inputs.ReportDashboardArgs
{
Uid = "string",
ReportVariables =
{
{ "string", "any" },
},
TimeRange = new Grafana.Inputs.ReportDashboardTimeRangeArgs
{
From = "string",
To = "string",
},
},
},
ReplyTo = "string",
});
example, err := grafana.NewReport(ctx, "reportResource", &grafana.ReportArgs{
Recipients: pulumi.StringArray{
pulumi.String("string"),
},
Schedule: &grafana.ReportScheduleArgs{
Frequency: pulumi.String("string"),
CustomInterval: pulumi.String("string"),
EndTime: pulumi.String("string"),
LastDayOfMonth: pulumi.Bool(false),
StartTime: pulumi.String("string"),
Timezone: pulumi.String("string"),
WorkdaysOnly: pulumi.Bool(false),
},
Layout: pulumi.String("string"),
Formats: pulumi.StringArray{
pulumi.String("string"),
},
IncludeDashboardLink: pulumi.Bool(false),
IncludeTableCsv: pulumi.Bool(false),
Message: pulumi.String("string"),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
Orientation: pulumi.String("string"),
Dashboards: grafana.ReportDashboardArray{
&grafana.ReportDashboardArgs{
Uid: pulumi.String("string"),
ReportVariables: pulumi.Map{
"string": pulumi.Any("any"),
},
TimeRange: &grafana.ReportDashboardTimeRangeArgs{
From: pulumi.String("string"),
To: pulumi.String("string"),
},
},
},
ReplyTo: pulumi.String("string"),
})
var reportResource = new Report("reportResource", ReportArgs.builder()
.recipients("string")
.schedule(ReportScheduleArgs.builder()
.frequency("string")
.customInterval("string")
.endTime("string")
.lastDayOfMonth(false)
.startTime("string")
.timezone("string")
.workdaysOnly(false)
.build())
.layout("string")
.formats("string")
.includeDashboardLink(false)
.includeTableCsv(false)
.message("string")
.name("string")
.orgId("string")
.orientation("string")
.dashboards(ReportDashboardArgs.builder()
.uid("string")
.reportVariables(Map.of("string", "any"))
.timeRange(ReportDashboardTimeRangeArgs.builder()
.from("string")
.to("string")
.build())
.build())
.replyTo("string")
.build());
report_resource = grafana.Report("reportResource",
recipients=["string"],
schedule=grafana.ReportScheduleArgs(
frequency="string",
custom_interval="string",
end_time="string",
last_day_of_month=False,
start_time="string",
timezone="string",
workdays_only=False,
),
layout="string",
formats=["string"],
include_dashboard_link=False,
include_table_csv=False,
message="string",
name="string",
org_id="string",
orientation="string",
dashboards=[grafana.ReportDashboardArgs(
uid="string",
report_variables={
"string": "any",
},
time_range=grafana.ReportDashboardTimeRangeArgs(
from_="string",
to="string",
),
)],
reply_to="string")
const reportResource = new grafana.Report("reportResource", {
recipients: ["string"],
schedule: {
frequency: "string",
customInterval: "string",
endTime: "string",
lastDayOfMonth: false,
startTime: "string",
timezone: "string",
workdaysOnly: false,
},
layout: "string",
formats: ["string"],
includeDashboardLink: false,
includeTableCsv: false,
message: "string",
name: "string",
orgId: "string",
orientation: "string",
dashboards: [{
uid: "string",
reportVariables: {
string: "any",
},
timeRange: {
from: "string",
to: "string",
},
}],
replyTo: "string",
});
type: grafana:Report
properties:
dashboards:
- reportVariables:
string: any
timeRange:
from: string
to: string
uid: string
formats:
- string
includeDashboardLink: false
includeTableCsv: false
layout: string
message: string
name: string
orgId: string
orientation: string
recipients:
- string
replyTo: string
schedule:
customInterval: string
endTime: string
frequency: string
lastDayOfMonth: false
startTime: string
timezone: string
workdaysOnly: false
Report 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 Report resource accepts the following input properties:
- Recipients List<string>
- List of recipients of the report.
- Schedule
Pulumiverse.
Grafana. Inputs. Report Schedule - Schedule of the report.
- Dashboard
Id int - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - Dashboard
Uid string - Dashboard to be sent in the report.
- Dashboards
List<Pulumiverse.
Grafana. Inputs. Report Dashboard> - List of dashboards to render into the report
- Formats List<string>
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - Include
Dashboard boolLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - Include
Table boolCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - Layout string
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - Message string
- Message to be sent in the report.
- Name string
- Name of the report.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Orientation string
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - Reply
To string - Reply-to email address of the report.
- Time
Range Pulumiverse.Grafana. Inputs. Report Time Range - Time range of the report.
- Recipients []string
- List of recipients of the report.
- Schedule
Report
Schedule Args - Schedule of the report.
- Dashboard
Id int - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - Dashboard
Uid string - Dashboard to be sent in the report.
- Dashboards
[]Report
Dashboard Args - List of dashboards to render into the report
- Formats []string
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - Include
Dashboard boolLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - Include
Table boolCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - Layout string
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - Message string
- Message to be sent in the report.
- Name string
- Name of the report.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Orientation string
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - Reply
To string - Reply-to email address of the report.
- Time
Range ReportTime Range Args - Time range of the report.
- recipients List<String>
- List of recipients of the report.
- schedule
Report
Schedule - Schedule of the report.
- dashboard
Id Integer - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard
Uid String - Dashboard to be sent in the report.
- dashboards
List<Report
Dashboard> - List of dashboards to render into the report
- formats List<String>
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include
Dashboard BooleanLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include
Table BooleanCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout String
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message String
- Message to be sent in the report.
- name String
- Name of the report.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation String
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - reply
To String - Reply-to email address of the report.
- time
Range ReportTime Range - Time range of the report.
- recipients string[]
- List of recipients of the report.
- schedule
Report
Schedule - Schedule of the report.
- dashboard
Id number - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard
Uid string - Dashboard to be sent in the report.
- dashboards
Report
Dashboard[] - List of dashboards to render into the report
- formats string[]
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include
Dashboard booleanLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include
Table booleanCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout string
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message string
- Message to be sent in the report.
- name string
- Name of the report.
- org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation string
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - reply
To string - Reply-to email address of the report.
- time
Range ReportTime Range - Time range of the report.
- recipients Sequence[str]
- List of recipients of the report.
- schedule
Report
Schedule Args - Schedule of the report.
- dashboard_
id int - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard_
uid str - Dashboard to be sent in the report.
- dashboards
Sequence[Report
Dashboard Args] - List of dashboards to render into the report
- formats Sequence[str]
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include_
dashboard_ boollink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include_
table_ boolcsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout str
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message str
- Message to be sent in the report.
- name str
- Name of the report.
- org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation str
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - reply_
to str - Reply-to email address of the report.
- time_
range ReportTime Range Args - Time range of the report.
- recipients List<String>
- List of recipients of the report.
- schedule Property Map
- Schedule of the report.
- dashboard
Id Number - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard
Uid String - Dashboard to be sent in the report.
- dashboards List<Property Map>
- List of dashboards to render into the report
- formats List<String>
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include
Dashboard BooleanLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include
Table BooleanCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout String
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message String
- Message to be sent in the report.
- name String
- Name of the report.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation String
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - reply
To String - Reply-to email address of the report.
- time
Range Property Map - Time range of the report.
Outputs
All input properties are implicitly available as output properties. Additionally, the Report 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 Report Resource
Get an existing Report 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?: ReportState, opts?: CustomResourceOptions): Report
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dashboard_id: Optional[int] = None,
dashboard_uid: Optional[str] = None,
dashboards: Optional[Sequence[ReportDashboardArgs]] = None,
formats: Optional[Sequence[str]] = None,
include_dashboard_link: Optional[bool] = None,
include_table_csv: Optional[bool] = None,
layout: Optional[str] = None,
message: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
orientation: Optional[str] = None,
recipients: Optional[Sequence[str]] = None,
reply_to: Optional[str] = None,
schedule: Optional[ReportScheduleArgs] = None,
time_range: Optional[ReportTimeRangeArgs] = None) -> Report
func GetReport(ctx *Context, name string, id IDInput, state *ReportState, opts ...ResourceOption) (*Report, error)
public static Report Get(string name, Input<string> id, ReportState? state, CustomResourceOptions? opts = null)
public static Report get(String name, Output<String> id, ReportState 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.
- Dashboard
Id int - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - Dashboard
Uid string - Dashboard to be sent in the report.
- Dashboards
List<Pulumiverse.
Grafana. Inputs. Report Dashboard> - List of dashboards to render into the report
- Formats List<string>
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - Include
Dashboard boolLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - Include
Table boolCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - Layout string
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - Message string
- Message to be sent in the report.
- Name string
- Name of the report.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Orientation string
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - Recipients List<string>
- List of recipients of the report.
- Reply
To string - Reply-to email address of the report.
- Schedule
Pulumiverse.
Grafana. Inputs. Report Schedule - Schedule of the report.
- Time
Range Pulumiverse.Grafana. Inputs. Report Time Range - Time range of the report.
- Dashboard
Id int - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - Dashboard
Uid string - Dashboard to be sent in the report.
- Dashboards
[]Report
Dashboard Args - List of dashboards to render into the report
- Formats []string
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - Include
Dashboard boolLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - Include
Table boolCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - Layout string
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - Message string
- Message to be sent in the report.
- Name string
- Name of the report.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Orientation string
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - Recipients []string
- List of recipients of the report.
- Reply
To string - Reply-to email address of the report.
- Schedule
Report
Schedule Args - Schedule of the report.
- Time
Range ReportTime Range Args - Time range of the report.
- dashboard
Id Integer - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard
Uid String - Dashboard to be sent in the report.
- dashboards
List<Report
Dashboard> - List of dashboards to render into the report
- formats List<String>
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include
Dashboard BooleanLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include
Table BooleanCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout String
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message String
- Message to be sent in the report.
- name String
- Name of the report.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation String
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - recipients List<String>
- List of recipients of the report.
- reply
To String - Reply-to email address of the report.
- schedule
Report
Schedule - Schedule of the report.
- time
Range ReportTime Range - Time range of the report.
- dashboard
Id number - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard
Uid string - Dashboard to be sent in the report.
- dashboards
Report
Dashboard[] - List of dashboards to render into the report
- formats string[]
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include
Dashboard booleanLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include
Table booleanCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout string
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message string
- Message to be sent in the report.
- name string
- Name of the report.
- org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation string
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - recipients string[]
- List of recipients of the report.
- reply
To string - Reply-to email address of the report.
- schedule
Report
Schedule - Schedule of the report.
- time
Range ReportTime Range - Time range of the report.
- dashboard_
id int - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard_
uid str - Dashboard to be sent in the report.
- dashboards
Sequence[Report
Dashboard Args] - List of dashboards to render into the report
- formats Sequence[str]
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include_
dashboard_ boollink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include_
table_ boolcsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout str
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message str
- Message to be sent in the report.
- name str
- Name of the report.
- org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation str
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - recipients Sequence[str]
- List of recipients of the report.
- reply_
to str - Reply-to email address of the report.
- schedule
Report
Schedule Args - Schedule of the report.
- time_
range ReportTime Range Args - Time range of the report.
- dashboard
Id Number - Dashboard to be sent in the report. This field is deprecated, use
dashboard_uid
instead. - dashboard
Uid String - Dashboard to be sent in the report.
- dashboards List<Property Map>
- List of dashboards to render into the report
- formats List<String>
- Specifies what kind of attachment to generate for the report. Allowed values:
pdf
,csv
,image
. - include
Dashboard BooleanLink - Whether to include a link to the dashboard in the report. Defaults to
true
. - include
Table BooleanCsv - Whether to include a CSV file of table panel data. Defaults to
false
. - layout String
- Layout of the report. Allowed values:
simple
,grid
. Defaults togrid
. - message String
- Message to be sent in the report.
- name String
- Name of the report.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- orientation String
- Orientation of the report. Allowed values:
landscape
,portrait
. Defaults tolandscape
. - recipients List<String>
- List of recipients of the report.
- reply
To String - Reply-to email address of the report.
- schedule Property Map
- Schedule of the report.
- time
Range Property Map - Time range of the report.
Supporting Types
ReportDashboard, ReportDashboardArgs
- Uid string
- Dashboard uid.
- Report
Variables Dictionary<string, object> - Add report variables to the dashboard. Values should be separated by commas.
- Time
Range Pulumiverse.Grafana. Inputs. Report Dashboard Time Range - Time range of the report.
- Uid string
- Dashboard uid.
- Report
Variables map[string]interface{} - Add report variables to the dashboard. Values should be separated by commas.
- Time
Range ReportDashboard Time Range - Time range of the report.
- uid String
- Dashboard uid.
- report
Variables Map<String,Object> - Add report variables to the dashboard. Values should be separated by commas.
- time
Range ReportDashboard Time Range - Time range of the report.
- uid string
- Dashboard uid.
- report
Variables {[key: string]: any} - Add report variables to the dashboard. Values should be separated by commas.
- time
Range ReportDashboard Time Range - Time range of the report.
- uid str
- Dashboard uid.
- report_
variables Mapping[str, Any] - Add report variables to the dashboard. Values should be separated by commas.
- time_
range ReportDashboard Time Range - Time range of the report.
- uid String
- Dashboard uid.
- report
Variables Map<Any> - Add report variables to the dashboard. Values should be separated by commas.
- time
Range Property Map - Time range of the report.
ReportDashboardTimeRange, ReportDashboardTimeRangeArgs
ReportSchedule, ReportScheduleArgs
- Frequency string
- Frequency of the report. Allowed values:
never
,once
,hourly
,daily
,weekly
,monthly
,custom
. - Custom
Interval string - Custom interval of the report.
Note: This field is only available when frequency is set to
custom
. - End
Time string - End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- Last
Day boolOf Month - Send the report on the last day of the month Defaults to
false
. - Start
Time string - Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- Timezone string
- Set the report time zone. Defaults to
GMT
. - Workdays
Only bool - Whether to send the report only on work days. Defaults to
false
.
- Frequency string
- Frequency of the report. Allowed values:
never
,once
,hourly
,daily
,weekly
,monthly
,custom
. - Custom
Interval string - Custom interval of the report.
Note: This field is only available when frequency is set to
custom
. - End
Time string - End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- Last
Day boolOf Month - Send the report on the last day of the month Defaults to
false
. - Start
Time string - Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- Timezone string
- Set the report time zone. Defaults to
GMT
. - Workdays
Only bool - Whether to send the report only on work days. Defaults to
false
.
- frequency String
- Frequency of the report. Allowed values:
never
,once
,hourly
,daily
,weekly
,monthly
,custom
. - custom
Interval String - Custom interval of the report.
Note: This field is only available when frequency is set to
custom
. - end
Time String - End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- last
Day BooleanOf Month - Send the report on the last day of the month Defaults to
false
. - start
Time String - Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- timezone String
- Set the report time zone. Defaults to
GMT
. - workdays
Only Boolean - Whether to send the report only on work days. Defaults to
false
.
- frequency string
- Frequency of the report. Allowed values:
never
,once
,hourly
,daily
,weekly
,monthly
,custom
. - custom
Interval string - Custom interval of the report.
Note: This field is only available when frequency is set to
custom
. - end
Time string - End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- last
Day booleanOf Month - Send the report on the last day of the month Defaults to
false
. - start
Time string - Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- timezone string
- Set the report time zone. Defaults to
GMT
. - workdays
Only boolean - Whether to send the report only on work days. Defaults to
false
.
- frequency str
- Frequency of the report. Allowed values:
never
,once
,hourly
,daily
,weekly
,monthly
,custom
. - custom_
interval str - Custom interval of the report.
Note: This field is only available when frequency is set to
custom
. - end_
time str - End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- last_
day_ boolof_ month - Send the report on the last day of the month Defaults to
false
. - start_
time str - Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- timezone str
- Set the report time zone. Defaults to
GMT
. - workdays_
only bool - Whether to send the report only on work days. Defaults to
false
.
- frequency String
- Frequency of the report. Allowed values:
never
,once
,hourly
,daily
,weekly
,monthly
,custom
. - custom
Interval String - Custom interval of the report.
Note: This field is only available when frequency is set to
custom
. - end
Time String - End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- last
Day BooleanOf Month - Send the report on the last day of the month Defaults to
false
. - start
Time String - Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana. Use 2006-01-02T15:04:05 format if you want to set a custom timezone
- timezone String
- Set the report time zone. Defaults to
GMT
. - workdays
Only Boolean - Whether to send the report only on work days. Defaults to
false
.
ReportTimeRange, ReportTimeRangeArgs
Import
$ pulumi import grafana:index/report:Report name "{{ id }}"
$ pulumi import grafana:index/report:Report name "{{ orgID }}:{{ 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.