diff --git a/monitor_dashboards.go b/monitor_dashboards.go new file mode 100644 index 000000000..7aa7999ef --- /dev/null +++ b/monitor_dashboards.go @@ -0,0 +1,115 @@ +package linodego + +import ( + "context" + "encoding/json" + "time" + + "github.com/linode/linodego/internal/parseabletime" +) + +// MonitorDashboard represents an ACLP Dashboard object +type MonitorDashboard struct { + ID int `json:"id"` + Type DashboardType `json:"type"` + ServiceType ServiceType `json:"service_type"` + Label string `json:"label"` + Created *time.Time `json:"-"` + Updated *time.Time `json:"-"` + Widgets []DashboardWidget `json:"widgets"` +} + +// enum object for serviceType +type ServiceType string + +const ( + ServiceTypeLinode ServiceType = "linode" + ServiceTypeLKE ServiceType = "lke" + ServiceTypeDBaaS ServiceType = "dbaas" + ServiceTypeACLB ServiceType = "aclb" + ServiceTypeNodeBalancer ServiceType = "nodebalancer" + ServiceTypeObjectStorage ServiceType = "objectstorage" + ServiceTypeVPC ServiceType = "vpc" + ServiceTypeFirewallService ServiceType = "firewall" +) + +// enum object for DashboardType +type DashboardType string + +const ( + DashboardTypeStandard DashboardType = "standard" + DashboardTypeCustom DashboardType = "custom" +) + +// DashboardWidget represents an ACLP DashboardWidget object +type DashboardWidget struct { + Metric string `json:"metric"` + Unit string `json:"unit"` + Label string `json:"label"` + Color string `json:"color"` + Size int `json:"size"` + ChartType ChartType `json:"chart_type"` + YLabel string `json:"y_label"` + AggregateFunction AggregateFunction `json:"aggregate_function"` +} + +// Enum object for AggregateFunction +type AggregateFunction string + +const ( + AggregateFunctionMin AggregateFunction = "min" + AggregateFunctionMax AggregateFunction = "max" + AggregateFunctionAvg AggregateFunction = "avg" + AggregateFunctionSum AggregateFunction = "sum" + AggregateFunctionRate AggregateFunction = "rate" + AggregateFunctionIncrease AggregateFunction = "increase" + AggregateFunctionCount AggregateFunction = "count" + AggregateFunctionLast AggregateFunction = "last" +) + +// Enum object for Chart type +type ChartType string + +const ( + ChartTypeLine ChartType = "line" + ChartTypeArea ChartType = "area" +) + +// ListMonitorDashboards lists all the ACLP Monitor Dashboards +func (c *Client) ListMonitorDashboards(ctx context.Context, opts *ListOptions) ([]MonitorDashboard, error) { + return getPaginatedResults[MonitorDashboard](ctx, c, "monitor/dashboards", opts) +} + +// GetMonitorDashboard gets an ACLP Monitor Dashboard for a given dashboardID +func (c *Client) GetMonitorDashboard(ctx context.Context, dashboardID int) (*MonitorDashboard, error) { + e := formatAPIPath("monitor/dashboards/%d", dashboardID) + return doGETRequest[MonitorDashboard](ctx, c, e) +} + +// ListMonitorDashboardsByServiceType lists ACLP Monitor Dashboards for a given serviceType +func (c *Client) ListMonitorDashboardsByServiceType(ctx context.Context, serviceType string, opts *ListOptions) ([]MonitorDashboard, error) { + e := formatAPIPath("monitor/services/%s/dashboards", serviceType) + return getPaginatedResults[MonitorDashboard](ctx, c, e, opts) +} + +// UnmarshalJSON implements the json.Unmarshaler interface +func (i *MonitorDashboard) UnmarshalJSON(b []byte) error { + type Mask MonitorDashboard + + p := struct { + *Mask + Created *parseabletime.ParseableTime `json:"created"` + Updated *parseabletime.ParseableTime `json:"updated"` + }{ + Mask: (*Mask)(i), + } + + if err := json.Unmarshal(b, &p); err != nil { + return err + } + + i.Created = (*time.Time)(p.Created) + i.Updated = (*time.Time)(p.Updated) + + return nil +} diff --git a/monitor_metrics_definitions.go b/monitor_metrics_definitions.go new file mode 100644 index 000000000..eca52b112 --- /dev/null +++ b/monitor_metrics_definitions.go @@ -0,0 +1,61 @@ +package linodego + +import ( + "context" +) + +// MonitorMetricsDefinition represents an ACLP MetricsDefinition object +type MonitorMetricsDefinition struct { + AvailableAggregateFunctions []AggregateFunction `json:"available_aggregate_functions"` + Dimensions []MonitorDimension `json:"dimensions"` + IsAlertable bool `json:"is_alertable"` + Label string `json:"label"` + Metric string `json:"metric"` + MetricType MetricType `json:"metric_type"` + ScrapeInterval string `json:"scrape_interval"` + Unit MetricUnit `json:"unit"` +} + +// Enum object for MetricType +type MetricType string + +const ( + MetricTypeCounter MetricType = "counter" + MetricTypeHistogram MetricType = "histogram" + MetricTypeGauge MetricType = "gauge" + MetricTypeSummary MetricType = "summary" +) + +// Enum object for Unit +type MetricUnit string + +const ( + MetricUnitCount MetricUnit = "count" + MetricUnitPercent MetricUnit = "percent" + MetricUnitByte MetricUnit = "byte" + MetricUnitSecond MetricUnit = "second" + MetricUnitBitsPerSecond MetricUnit = "bits_per_second" + MetricUnitMillisecond MetricUnit = "millisecond" + MetricUnitKB MetricUnit = "KB" + MetricUnitMB MetricUnit = "MB" + MetricUnitGB MetricUnit = "GB" + MetricUnitRate MetricUnit = "rate" + MetricUnitBytesPerSecond MetricUnit = "bytes_per_second" + MetricUnitPercentile MetricUnit = "percentile" + MetricUnitRatio MetricUnit = "ratio" + MetricUnitOpsPerSecond MetricUnit = "ops_per_second" + MetricUnitIops MetricUnit = "iops" +) + +// MonitorDimension represents an ACLP MonitorDimension object +type MonitorDimension struct { + DimensionLabel string `json:"dimension_label"` + Label string `json:"label"` + Values []string `json:"values"` +} + +// ListMonitorMetricsDefinitionByServiceType lists metric definitions +func (c *Client) ListMonitorMetricsDefinitionByServiceType(ctx context.Context, serviceType string, opts *ListOptions) ([]MonitorMetricsDefinition, error) { + e := formatAPIPath("monitor/services/%s/metric-definitions", serviceType) + return getPaginatedResults[MonitorMetricsDefinition](ctx, c, e, opts) +} diff --git a/monitor_services.go b/monitor_services.go new file mode 100644 index 000000000..631df0770 --- /dev/null +++ b/monitor_services.go @@ -0,0 +1,22 @@ +package linodego + +import ( + "context" +) + +// MonitorService represents a MonitorService object +type MonitorService struct { + Label string `json:"label"` + ServiceType string `json:"service_type"` +} + +// ListMonitorServices lists all the registered ACLP MonitorServices +func (c *Client) ListMonitorServices(ctx context.Context, opts *ListOptions) ([]MonitorService, error) { + return getPaginatedResults[MonitorService](ctx, c, "monitor/services", opts) +} + +// ListMonitorServiceByType lists monitor services by a given service_type +func (c *Client) ListMonitorServiceByType(ctx context.Context, serviceType string, opts *ListOptions) ([]MonitorService, error) { + e := formatAPIPath("monitor/services/%s", serviceType) + return getPaginatedResults[MonitorService](ctx, c, e, opts) +} diff --git a/monitor_services_create_token.go b/monitor_services_create_token.go new file mode 100644 index 000000000..39bcc0757 --- /dev/null +++ b/monitor_services_create_token.go @@ -0,0 +1,21 @@ +package linodego + +import ( + "context" +) + +// MonitorServiceToken represents a MonitorServiceToken object +type MonitorServiceToken struct { + Token string `json:"token"` +} + +// Create token options +type MonitorTokenCreateOptions struct { + EntityIDs []int `json:"entity_ids"` +} + +// CreateMonitorServiceTokenForServiceType to create token for a given serviceType +func (c *Client) CreateMonitorServiceTokenForServiceType(ctx context.Context, serviceType string, opts MonitorTokenCreateOptions) (*MonitorServiceToken, error) { + e := formatAPIPath("monitor/services/%s/token", serviceType) + return doPOSTRequest[MonitorServiceToken](ctx, c, e, opts) +} diff --git a/test/integration/fixtures/TestDatabaseACLP_List.yaml b/test/integration/fixtures/TestDatabaseACLP_List.yaml new file mode 100644 index 000000000..8e5b5fc00 --- /dev/null +++ b/test/integration/fixtures/TestDatabaseACLP_List.yaml @@ -0,0 +1,5368 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/regions?page=1 + method: GET + response: + body: '{"data": [{"id": "ap-west", "label": "Mumbai, IN", "country": "in", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed Databases", + "Metadata", "Placement Group", "StackScripts"], "status": "ok", "resolvers": + {"ipv4": "172.105.34.5,172.105.35.5,172.105.36.5,172.105.37.5,172.105.38.5,172.105.39.5,172.105.40.5,172.105.41.5,172.105.42.5,172.105.43.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ca-central", "label": "Toronto, CA", "country": + "ca", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed + Databases", "Metadata", "Placement Group", "StackScripts"], "status": "ok", + "resolvers": {"ipv4": "172.105.0.5,172.105.3.5,172.105.4.5,172.105.5.5,172.105.6.5,172.105.7.5,172.105.8.5,172.105.9.5,172.105.10.5,172.105.11.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-southeast", "label": "Sydney, AU", "country": + "au", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed + Databases", "Metadata", "Placement Group", "StackScripts"], "status": "ok", + "resolvers": {"ipv4": "172.105.166.5,172.105.169.5,172.105.168.5,172.105.172.5,172.105.162.5,172.105.170.5,172.105.167.5,172.105.171.5,172.105.181.5,172.105.161.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-iad", "label": "Washington, DC", "country": + "us", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts"], "status": "ok", "resolvers": {"ipv4": "139.144.192.62,139.144.192.60,139.144.192.61,139.144.192.53,139.144.192.54,139.144.192.67,139.144.192.69,139.144.192.66,139.144.192.52,139.144.192.68", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-ord", "label": "Chicago, IL", "country": + "us", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement + Group", "StackScripts"], "status": "ok", "resolvers": {"ipv4": "172.232.0.17,172.232.0.16,172.232.0.21,172.232.0.13,172.232.0.22,172.232.0.9,172.232.0.19,172.232.0.20,172.232.0.15,172.232.0.18", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "fr-par", "label": "Paris, FR", "country": + "fr", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement + Group", "StackScripts"], "status": "ok", "resolvers": {"ipv4": "172.232.32.21,172.232.32.23,172.232.32.17,172.232.32.18,172.232.32.16,172.232.32.22,172.232.32.20,172.232.32.14,172.232.32.11,172.232.32.12", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-sea", "label": "Seattle, WA", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.232.160.19,172.232.160.21,172.232.160.17,172.232.160.15,172.232.160.18,172.232.160.8,172.232.160.12,172.232.160.11,172.232.160.14,172.232.160.16", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "br-gru", "label": "Sao Paulo, BR", "country": + "br", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed + Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.233.0.4,172.233.0.9,172.233.0.7,172.233.0.12,172.233.0.5,172.233.0.13,172.233.0.10,172.233.0.6,172.233.0.8,172.233.0.11", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "nl-ams", "label": "Amsterdam, NL", "country": + "nl", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts"], "status": "ok", "resolvers": {"ipv4": "172.233.33.36,172.233.33.38,172.233.33.35,172.233.33.39,172.233.33.34,172.233.33.33,172.233.33.31,172.233.33.30,172.233.33.37,172.233.33.32", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "se-sto", "label": "Stockholm, SE", "country": + "se", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed + Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.232.128.24,172.232.128.26,172.232.128.20,172.232.128.22,172.232.128.25,172.232.128.19,172.232.128.23,172.232.128.18,172.232.128.21,172.232.128.27", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "es-mad", "label": "Madrid, ES", "country": + "es", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed + Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.233.111.6,172.233.111.17,172.233.111.21,172.233.111.25,172.233.111.19,172.233.111.12,172.233.111.26,172.233.111.16,172.233.111.18,172.233.111.9", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "in-maa", "label": "Chennai, IN", "country": + "in", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts", "NETINT Quadra T1U"], "status": "ok", "resolvers": {"ipv4": + "172.232.96.17,172.232.96.26,172.232.96.19,172.232.96.20,172.232.96.25,172.232.96.21,172.232.96.18,172.232.96.22,172.232.96.23,172.232.96.24", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "jp-osa", "label": "Osaka, JP", "country": + "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Managed Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.233.64.44,172.233.64.43,172.233.64.37,172.233.64.40,172.233.64.46,172.233.64.41,172.233.64.39,172.233.64.42,172.233.64.45,172.233.64.38", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "it-mil", "label": "Milan, IT", "country": + "it", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed + Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.232.192.19,172.232.192.18,172.232.192.16,172.232.192.20,172.232.192.24,172.232.192.21,172.232.192.22,172.232.192.17,172.232.192.15,172.232.192.23", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-mia", "label": "Miami, FL", "country": + "us", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts", "NETINT Quadra T1U"], "status": "ok", "resolvers": {"ipv4": + "172.233.160.34,172.233.160.27,172.233.160.30,172.233.160.29,172.233.160.32,172.233.160.28,172.233.160.33,172.233.160.26,172.233.160.25,172.233.160.31", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "id-cgk", "label": "Jakarta, ID", "country": + "id", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Managed + Databases", "Metadata", "Premium Plans", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "172.232.224.23,172.232.224.32,172.232.224.26,172.232.224.27,172.232.224.21,172.232.224.24,172.232.224.22,172.232.224.20,172.232.224.31,172.232.224.28", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-lax", "label": "Los Angeles, CA", "country": + "us", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts", "NETINT Quadra T1U"], "status": "ok", "resolvers": {"ipv4": + "172.233.128.45,172.233.128.38,172.233.128.53,172.233.128.37,172.233.128.34,172.233.128.36,172.233.128.33,172.233.128.39,172.233.128.43,172.233.128.44", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "gb-lon", "label": "London 2, UK", "country": + "gb", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts"], "status": "ok", "resolvers": {"ipv4": "172.236.0.46,172.236.0.50,172.236.0.47,172.236.0.53,172.236.0.52,172.236.0.45,172.236.0.49,172.236.0.51,172.236.0.54,172.236.0.48", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "au-mel", "label": "Melbourne, AU", "country": + "au", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", + "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement Group", + "StackScripts", "NETINT Quadra T1U"], "status": "ok", "resolvers": {"ipv4": + "172.236.32.23,172.236.32.35,172.236.32.30,172.236.32.28,172.236.32.32,172.236.32.33,172.236.32.27,172.236.32.37,172.236.32.29,172.236.32.34", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "in-bom-2", "label": "Mumbai 2, IN", "country": + "in", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "GPU Linodes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", "Premium Plans", + "Placement Group", "StackScripts"], "status": "ok", "resolvers": {"ipv4": "172.236.171.41,172.236.171.42,172.236.171.25,172.236.171.44,172.236.171.26,172.236.171.45,172.236.171.24,172.236.171.43,172.236.171.27,172.236.171.28", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "de-fra-2", "label": "Frankfurt 2, DE", "country": + "de", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", + "Metadata", "Premium Plans", "Placement Group", "StackScripts", "NETINT Quadra + T1U"], "status": "ok", "resolvers": {"ipv4": "172.236.203.9,172.236.203.16,172.236.203.19,172.236.203.15,172.236.203.17,172.236.203.11,172.236.203.18,172.236.203.14,172.236.203.13,172.236.203.12", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "sg-sin-2", "label": "Singapore 2, SG", "country": + "sg", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", + "Vlans", "VPCs", "Managed Databases", "Metadata", "Premium Plans", "Placement + Group", "StackScripts"], "status": "ok", "resolvers": {"ipv4": "172.236.129.8,172.236.129.42,172.236.129.41,172.236.129.19,172.236.129.46,172.236.129.23,172.236.129.48,172.236.129.20,172.236.129.21,172.236.129.47", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "jp-tyo-3", "label": "Tokyo 3, JP", "country": + "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "Kubernetes", "Cloud Firewall", "Vlans", "VPCs", "Metadata", + "Premium Plans", "Placement Group", "StackScripts"], "status": "ok", "resolvers": + {"ipv4": "172.237.4.15,172.237.4.19,172.237.4.17,172.237.4.21,172.237.4.16,172.237.4.18,172.237.4.23,172.237.4.24,172.237.4.20,172.237.4.14", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-central", "label": "Dallas, TX", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed + Databases", "Metadata", "Placement Group", "StackScripts"], "status": "ok", + "resolvers": {"ipv4": "72.14.179.5,72.14.188.5,173.255.199.5,66.228.53.5,96.126.122.5,96.126.124.5,96.126.127.5,198.58.107.5,198.58.111.5,23.239.24.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-west", "label": "Fremont, CA", "country": + "us", "capabilities": ["Linodes", "Block Storage Encryption", "Backups", "NodeBalancers", + "Block Storage", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata", "Placement Group", "StackScripts"], "status": + "ok", "resolvers": {"ipv4": "173.230.145.5, 173.230.147.5, 173.230.155.5, 173.255.212.5, + 173.255.219.5, 173.255.241.5, 173.255.243.5, 173.255.244.5, 74.207.241.5, 74.207.242.5", + "ipv6": "1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678"}, "placement_group_limits": + {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": 5}, "site_type": + "core"}, {"id": "us-southeast", "label": "Atlanta, GA", "country": "us", "capabilities": + ["Linodes", "Backups", "NodeBalancers", "Block Storage", "Object Storage", "GPU + Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", + "Managed Databases", "Metadata", "Placement Group", "StackScripts"], "status": + "ok", "resolvers": {"ipv4": "74.207.231.5,173.230.128.5,173.230.129.5,173.230.136.5,173.230.140.5,66.228.59.5,66.228.62.5,50.116.35.5,50.116.41.5,23.239.18.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "us-east", "label": "Newark, NJ", "country": + "us", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "66.228.42.5,96.126.106.5,50.116.53.5,50.116.58.5,50.116.61.5,50.116.62.5,66.175.211.5,97.107.133.4,173.255.225.5,66.228.35.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "eu-west", "label": "London, UK", "country": + "gb", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Metadata", + "Placement Group", "StackScripts"], "status": "ok", "resolvers": {"ipv4": "178.79.182.5, + 176.58.107.5, 176.58.116.5, 176.58.121.5, 151.236.220.5, 212.71.252.5, 212.71.253.5, + 109.74.192.20, 109.74.193.20, 109.74.194.20", "ipv6": "1234::5678, 1234::5678, + 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, 1234::5678, + 1234::5678, 1234::5678"}, "placement_group_limits": {"maximum_pgs_per_customer": + null, "maximum_linodes_per_pg": 5}, "site_type": "core"}, {"id": "ap-south", + "label": "Singapore, SG", "country": "sg", "capabilities": ["Linodes", "Backups", + "NodeBalancers", "Block Storage", "Object Storage", "GPU Linodes", "Kubernetes", + "Cloud Firewall", "Vlans", "Block Storage Migrations", "Metadata", "Placement + Group", "StackScripts"], "status": "ok", "resolvers": {"ipv4": "139.162.11.5,139.162.13.5,139.162.14.5,139.162.15.5,139.162.16.5,139.162.21.5,139.162.27.5,103.3.60.18,103.3.60.19,103.3.60.20", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "eu-central", "label": "Frankfurt, DE", "country": + "de", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Object Storage", "GPU Linodes", "Kubernetes", "Cloud Firewall", "Vlans", "Block + Storage Migrations", "Managed Databases", "Metadata", "Placement Group", "StackScripts"], + "status": "ok", "resolvers": {"ipv4": "139.162.130.5,139.162.131.5,139.162.132.5,139.162.133.5,139.162.134.5,139.162.135.5,139.162.136.5,139.162.137.5,139.162.138.5,139.162.139.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}, {"id": "ap-northeast", "label": "Tokyo 2, JP", "country": + "jp", "capabilities": ["Linodes", "Backups", "NodeBalancers", "Block Storage", + "Kubernetes", "Cloud Firewall", "Vlans", "Block Storage Migrations", "Managed + Databases", "Metadata", "Placement Group", "StackScripts"], "status": "ok", + "resolvers": {"ipv4": "139.162.66.5,139.162.67.5,139.162.68.5,139.162.69.5,139.162.70.5,139.162.71.5,139.162.72.5,139.162.73.5,139.162.74.5,139.162.75.5", + "ipv6": "1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678,1234::5678"}, + "placement_group_limits": {"maximum_pgs_per_customer": null, "maximum_linodes_per_pg": + 5}, "site_type": "core"}], "page": 1, "pages": 1, "results": 31}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:26:14 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - '*' + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"label":"go-postgres-testing-defhp467g50vl2b","region":"ap-west","type":"g6-nanode-1","engine":"postgresql/14","allow_list":["203.0.113.1","192.0.1.0/24"],"cluster_size":3}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/databases/postgresql/instances + method: POST + response: + body: '{"allow_list": ["192.0.1.0/24", "203.0.113.1/32"], "cluster_size": 3, "created": + "2018-01-02T03:04:05", "encrypted": true, "engine": "postgresql", "hosts": {"primary": + "a278588-akamai-prod-3496018-default.g2a.akamaidb.net", "standby": "replica-a278588-akamai-prod-3496018-default.g2a.akamaidb.net"}, + "id": 278588, "label": "go-postgres-testing-defhp467g50vl2b", "members": {}, + "port": 14817, "region": "ap-west", "ssl_connection": true, "status": "provisioning", + "total_disk_size_gb": 9, "type": "g6-nanode-1", "updated": "2018-01-02T03:04:05", + "updates": {"day_of_week": 7, "duration": 4, "frequency": "weekly", "hour_of_day": + 13, "pending": []}, "used_disk_size_gb": null, "version": "14", "platform": + "rdbms-default"}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "720" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:26:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - databases:read_write + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database"}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:26:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:26:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:27:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:27:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:27:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:27:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:28:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:28:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:28:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:28:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:29:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:29:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:29:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:29:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:30:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:30:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:30:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:30:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:31:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:31:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:31:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:31:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:32:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:32:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:32:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:32:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:33:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:33:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:33:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:33:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:34:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:34:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:34:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:34:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:35:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:35:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:35:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:35:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:36:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:36:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:36:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:36:49 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:37:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:37:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:37:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:37:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:38:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:38:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:38:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:38:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:39:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:39:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:39:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:39:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:40:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:40:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:40:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:40:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:41:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:41:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:41:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:41:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:42:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:42:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:42:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:42:48 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:43:03 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": null, "time_remaining": null, "rate": + null, "duration": null, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "notification", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "485" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:43:18 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"+order":"desc","+order_by":"created","action":"database_create","created":{"+gte":"2025-04-16T07:26:13"},"entity.id":278588,"entity.type":"database","id":{"+gte":1008704458}}' + url: https://api.linode.com/v4beta/account/events?page=1 + method: GET + response: + body: '{"data": [{"id": 1008704458, "created": "2018-01-02T03:04:05", "seen": + false, "read": false, "percent_complete": 100, "time_remaining": null, "rate": + null, "duration": 605, "action": "database_create", "username": "radhika_gemini", + "entity": {"label": "go-postgres-testing-defhp467g50vl2b", "id": 278588, "type": + "database", "url": "/v4/databases/postgresql/instances/278588"}, "status": "finished", + "secondary_entity": null, "message": ""}], "page": 1, "pages": 1, "results": + 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "479" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:43:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - events:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/databases/instances?page=1 + method: GET + response: + body: '{"data": [{"id": 138534, "label": "testing345", "type": "g6-standard-1", + "engine": "mysql", "version": "8.0.30", "region": "us-ord", "status": "active", + "port": 3306, "encrypted": false, "allow_list": [], "cluster_size": 3, "hosts": + {"primary": "lin-138534-17484-mysql-primary.servers.linodedb.net", "secondary": + "lin-138534-17484-mysql-primary-private.servers.linodedb.net"}, "created": "2018-01-02T03:04:05", + "updated": "2018-01-02T03:04:05", "total_disk_size_gb": 35, "used_disk_size_gb": + 3, "members": {"172.232.29.58": "primary", "172.232.29.155": "failover", "172.232.29.159": + "failover"}, "updates": {"frequency": "weekly", "duration": 3, "hour_of_day": + 5, "day_of_week": 7, "week_of_month": null}, "instance_uri": "/databases/mysql/instances/138534", + "platform": "rdbms-legacy"}, {"allow_list": [], "cluster_size": 3, "created": + "2018-01-02T03:04:05", "encrypted": true, "engine": "mysql", "hosts": {"primary": + "a187468-akamai-prod-3496018-default.g2a.akamaidb.net", "standby": "replica-a187468-akamai-prod-3496018-default.g2a.akamaidb.net"}, + "id": 187468, "label": "TestAiven", "members": {"172.237.148.170": "primary", + "172.237.148.239": "failover", "172.237.148.247": "failover"}, "oldest_restore_time": + "2018-01-02T03:04:05", "port": 14817, "region": "us-ord", "ssl_connection": + true, "status": "active", "total_disk_size_gb": 130, "type": "g6-dedicated-4", + "updated": "2018-01-02T03:04:05", "updates": {"day_of_week": 6, "duration": + 4, "frequency": "weekly", "hour_of_day": 1, "pending": []}, "used_disk_size_gb": + 3, "version": "8.0.35", "platform": "rdbms-default"}, {"allow_list": [], "cluster_size": + 3, "created": "2018-01-02T03:04:05", "encrypted": true, "engine": "mysql", "hosts": + {"primary": "a188020-akamai-prod-3496018-default.g2a.akamaidb.net", "standby": + "replica-a188020-akamai-prod-3496018-default.g2a.akamaidb.net"}, "id": 188020, + "label": "TestAiven2", "members": {"172.234.29.40": "failover", "172.236.101.144": + "primary", "172.236.101.97": "failover"}, "oldest_restore_time": "2018-01-02T03:04:05", + "port": 14817, "region": "us-ord", "ssl_connection": true, "status": "active", + "total_disk_size_gb": 130, "type": "g6-dedicated-4", "updated": "2018-01-02T03:04:05", + "updates": {"day_of_week": 2, "duration": 4, "frequency": "weekly", "hour_of_day": + 5, "pending": [{"deadline": "2018-01-02T03:04:05", "description": "Platform + Updates", "planned_for": "2018-01-02T03:04:05"}]}, "used_disk_size_gb": 3, "version": + "8.0.35", "platform": "rdbms-default"}, {"allow_list": [], "cluster_size": 3, + "created": "2018-01-02T03:04:05", "encrypted": true, "engine": "postgresql", + "hosts": {"primary": "a188680-akamai-prod-3496018-default.g2a.akamaidb.net", + "standby": "replica-a188680-akamai-prod-3496018-default.g2a.akamaidb.net"}, + "id": 188680, "label": "Test-postgres", "members": {"172.232.28.119": "primary", + "172.234.217.106": "failover", "172.236.108.64": "failover"}, "oldest_restore_time": + "2018-01-02T03:04:05", "port": 14817, "region": "us-ord", "ssl_connection": + true, "status": "active", "total_disk_size_gb": 58, "type": "g6-dedicated-2", + "updated": "2018-01-02T03:04:05", "updates": {"day_of_week": 1, "duration": + 4, "frequency": "weekly", "hour_of_day": 6, "pending": [{"deadline": "2018-01-02T03:04:05", + "description": "Platform Updates", "planned_for": "2018-01-02T03:04:05"}]}, + "used_disk_size_gb": 3, "version": "16.8", "platform": "rdbms-default"}, {"allow_list": + ["103.214.63.108/32"], "cluster_size": 3, "created": "2018-01-02T03:04:05", + "encrypted": true, "engine": "postgresql", "hosts": {"primary": "a189690-akamai-prod-3496018-default.g2a.akamaidb.net", + "standby": "replica-a189690-akamai-prod-3496018-default.g2a.akamaidb.net"}, + "id": 189690, "label": "TestPostGres4", "members": {"172.234.136.175": "primary", + "172.234.136.42": "failover", "172.234.136.62": "failover"}, "oldest_restore_time": + "2018-01-02T03:04:05", "port": 14817, "region": "us-iad", "ssl_connection": + true, "status": "active", "total_disk_size_gb": 58, "type": "g6-standard-2", + "updated": "2018-01-02T03:04:05", "updates": {"day_of_week": 1, "duration": + 4, "frequency": "weekly", "hour_of_day": 17, "pending": []}, "used_disk_size_gb": + 3, "version": "16.8", "platform": "rdbms-default"}, {"allow_list": ["192.0.1.0/24", + "203.0.113.1/32"], "cluster_size": 3, "created": "2018-01-02T03:04:05", "encrypted": + true, "engine": "postgresql", "hosts": {"primary": "a278588-akamai-prod-3496018-default.g2a.akamaidb.net", + "standby": "replica-a278588-akamai-prod-3496018-default.g2a.akamaidb.net"}, + "id": 278588, "label": "go-postgres-testing-defhp467g50vl2b", "members": {"172.105.36.121": + "failover", "172.105.36.84": "failover", "172.105.49.128": "primary"}, "oldest_restore_time": + "2018-01-02T03:04:05", "port": 14817, "region": "ap-west", "ssl_connection": + true, "status": "active", "total_disk_size_gb": 9, "type": "g6-nanode-1", "updated": + "2018-01-02T03:04:05", "updates": {"day_of_week": 7, "duration": 4, "frequency": + "weekly", "hour_of_day": 13, "pending": []}, "used_disk_size_gb": 0, "version": + "14.17", "platform": "rdbms-default"}], "page": 1, "pages": 1, "results": 6}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:43:35 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - databases:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/databases/postgresql/instances/278588 + method: DELETE + response: + body: '{}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "2" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:43:54 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - databases:read_write + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" \ No newline at end of file diff --git a/test/integration/fixtures/TestMonitorDashboards_Get.yaml b/test/integration/fixtures/TestMonitorDashboards_Get.yaml new file mode 100644 index 000000000..313911718 --- /dev/null +++ b/test/integration/fixtures/TestMonitorDashboards_Get.yaml @@ -0,0 +1,237 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/dashboards?page=1 + method: GET + response: + body: '{"data": [{"id": 1, "type": "standard", "service_type": "dbaas", "label": + "Resource Usage", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "widgets": [{"metric": "cpu_usage", "unit": "%", "label": "CPU Usage", "color": + "default", "size": 12, "chart_type": "area", "y_label": "cpu_usage", "aggregate_function": + "sum"}, {"metric": "memory_usage", "unit": "%", "label": "Memory Usage", "color": + "default", "size": 6, "chart_type": "area", "y_label": "memory_usage", "aggregate_function": + "sum"}, {"metric": "available_memory", "unit": "GB", "label": "Available Memory", + "color": "default", "size": 6, "chart_type": "area", "y_label": "available_memory", + "aggregate_function": "sum"}, {"metric": "disk_usage", "unit": "%", "label": + "Disk Space Usage", "color": "default", "size": 6, "chart_type": "area", "y_label": + "disk_usage", "aggregate_function": "sum"}, {"metric": "available_disk", "unit": + "GB", "label": "Available Disk Space", "color": "default", "size": 6, "chart_type": + "area", "y_label": "available_disk", "aggregate_function": "sum"}, {"metric": + "read_iops", "unit": "IOPS", "label": "Disk I/O Read", "color": "default", "size": + 6, "chart_type": "area", "y_label": "read_iops", "aggregate_function": "sum"}, + {"metric": "write_iops", "unit": "IOPS", "label": "Disk I/O Write", "color": + "default", "size": 6, "chart_type": "area", "y_label": "write_iops", "aggregate_function": + "sum"}]}], "page": 1, "pages": 1, "results": 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:18:32 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/dashboards/1 + method: GET + response: + body: '{"id": 1, "type": "standard", "service_type": "dbaas", "label": "Resource + Usage", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "widgets": [{"metric": "cpu_usage", "unit": "%", "label": "CPU Usage", "color": + "default", "size": 12, "chart_type": "area", "y_label": "cpu_usage", "aggregate_function": + "sum"}, {"metric": "memory_usage", "unit": "%", "label": "Memory Usage", "color": + "default", "size": 6, "chart_type": "area", "y_label": "memory_usage", "aggregate_function": + "sum"}, {"metric": "available_memory", "unit": "GB", "label": "Available Memory", + "color": "default", "size": 6, "chart_type": "area", "y_label": "available_memory", + "aggregate_function": "sum"}, {"metric": "disk_usage", "unit": "%", "label": + "Disk Space Usage", "color": "default", "size": 6, "chart_type": "area", "y_label": + "disk_usage", "aggregate_function": "sum"}, {"metric": "available_disk", "unit": + "GB", "label": "Available Disk Space", "color": "default", "size": 6, "chart_type": + "area", "y_label": "available_disk", "aggregate_function": "sum"}, {"metric": + "read_iops", "unit": "IOPS", "label": "Disk I/O Read", "color": "default", "size": + 6, "chart_type": "area", "y_label": "read_iops", "aggregate_function": "sum"}, + {"metric": "write_iops", "unit": "IOPS", "label": "Disk I/O Write", "color": + "default", "size": 6, "chart_type": "area", "y_label": "write_iops", "aggregate_function": + "sum"}]}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:18:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/services/dbaas/dashboards?page=1 + method: GET + response: + body: '{"data": [{"id": 1, "type": "standard", "service_type": "dbaas", "label": + "Resource Usage", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", + "widgets": [{"metric": "cpu_usage", "unit": "%", "label": "CPU Usage", "color": + "default", "size": 12, "chart_type": "area", "y_label": "cpu_usage", "aggregate_function": + "sum"}, {"metric": "memory_usage", "unit": "%", "label": "Memory Usage", "color": + "default", "size": 6, "chart_type": "area", "y_label": "memory_usage", "aggregate_function": + "sum"}, {"metric": "available_memory", "unit": "GB", "label": "Available Memory", + "color": "default", "size": 6, "chart_type": "area", "y_label": "available_memory", + "aggregate_function": "sum"}, {"metric": "disk_usage", "unit": "%", "label": + "Disk Space Usage", "color": "default", "size": 6, "chart_type": "area", "y_label": + "disk_usage", "aggregate_function": "sum"}, {"metric": "available_disk", "unit": + "GB", "label": "Available Disk Space", "color": "default", "size": 6, "chart_type": + "area", "y_label": "available_disk", "aggregate_function": "sum"}, {"metric": + "read_iops", "unit": "IOPS", "label": "Disk I/O Read", "color": "default", "size": + 6, "chart_type": "area", "y_label": "read_iops", "aggregate_function": "sum"}, + {"metric": "write_iops", "unit": "IOPS", "label": "Disk I/O Write", "color": + "default", "size": 6, "chart_type": "area", "y_label": "write_iops", "aggregate_function": + "sum"}]}], "page": 1, "pages": 1, "results": 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:18:34 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" \ No newline at end of file diff --git a/test/integration/fixtures/TestMonitorMetricDefinitions_Get.yaml b/test/integration/fixtures/TestMonitorMetricDefinitions_Get.yaml new file mode 100644 index 000000000..1ccc4b236 --- /dev/null +++ b/test/integration/fixtures/TestMonitorMetricDefinitions_Get.yaml @@ -0,0 +1,169 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/services/dbaas/metric-definitions?page=1 + method: GET + response: + body: '{"data": [{"label": "CPU Usage", "metric": "cpu_usage", "unit": "percent", + "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": true, "available_aggregate_functions": + ["sum", "max", "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": + "node_type", "values": ["primary", "secondary"]}]}, {"label": "Disk I/O Read", + "metric": "read_iops", "unit": "iops", "metric_type": "gauge", "scrape_interval": + "60s", "is_alertable": false, "available_aggregate_functions": ["sum", "max", + "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type", + "values": ["primary", "secondary"]}]}, {"label": "Disk I/O Write", "metric": + "write_iops", "unit": "iops", "metric_type": "gauge", "scrape_interval": "60s", + "is_alertable": false, "available_aggregate_functions": ["sum", "max", "avg", + "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type", + "values": ["primary", "secondary"]}]}, {"label": "Memory Usage", "metric": "memory_usage", + "unit": "percent", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": + true, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions": + [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary", + "secondary"]}]}, {"label": "Available Memory", "metric": "available_memory", + "unit": "GB", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": + false, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions": + [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary", + "secondary"]}]}, {"label": "Disk Space Usage", "metric": "disk_usage", "unit": + "percent", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": + true, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions": + [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary", + "secondary"]}]}, {"label": "Available Disk Space", "metric": "available_disk", + "unit": "GB", "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": + false, "available_aggregate_functions": ["sum", "max", "avg", "min"], "dimensions": + [{"label": "Node Type", "dimension_label": "node_type", "values": ["primary", + "secondary"]}]}], "page": 1, "pages": 1, "results": 7}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:19:27 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + X-Filter: + - '{"is_alertable":false}' + url: https://api.linode.com/v4beta/monitor/services/dbaas/metric-definitions?page=1 + method: GET + response: + body: '{"data": [{"label": "Disk I/O Read", "metric": "read_iops", "unit": "iops", + "metric_type": "gauge", "scrape_interval": "60s", "is_alertable": false, "available_aggregate_functions": + ["sum", "max", "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": + "node_type", "values": ["primary", "secondary"]}]}, {"label": "Disk I/O Write", + "metric": "write_iops", "unit": "iops", "metric_type": "gauge", "scrape_interval": + "60s", "is_alertable": false, "available_aggregate_functions": ["sum", "max", + "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type", + "values": ["primary", "secondary"]}]}, {"label": "Available Memory", "metric": + "available_memory", "unit": "GB", "metric_type": "gauge", "scrape_interval": + "60s", "is_alertable": false, "available_aggregate_functions": ["sum", "max", + "avg", "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type", + "values": ["primary", "secondary"]}]}, {"label": "Available Disk Space", "metric": + "available_disk", "unit": "GB", "metric_type": "gauge", "scrape_interval": "60s", + "is_alertable": false, "available_aggregate_functions": ["sum", "max", "avg", + "min"], "dimensions": [{"label": "Node Type", "dimension_label": "node_type", + "values": ["primary", "secondary"]}]}], "page": 1, "pages": 1, "results": 4}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:19:28 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + - Accept-Encoding + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" \ No newline at end of file diff --git a/test/integration/fixtures/TestMonitorServices_Get.yaml b/test/integration/fixtures/TestMonitorServices_Get.yaml new file mode 100644 index 000000000..13e45d21b --- /dev/null +++ b/test/integration/fixtures/TestMonitorServices_Get.yaml @@ -0,0 +1,129 @@ +--- +version: 1 +interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/services?page=1 + method: GET + response: + body: '{"data": [{"service_type": "dbaas", "label": "Databases"}], "page": 1, + "pages": 1, "results": 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "96" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:17:22 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/services/dbaas?page=1 + method: GET + response: + body: '{"data": [{"service_type": "dbaas", "label": "Databases"}], "page": 1, + "pages": 1, "results": 1}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "96" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Mon, 07 Apr 2025 10:17:22 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - monitor:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" \ No newline at end of file diff --git a/test/integration/fixtures/TestServiceToken_POST.yaml b/test/integration/fixtures/TestServiceToken_POST.yaml new file mode 100644 index 000000000..28e6c9ecd --- /dev/null +++ b/test/integration/fixtures/TestServiceToken_POST.yaml @@ -0,0 +1,64 @@ +--- +version: 1 +interactions: +- request: + body: '{"entity_ids":[138534,187468,188020,188680,189690,278588]}' + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - linodego/dev https://github.com/linode/linodego + url: https://api.linode.com/v4beta/monitor/services/dbaas/token + method: POST + response: + body: '{"token": "test_token"}' + headers: + Access-Control-Allow-Credentials: + - "true" + Access-Control-Allow-Headers: + - Authorization, Origin, X-Requested-With, Content-Type, Accept, X-Filter + Access-Control-Allow-Methods: + - HEAD, GET, OPTIONS, POST, PUT, DELETE + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Status + Akamai-Internal-Account: + - '*' + Cache-Control: + - max-age=0, no-cache, no-store + Connection: + - keep-alive + Content-Length: + - "663" + Content-Security-Policy: + - default-src 'none' + Content-Type: + - application/json + Expires: + - Wed, 16 Apr 2025 07:43:36 GMT + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000 + Vary: + - Authorization, X-Filter + X-Accepted-Oauth-Scopes: + - databases:read_only + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - DENY + - DENY + X-Oauth-Scopes: + - '*' + X-Ratelimit-Limit: + - "1600" + X-Xss-Protection: + - 1; mode=block + status: 200 OK + code: 200 + duration: "" \ No newline at end of file diff --git a/test/integration/monitor_dashboards_test.go b/test/integration/monitor_dashboards_test.go new file mode 100644 index 000000000..b70090773 --- /dev/null +++ b/test/integration/monitor_dashboards_test.go @@ -0,0 +1,71 @@ +package integration + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/require" +) + +func TestMonitorDashboards_Get_smoke(t *testing.T) { + client, teardown := createTestClient(t, "fixtures/TestMonitorDashboards_Get") + defer teardown() + + // Get list of all ACLP Dashboards + monitorDashboardsClientList, listErr := client.ListMonitorDashboards(context.Background(), nil) + if listErr != nil { + t.Errorf("Error listing monitor dashboards:%s", listErr) + } + + // validating the details of the Dashboards + for _, dashboards := range monitorDashboardsClientList { + validateDashboards(t, dashboards) + } + + // Get an ACLP Dashboard by dashboardID + monitorDashhboardClient, getErr := client.GetMonitorDashboard(context.Background(), 1) + if getErr != nil { + t.Errorf("Error getting dashboard by ID :%s", getErr) + } + + found := false + for _, element := range monitorDashboardsClientList { + if element.ServiceType == monitorDashhboardClient.ServiceType { + found = true + } + } + + if !found { + t.Errorf("Monitor dashboard not found in list.") + } + + // List ACLP Dashboards by serviceType + monitorDashhboardClientST, listErr := client.ListMonitorDashboardsByServiceType(context.Background(), "dbaas", nil) + if listErr != nil { + t.Errorf("Error listing monitor dashboards:%s", listErr) + } + + found_st := false + for _, element := range monitorDashhboardClientST { + if element.ServiceType == monitorDashhboardClient.ServiceType { + found_st = true + } + } + + if !found_st { + t.Errorf("Monitor dashboard not found in list.") + } +} + +func validateDashboards( + t *testing.T, + dashboards linodego.MonitorDashboard, +) { + require.NotEmpty(t, dashboards.ID) + require.NotEmpty(t, dashboards.ServiceType) + require.NotEmpty(t, dashboards.Label) + require.NotEmpty(t, dashboards.Created) + require.NotEmpty(t, dashboards.Updated) + require.NotEmpty(t, dashboards.Widgets) +} diff --git a/test/integration/monitor_metrics_definitions_test.go b/test/integration/monitor_metrics_definitions_test.go new file mode 100644 index 000000000..e517789b5 --- /dev/null +++ b/test/integration/monitor_metrics_definitions_test.go @@ -0,0 +1,64 @@ +package integration + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/require" +) + +func TestMonitorMetricDefinitions_Get_smoke(t *testing.T) { + client, teardown := createTestClient(t, "fixtures/TestMonitorMetricDefinitions_Get") + defer teardown() + + // Get the metric-definitions by serviceType + monitorMetricDefinitionsClientList, listErr := client.ListMonitorMetricsDefinitionByServiceType(context.Background(), "dbaas", nil) + if listErr != nil { + t.Errorf("Error listing monitor metrics:%s", listErr) + } + + for _, metrics_def := range monitorMetricDefinitionsClientList { + validateMetricDefinitions(t, metrics_def) + } + + // Get the metric-definitions by serviceType for the filter "is_alertable":false + monitorMetricDefinitionsClientListFilter, listErr := client.ListMonitorMetricsDefinitionByServiceType(context.Background(), "dbaas", linodego.NewListOptions(0, "{\"is_alertable\":false}")) + if listErr != nil { + t.Errorf("Error listing monitor metrics:%s", listErr) + } + + for _, metrics_def := range monitorMetricDefinitionsClientListFilter { + validateMetricDefinitionsFilters(t, metrics_def) + } +} + +func validateMetricDefinitions( + t *testing.T, + metrics_def linodego.MonitorMetricsDefinition, +) { + require.NotEmpty(t, metrics_def.AvailableAggregateFunctions) + require.NotEmpty(t, metrics_def.Dimensions) + require.NotEmpty(t, metrics_def.Label) + require.NotEmpty(t, metrics_def.Metric) + require.NotEmpty(t, metrics_def.MetricType) + require.NotEmpty(t, metrics_def.ScrapeInterval) + require.NotEmpty(t, metrics_def.Unit) + + require.True(t, metrics_def.IsAlertable || !metrics_def.IsAlertable, "IsAlertable should be true or false") +} + +// Validation function for filter "is_alertable":false +func validateMetricDefinitionsFilters( + t *testing.T, + metrics_def linodego.MonitorMetricsDefinition, +) { + require.NotEmpty(t, metrics_def.AvailableAggregateFunctions) + require.NotEmpty(t, metrics_def.Dimensions) + require.NotEmpty(t, metrics_def.Label) + require.NotEmpty(t, metrics_def.Metric) + require.NotEmpty(t, metrics_def.MetricType) + require.NotEmpty(t, metrics_def.ScrapeInterval) + require.NotEmpty(t, metrics_def.Unit) + require.False(t, metrics_def.IsAlertable, "IsAlertable should be false for the given filter") +} diff --git a/test/integration/monitor_services_test.go b/test/integration/monitor_services_test.go new file mode 100644 index 000000000..26409eb6b --- /dev/null +++ b/test/integration/monitor_services_test.go @@ -0,0 +1,50 @@ +package integration + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/require" +) + +func TestMonitorServices_Get_smoke(t *testing.T) { + client, teardown := createTestClient(t, "fixtures/TestMonitorServices_Get") + defer teardown() + + // List the all the regsitered ACLP services + monitorServicesClientList, listErr := client.ListMonitorServices(context.Background(), nil) + if listErr != nil { + t.Errorf("Error listing monitor services:%s", listErr) + } + + // found := false + for _, services := range monitorServicesClientList { + validateServiceTypes(t, services) + } + + // Get the details of the registered ACLP services based on serviceType + monitorServicesClient, getErr := client.ListMonitorServiceByType(context.Background(), "dbaas", nil) + if getErr != nil { + t.Errorf("Error getting monitor services : %s", getErr) + } + + found := false + for _, element := range monitorServicesClient { + if element.ServiceType == "dbaas" { + found = true + } + } + + if !found { + t.Errorf("Monitor service not found in list.") + } +} + +func validateServiceTypes( + t *testing.T, + serviceType linodego.MonitorService, +) { + require.NotEmpty(t, serviceType.ServiceType) + require.NotEmpty(t, serviceType.Label) +} diff --git a/test/integration/monitor_services_token_creation_test.go b/test/integration/monitor_services_token_creation_test.go new file mode 100644 index 000000000..c7acfb87f --- /dev/null +++ b/test/integration/monitor_services_token_creation_test.go @@ -0,0 +1,54 @@ +package integration + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/require" +) + +func TestMonitorServicesTokenCreation_Get_smoke(t *testing.T) { + client, _, teardown, err := setupPostgresDatabase(t, nil, "fixtures/TestDatabaseACLP_List") + if err != nil { + t.Error(err) + } + defer teardown() + + dbs, err := client.ListDatabases(context.Background(), nil) + if len(dbs) == 0 { + t.Errorf("Expected a list of Databases, but got none: %v", err) + } + if err != nil { + t.Errorf("Error listing Databases, expected struct, got error %v", err) + } + + var entityIDs []int + for _, db := range dbs { + entityIDs = append(entityIDs, db.ID) + } + + client, teardown = createTestClient(t, "fixtures/TestServiceToken_POST") + defer teardown() + + // Create a JWE token for the given entity IDs + createOpts := linodego.MonitorTokenCreateOptions{ + EntityIDs: entityIDs, + } + + // Use the same context with timeout for the token creation + token, createErr := client.CreateMonitorServiceTokenForServiceType(context.Background(), "dbaas", createOpts) + if createErr != nil { + t.Errorf("Error creating token : %s", createErr) + } + + // Validate the token + validateToken(t, *token) +} + +func validateToken( + t *testing.T, + token linodego.MonitorServiceToken, +) { + require.NotEmpty(t, token.Token) +} diff --git a/test/unit/fixtures/monitor_dashboard_by_id.json b/test/unit/fixtures/monitor_dashboard_by_id.json new file mode 100644 index 000000000..2e30fe135 --- /dev/null +++ b/test/unit/fixtures/monitor_dashboard_by_id.json @@ -0,0 +1,80 @@ +{ + "id": 1, + "type": "standard", + "service_type": "dbaas", + "label": "Resource Usage", + "created": "2024-11-05T01:13:34", + "updated": "2024-11-05T01:13:34", + "widgets": [ + { + "metric": "cpu_usage", + "unit": "%", + "label": "CPU Usage", + "color": "default", + "size": 12, + "chart_type": "area", + "y_label": "cpu_usage", + "aggregate_function": "sum" + }, + { + "metric": "memory_usage", + "unit": "%", + "label": "Memory Usage", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "memory_usage", + "aggregate_function": "sum" + }, + { + "metric": "available_memory", + "unit": "GB", + "label": "Available Memory", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "available_memory", + "aggregate_function": "sum" + }, + { + "metric": "disk_usage", + "unit": "%", + "label": "Disk Space Usage", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "disk_usage", + "aggregate_function": "sum" + }, + { + "metric": "available_disk", + "unit": "GB", + "label": "Available Disk Space", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "available_disk", + "aggregate_function": "sum" + }, + { + "metric": "read_iops", + "unit": "IOPS", + "label": "Disk I/O Read", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "read_iops", + "aggregate_function": "sum" + }, + { + "metric": "write_iops", + "unit": "IOPS", + "label": "Disk I/O Write", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "write_iops", + "aggregate_function": "sum" + } + ] + } \ No newline at end of file diff --git a/test/unit/fixtures/monitor_dashboard_by_service_type.json b/test/unit/fixtures/monitor_dashboard_by_service_type.json new file mode 100644 index 000000000..f7912fe22 --- /dev/null +++ b/test/unit/fixtures/monitor_dashboard_by_service_type.json @@ -0,0 +1,87 @@ +{ + "data": [ + { + "id": 1, + "type": "standard", + "service_type": "dbaas", + "label": "Resource Usage", + "created": "2024-11-05T01:13:34", + "updated": "2024-11-05T01:13:34", + "widgets": [ + { + "metric": "cpu_usage", + "unit": "%", + "label": "CPU Usage", + "color": "default", + "size": 12, + "chart_type": "area", + "y_label": "cpu_usage", + "aggregate_function": "sum" + }, + { + "metric": "memory_usage", + "unit": "%", + "label": "Memory Usage", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "memory_usage", + "aggregate_function": "sum" + }, + { + "metric": "available_memory", + "unit": "GB", + "label": "Available Memory", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "available_memory", + "aggregate_function": "sum" + }, + { + "metric": "disk_usage", + "unit": "%", + "label": "Disk Space Usage", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "disk_usage", + "aggregate_function": "sum" + }, + { + "metric": "available_disk", + "unit": "GB", + "label": "Available Disk Space", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "available_disk", + "aggregate_function": "sum" + }, + { + "metric": "read_iops", + "unit": "IOPS", + "label": "Disk I/O Read", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "read_iops", + "aggregate_function": "sum" + }, + { + "metric": "write_iops", + "unit": "IOPS", + "label": "Disk I/O Write", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "write_iops", + "aggregate_function": "sum" + } + ] + } + ], + "page": 1, + "pages": 1, + "results": 1 +} \ No newline at end of file diff --git a/test/unit/fixtures/monitor_dashboards.json b/test/unit/fixtures/monitor_dashboards.json new file mode 100644 index 000000000..f7912fe22 --- /dev/null +++ b/test/unit/fixtures/monitor_dashboards.json @@ -0,0 +1,87 @@ +{ + "data": [ + { + "id": 1, + "type": "standard", + "service_type": "dbaas", + "label": "Resource Usage", + "created": "2024-11-05T01:13:34", + "updated": "2024-11-05T01:13:34", + "widgets": [ + { + "metric": "cpu_usage", + "unit": "%", + "label": "CPU Usage", + "color": "default", + "size": 12, + "chart_type": "area", + "y_label": "cpu_usage", + "aggregate_function": "sum" + }, + { + "metric": "memory_usage", + "unit": "%", + "label": "Memory Usage", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "memory_usage", + "aggregate_function": "sum" + }, + { + "metric": "available_memory", + "unit": "GB", + "label": "Available Memory", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "available_memory", + "aggregate_function": "sum" + }, + { + "metric": "disk_usage", + "unit": "%", + "label": "Disk Space Usage", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "disk_usage", + "aggregate_function": "sum" + }, + { + "metric": "available_disk", + "unit": "GB", + "label": "Available Disk Space", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "available_disk", + "aggregate_function": "sum" + }, + { + "metric": "read_iops", + "unit": "IOPS", + "label": "Disk I/O Read", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "read_iops", + "aggregate_function": "sum" + }, + { + "metric": "write_iops", + "unit": "IOPS", + "label": "Disk I/O Write", + "color": "default", + "size": 6, + "chart_type": "area", + "y_label": "write_iops", + "aggregate_function": "sum" + } + ] + } + ], + "page": 1, + "pages": 1, + "results": 1 +} \ No newline at end of file diff --git a/test/unit/fixtures/monitor_service_metrics.json b/test/unit/fixtures/monitor_service_metrics.json new file mode 100644 index 000000000..3eab11e30 --- /dev/null +++ b/test/unit/fixtures/monitor_service_metrics.json @@ -0,0 +1,175 @@ +{ + "data": [ + { + "label": "CPU Usage", + "metric": "cpu_usage", + "unit": "percent", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": true, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + }, + { + "label": "Disk I/O Read", + "metric": "read_iops", + "unit": "iops", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": false, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + }, + { + "label": "Disk I/O Write", + "metric": "write_iops", + "unit": "iops", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": false, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + }, + { + "label": "Memory Usage", + "metric": "memory_usage", + "unit": "percent", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": true, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + }, + { + "label": "Available Memory", + "metric": "available_memory", + "unit": "GB", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": false, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + }, + { + "label": "Disk Space Usage", + "metric": "disk_usage", + "unit": "percent", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": true, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + }, + { + "label": "Available Disk Space", + "metric": "available_disk", + "unit": "GB", + "metric_type": "gauge", + "scrape_interval": "60s", + "is_alertable": false, + "available_aggregate_functions": [ + "max", + "sum", + "min", + "avg" + ], + "dimensions": [ + { + "label": "Node Type", + "dimension_label": "node_type", + "values": [ + "primary", + "secondary" + ] + } + ] + } + ], + "page": 1, + "pages": 1, + "results": 7 +} \ No newline at end of file diff --git a/test/unit/fixtures/monitor_service_token_create.json b/test/unit/fixtures/monitor_service_token_create.json new file mode 100644 index 000000000..0d1a10d63 --- /dev/null +++ b/test/unit/fixtures/monitor_service_token_create.json @@ -0,0 +1,3 @@ +{ + "token": "somemonitorservicetoken" + } \ No newline at end of file diff --git a/test/unit/fixtures/monitor_services.json b/test/unit/fixtures/monitor_services.json new file mode 100644 index 000000000..7a568866c --- /dev/null +++ b/test/unit/fixtures/monitor_services.json @@ -0,0 +1,11 @@ +{ + "data": [ + { + "label": "Databases", + "service_type": "dbaas" + } + ], + "page": 1, + "pages": 1, + "results": 1 + } \ No newline at end of file diff --git a/test/unit/monitor_dashboards_test.go b/test/unit/monitor_dashboards_test.go new file mode 100644 index 000000000..6ab6195e8 --- /dev/null +++ b/test/unit/monitor_dashboards_test.go @@ -0,0 +1,73 @@ +package unit + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/assert" +) + +func TestListMonitorDashboards(t *testing.T) { + fixtureData, err := fixtures.GetFixture("monitor_dashboards") + assert.NoError(t, err, "Expected no error when getting fixture") + + // fmt.Printf("[DEBUG] fixtureData = %+v\n", fixtureData) + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + base.MockGet("monitor/dashboards", fixtureData) + + clients, err := base.Client.ListMonitorDashboards(context.Background(), &linodego.ListOptions{}) + // fmt.Printf("[DEBUG] CLIENT = %+v\n", clients) + assert.NoError(t, err, "Expected no error when listing monitor dashboards") + assert.NotEmpty(t, clients, "Expected non-empty monitor dashboard list") + + assert.Equal(t, linodego.DashboardType("standard"), clients[0].Type, "Expected dashboard type to match") + assert.Equal(t, linodego.ServiceType("dbaas"), clients[0].ServiceType, "Expected service_type to match") +} + +func TestListMonitorDashboardsByID(t *testing.T) { + // Load the mock fixture for monitor dashboard + fixtureData, err := fixtures.GetFixture("monitor_dashboard_by_id") + assert.NoError(t, err, "Expected no error when getting fixture") + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + // Mock the GET request for the monitor dashboard by ID (1) + base.MockGet("monitor/dashboards/1", fixtureData) + + // Call the GetMonitorDashboard method + clients, err := base.Client.GetMonitorDashboard(context.Background(), 1) + assert.NoError(t, err, "Expected no error when listing monitor dashboard by type") + assert.NotEmpty(t, clients, "Expected non-empty monitor dashboard list") + + assert.Equal(t, linodego.DashboardType("standard"), clients.Type, "Expected dashboard type to match") + assert.Equal(t, linodego.ServiceType("dbaas"), clients.ServiceType, "Expected service_type to match") +} + +// monitor_dashboard_by_service_type +func TestListMonitorDashboardsByServiceType(t *testing.T) { + // Load the mock fixture for monitor dashboard + fixtureData, err := fixtures.GetFixture("monitor_dashboard_by_service_type") + assert.NoError(t, err, "Expected no error when getting fixture") + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + // Mock the GET request for the monitor dashboard by type (dbaas) + base.MockGet("monitor/services/dbaas/dashboards", fixtureData) + + // Call the ListMonitorDashcdboardsByServiceType method + clients, err := base.Client.ListMonitorDashboardsByServiceType(context.Background(), "dbaas", nil) + assert.NoError(t, err, "Expected no error when listing monitor dashboard by type") + assert.NotEmpty(t, clients, "Expected non-empty monitor dashboard list") + + assert.Equal(t, linodego.DashboardType("standard"), clients[0].Type, "Expected dashboard type to match") + assert.Equal(t, linodego.ServiceType("dbaas"), clients[0].ServiceType, "Expected service_type to match") +} diff --git a/test/unit/monitor_services_metrics_definition_test.go b/test/unit/monitor_services_metrics_definition_test.go new file mode 100644 index 000000000..43189151a --- /dev/null +++ b/test/unit/monitor_services_metrics_definition_test.go @@ -0,0 +1,30 @@ +package unit + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/assert" +) + +func TestListMonitorMetricDefinitionsByType(t *testing.T) { + // Load the mock fixture for monitor_service_metrics + fixtureData, err := fixtures.GetFixture("monitor_service_metrics") + assert.NoError(t, err, "Expected no error when getting fixture") + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + // Mock the GET request for the monitor metric-definitions by type (dbaas) + base.MockGet("monitor/services/dbaas/metric-definitions", fixtureData) + + // Call the ListMonitorMetricsDefinitionByServiceType method + clients, err := base.Client.ListMonitorMetricsDefinitionByServiceType(context.Background(), "dbaas", &linodego.ListOptions{}) + assert.NoError(t, err, "Expected no error when listing monitor metric-definitions by type") + assert.NotEmpty(t, clients, "Expected non-empty monitor metric-definitions list") + + assert.Equal(t, "cpu_usage", clients[0].Metric, "Expected Metric to match") + assert.Equal(t, linodego.MetricType("gauge"), clients[0].MetricType, "Expected MetricType to match") +} diff --git a/test/unit/monitor_services_test.go b/test/unit/monitor_services_test.go new file mode 100644 index 000000000..474c5445a --- /dev/null +++ b/test/unit/monitor_services_test.go @@ -0,0 +1,51 @@ +package unit + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/assert" +) + +func TestListMonitorServices(t *testing.T) { + // Load the mock fixture for monitor services + fixtureData, err := fixtures.GetFixture("monitor_services") + assert.NoError(t, err, "Expected no error when getting fixture") + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + // Mock the GET request for the monitor services endpoint + base.MockGet("monitor/services", fixtureData) + + // Call the ListMonitorServices method + clients, err := base.Client.ListMonitorServices(context.Background(), &linodego.ListOptions{}) + assert.NoError(t, err, "Expected no error when listing monitor services") + assert.NotEmpty(t, clients, "Expected non-empty monitor services list") + + assert.Equal(t, "Databases", clients[0].Label, "Expected services label to match") + assert.Equal(t, "dbaas", clients[0].ServiceType, "Expected service_type to match") +} + +func TestListMonitorServicesByType(t *testing.T) { + // Load the mock fixture for monitor services + fixtureData, err := fixtures.GetFixture("monitor_services") + assert.NoError(t, err, "Expected no error when getting fixture") + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + // Mock the GET request for the monitor services by type (dbaas) + base.MockGet("monitor/services/dbaas", fixtureData) + + // Call the ListMonitorServiceByType method + clients, err := base.Client.ListMonitorServiceByType(context.Background(), "dbaas", &linodego.ListOptions{}) + assert.NoError(t, err, "Expected no error when listing monitor services by type") + assert.NotEmpty(t, clients, "Expected non-empty monitor services list") + + assert.Equal(t, "Databases", clients[0].Label, "Expected services label to match") + assert.Equal(t, "dbaas", clients[0].ServiceType, "Expected service_type to match") +} diff --git a/test/unit/monitor_services_token_test.go b/test/unit/monitor_services_token_test.go new file mode 100644 index 000000000..04df30ccc --- /dev/null +++ b/test/unit/monitor_services_token_test.go @@ -0,0 +1,30 @@ +package unit + +import ( + "context" + "testing" + + "github.com/linode/linodego" + "github.com/stretchr/testify/assert" +) + +func TestCreateMonitorServicesToken(t *testing.T) { + // Load the mock fixture for monitor services + fixtureData, err := fixtures.GetFixture("monitor_service_token_create") + assert.NoError(t, err) + + var base ClientBaseCase + base.SetUp(t) + defer base.TearDown(t) + + base.MockPost("monitor/services/dbaas/token", fixtureData) + + // Create request data for POST request + opts := linodego.MonitorTokenCreateOptions{ + EntityIDs: []int{12345, 54321}, + } + + token, err := base.Client.CreateMonitorServiceTokenForServiceType(context.Background(), "dbaas", opts) + assert.NoError(t, err) + assert.NotNil(t, token) +}