diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index ce0a0f2f0e75..8408fd23f457 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4805,6 +4805,7 @@ components: - incident_management_monthly_active_users_usage - indexed_spans_usage - infra_host_usage + - infra_host_basic_usage - ingested_logs_bytes_usage - ingested_spans_bytes_usage - invocations_usage @@ -4893,6 +4894,7 @@ components: - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE - INDEXED_SPANS_USAGE - INFRA_HOST_USAGE + - INFRA_HOST_BASIC_USAGE - INGESTED_LOGS_BYTES_USAGE - INGESTED_SPANS_BYTES_USAGE - INVOCATIONS_USAGE @@ -9391,6 +9393,8 @@ components: - incident_management_monthly_active_users_percentage - infra_host_usage - infra_host_percentage + - infra_host_basic_usage + - infra_host_basic_percentage - invocations_usage - invocations_percentage - lambda_traced_invocations_usage @@ -9558,6 +9562,8 @@ components: - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE - INFRA_HOST_USAGE - INFRA_HOST_PERCENTAGE + - INFRA_HOST_BASIC_USAGE + - INFRA_HOST_BASIC_PERCENTAGE - INVOCATIONS_USAGE - INVOCATIONS_PERCENTAGE - LAMBDA_TRACED_INVOCATIONS_USAGE @@ -9955,6 +9961,14 @@ components: description: The total APM Indexed Spans usage by tag(s). format: double type: number + infra_host_basic_percentage: + description: The percentage of infrastructure host Basic tier usage by tag(s). + format: double + type: number + infra_host_basic_usage: + description: The infrastructure host Basic tier usage by tag(s). + format: double + type: number infra_host_percentage: description: The percentage of infrastructure host usage by tag(s). format: double @@ -22234,6 +22248,18 @@ components: description: Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current date for the given org. format: int64 type: integer + eph_infra_host_basic_infra_basic_agent_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for all organizations. + format: int64 + type: integer + eph_infra_host_basic_infra_basic_vsphere_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier on vSphere over all hours in the current date for all organizations. + format: int64 + type: integer + eph_infra_host_basic_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier over all hours in the current date for all organizations. + format: int64 + type: integer eph_infra_host_ent_sum: description: Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current date for the given org. format: int64 @@ -22382,6 +22408,18 @@ components: description: Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current date for all organizations. format: int64 type: integer + infra_host_basic_infra_basic_agent_top99p: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for all organizations. + format: int64 + type: integer + infra_host_basic_infra_basic_vsphere_top99p: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier on vSphere over all hours in the current date for all organizations. + format: int64 + type: integer + infra_host_basic_top99p: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier over all hours in the current date for all organizations. + format: int64 + type: integer infra_host_top99p: description: Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. format: int64 @@ -23183,6 +23221,18 @@ components: description: Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current date for the given org. format: int64 type: integer + eph_infra_host_basic_infra_basic_agent_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for the given org. + format: int64 + type: integer + eph_infra_host_basic_infra_basic_vsphere_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier on vSphere over all hours in the current date for the given org. + format: int64 + type: integer + eph_infra_host_basic_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier over all hours in the current date for the given org. + format: int64 + type: integer eph_infra_host_ent_sum: description: Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current date for the given org. format: int64 @@ -23335,6 +23385,18 @@ components: description: Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current date for the given org. format: int64 type: integer + infra_host_basic_infra_basic_agent_top99p: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for the given org. + format: int64 + type: integer + infra_host_basic_infra_basic_vsphere_top99p: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier on vSphere over all hours in the current date for the given org. + format: int64 + type: integer + infra_host_basic_top99p: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier over all hours in the current date for the given org. + format: int64 + type: integer infra_host_top99p: description: Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. format: int64 @@ -24142,6 +24204,18 @@ components: description: Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current month for all organizations. format: int64 type: integer + eph_infra_host_basic_agg_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier over all hours in the current month for all organizations. + format: int64 + type: integer + eph_infra_host_basic_infra_basic_agent_agg_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current month for all organizations. + format: int64 + type: integer + eph_infra_host_basic_infra_basic_vsphere_agg_sum: + description: Shows the sum of all ephemeral infrastructure hosts for Basic tier on vSphere over all hours in the current month for all organizations. + format: int64 + type: integer eph_infra_host_ent_agg_sum: description: Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current month for all organizations. format: int64 @@ -24291,6 +24365,18 @@ components: description: Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current month for all organizations. format: int64 type: integer + infra_host_basic_infra_basic_agent_top99p_sum: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current month for all organizations. + format: int64 + type: integer + infra_host_basic_infra_basic_vsphere_top99p_sum: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier on vSphere over all hours in the current month for all organizations. + format: int64 + type: integer + infra_host_basic_top99p_sum: + description: Shows the 99th percentile of all distinct infrastructure hosts for Basic tier over all hours in the current month for all organizations. + format: int64 + type: integer infra_host_top99p_sum: description: Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current month for all organizations. format: int64 diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 478df242ef8c..4c46f3c596f9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -71565,6 +71565,416 @@ components: $ref: "#/components/schemas/SyntheticsApiMultistepSubtestData" type: array type: object + SyntheticsDowntimeData: + description: A Synthetics downtime object. + properties: + attributes: + $ref: "#/components/schemas/SyntheticsDowntimeDataAttributesResponse" + id: + description: The unique identifier of the downtime. + example: "00000000-0000-0000-0000-000000000001" + type: string + type: + $ref: "#/components/schemas/SyntheticsDowntimeResourceType" + required: + - id + - type + - attributes + type: object + SyntheticsDowntimeDataAttributesRequest: + description: Attributes for creating or updating a Synthetics downtime. + properties: + description: + description: An optional description of the downtime. + example: Scheduled weekly maintenance window. + type: string + isEnabled: + description: Whether the downtime is enabled. + example: true + type: boolean + name: + description: The name of the downtime. + example: Weekly maintenance + type: string + tags: + $ref: "#/components/schemas/SyntheticsDowntimeTags" + testIds: + $ref: "#/components/schemas/SyntheticsDowntimeTestIds" + timeSlots: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotRequests" + required: + - name + - isEnabled + - timeSlots + - testIds + type: object + SyntheticsDowntimeDataAttributesResponse: + description: Attributes of a Synthetics downtime response object. + properties: + createdAt: + description: The timestamp when the downtime was created. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string + createdBy: + description: The UUID of the user who created the downtime. + example: "00000000-0000-0000-0000-000000000003" + type: string + createdByName: + description: The display name of the user who created the downtime. + example: Jane Doe + type: string + description: + description: The description of the downtime. + example: Scheduled weekly maintenance window. + type: string + isEnabled: + description: Whether the downtime is enabled. + example: true + type: boolean + name: + description: The name of the downtime. + example: Weekly maintenance + type: string + tags: + $ref: "#/components/schemas/SyntheticsDowntimeTags" + testIds: + $ref: "#/components/schemas/SyntheticsDowntimeTestIds" + timeSlots: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotResponses" + updatedAt: + description: The timestamp when the downtime was last updated. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string + updatedBy: + description: The UUID of the user who last updated the downtime. + example: "00000000-0000-0000-0000-000000000003" + type: string + updatedByName: + description: The display name of the user who last updated the downtime. + example: Jane Doe + type: string + required: + - name + - description + - isEnabled + - createdBy + - createdByName + - createdAt + - updatedBy + - updatedByName + - updatedAt + - timeSlots + - testIds + - tags + type: object + SyntheticsDowntimeDataList: + description: List of Synthetics downtime objects. + example: + - attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + items: + $ref: "#/components/schemas/SyntheticsDowntimeData" + type: array + SyntheticsDowntimeDataRequest: + description: The data object for a Synthetics downtime create or update request. + example: + attributes: + isEnabled: true + name: Weekly maintenance + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + type: downtime + properties: + attributes: + $ref: "#/components/schemas/SyntheticsDowntimeDataAttributesRequest" + type: + $ref: "#/components/schemas/SyntheticsDowntimeResourceType" + required: + - type + - attributes + type: object + SyntheticsDowntimeFrequency: + description: The recurrence frequency of a Synthetics downtime time slot. + enum: + - DAILY + - WEEKLY + - MONTHLY + - YEARLY + example: WEEKLY + type: string + x-enum-varnames: + - DAILY + - WEEKLY + - MONTHLY + - YEARLY + SyntheticsDowntimeRequest: + description: Request body for creating or updating a Synthetics downtime. + properties: + data: + $ref: "#/components/schemas/SyntheticsDowntimeDataRequest" + required: + - data + type: object + SyntheticsDowntimeResourceType: + description: The resource type for a Synthetics downtime. + enum: + - downtime + example: downtime + type: string + x-enum-varnames: + - DOWNTIME + SyntheticsDowntimeResponse: + description: Response containing a single Synthetics downtime. + properties: + data: + $ref: "#/components/schemas/SyntheticsDowntimeData" + required: + - data + type: object + SyntheticsDowntimeTags: + description: List of tags associated with a Synthetics downtime. + example: + - "team:backend" + - "env:prod" + items: + description: A tag. + type: string + type: array + SyntheticsDowntimeTestIds: + description: List of Synthetics test public IDs associated with a downtime. + example: + - abc-def-123 + - xyz-uvw-456 + items: + description: A Synthetics test public ID. + type: string + type: array + SyntheticsDowntimeTimeSlotDate: + description: A specific date and time used to define the start or end of a Synthetics downtime time slot. + properties: + day: + description: The day component of the date (1-31). + example: 15 + format: int64 + type: integer + hour: + description: The hour component of the time (0-23). + example: 10 + format: int64 + type: integer + minute: + description: The minute component of the time (0-59). + example: 30 + format: int64 + type: integer + month: + description: The month component of the date (1-12). + example: 1 + format: int64 + type: integer + year: + description: The year component of the date. + example: 2024 + format: int64 + type: integer + required: + - year + - month + - day + - hour + - minute + type: object + SyntheticsDowntimeTimeSlotRecurrenceRequest: + description: Recurrence settings for a Synthetics downtime time slot. + properties: + end: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotDate" + frequency: + $ref: "#/components/schemas/SyntheticsDowntimeFrequency" + interval: + description: The interval between recurrences, relative to the frequency. + example: 1 + format: int64 + type: integer + weekdays: + $ref: "#/components/schemas/SyntheticsDowntimeWeekdays" + required: + - frequency + type: object + SyntheticsDowntimeTimeSlotRecurrenceResponse: + description: Recurrence settings returned in a Synthetics downtime time slot response. + properties: + frequency: + $ref: "#/components/schemas/SyntheticsDowntimeFrequency" + interval: + description: The interval between recurrences, relative to the frequency. + example: 1 + format: int64 + type: integer + until: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotDate" + weekdays: + $ref: "#/components/schemas/SyntheticsDowntimeWeekdays" + required: + - frequency + - interval + - weekdays + type: object + SyntheticsDowntimeTimeSlotRequest: + description: A time slot for a Synthetics downtime create or update request. + properties: + duration: + description: The duration of the time slot in seconds, between 60 and 604800. + example: 3600 + format: int64 + type: integer + name: + description: An optional label for the time slot. + example: Weekly maintenance window + type: string + recurrence: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotRecurrenceRequest" + start: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotDate" + timezone: + description: The IANA timezone name for the time slot. + example: Europe/Paris + type: string + required: + - start + - timezone + - duration + type: object + SyntheticsDowntimeTimeSlotRequests: + description: List of time slots for a Synthetics downtime create or update request. + example: + - duration: 3600 + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + items: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotRequest" + type: array + SyntheticsDowntimeTimeSlotResponse: + description: A time slot returned in a Synthetics downtime response. + properties: + duration: + description: The duration of the time slot in seconds. + example: 3600 + format: int64 + type: integer + id: + description: The unique identifier of the time slot. + example: "00000000-0000-0000-0000-000000000002" + type: string + name: + description: The label for the time slot. + example: Weekly maintenance window + type: string + recurrence: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotRecurrenceResponse" + start: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotDate" + timezone: + description: The IANA timezone name for the time slot. + example: Europe/Paris + type: string + required: + - id + - start + - timezone + - duration + type: object + SyntheticsDowntimeTimeSlotResponses: + description: List of time slots in a Synthetics downtime response. + example: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + items: + $ref: "#/components/schemas/SyntheticsDowntimeTimeSlotResponse" + type: array + SyntheticsDowntimeWeekday: + description: A day of the week for a Synthetics downtime recurrence. + enum: + - MO + - TU + - WE + - TH + - FR + - SA + - SU + example: MO + type: string + x-enum-varnames: + - MONDAY + - TUESDAY + - WEDNESDAY + - THURSDAY + - FRIDAY + - SATURDAY + - SUNDAY + SyntheticsDowntimeWeekdays: + description: Days of the week for a Synthetics downtime recurrence schedule. + example: + - MO + - WE + - FR + items: + $ref: "#/components/schemas/SyntheticsDowntimeWeekday" + type: array + SyntheticsDowntimesResponse: + description: Response containing a list of Synthetics downtimes. + properties: + data: + $ref: "#/components/schemas/SyntheticsDowntimeDataList" + required: + - data + type: object SyntheticsFastTestResult: description: |- Fast test result response. Returns `null` if the result is not yet available @@ -127129,6 +127539,545 @@ paths: operator: OR permissions: - synthetics_read + /api/v2/synthetics/downtimes: + get: + description: Get a list of all Synthetics downtimes for your organization. + operationId: ListSyntheticsDowntimes + parameters: + - description: Comma-separated list of Synthetics test public IDs to filter downtimes by. + in: query + name: filter[test_ids] + required: false + schema: + example: abc-def-123,xyz-uvw-456 + type: string + - description: If set to `true`, return only downtimes that are currently active. + in: query + name: filter[active] + required: false + schema: + example: "true" + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimesResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List Synthetics downtimes + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_read + post: + description: Create a new Synthetics downtime. + operationId: CreateSyntheticsDowntime + requestBody: + content: + application/json: + examples: + default: + value: + data: + attributes: + isEnabled: true + name: Weekly maintenance + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeRequest" + required: true + responses: + "201": + content: + application/json: + examples: + default: + value: + data: + attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeResponse" + description: Created + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Create a Synthetics downtime + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_write + /api/v2/synthetics/downtimes/{downtime_id}: + delete: + description: Delete a Synthetics downtime by its ID. + operationId: DeleteSyntheticsDowntime + parameters: + - description: The ID of the downtime to delete. + in: path + name: downtime_id + required: true + schema: + example: "00000000-0000-0000-0000-000000000001" + type: string + responses: + "204": + description: No Content + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Delete a Synthetics downtime + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_write + get: + description: Get a Synthetics downtime by its ID. + operationId: GetSyntheticsDowntime + parameters: + - description: The ID of the downtime to retrieve. + in: path + name: downtime_id + required: true + schema: + example: "00000000-0000-0000-0000-000000000001" + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get a Synthetics downtime + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_read + put: + description: Update a Synthetics downtime by its ID. + operationId: UpdateSyntheticsDowntime + parameters: + - description: The ID of the downtime to update. + in: path + name: downtime_id + required: true + schema: + example: "00000000-0000-0000-0000-000000000001" + type: string + requestBody: + content: + application/json: + examples: + default: + value: + data: + attributes: + isEnabled: true + name: Weekly maintenance + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeRequest" + required: true + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Update a Synthetics downtime + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_write + /api/v2/synthetics/downtimes/{downtime_id}/tests/{test_id}: + delete: + description: Disassociate a Synthetics test from a downtime. + operationId: RemoveTestFromSyntheticsDowntime + parameters: + - description: The ID of the downtime. + in: path + name: downtime_id + required: true + schema: + example: "00000000-0000-0000-0000-000000000001" + type: string + - description: The public ID of the Synthetics test to disassociate from the downtime. + in: path + name: test_id + required: true + schema: + example: abc-def-123 + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Remove a test from a Synthetics downtime + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_write + put: + description: Associate a Synthetics test with a downtime. + operationId: AddTestToSyntheticsDowntime + parameters: + - description: The ID of the downtime. + in: path + name: downtime_id + required: true + schema: + example: "00000000-0000-0000-0000-000000000001" + type: string + - description: The public ID of the Synthetics test to associate with the downtime. + in: path + name: test_id + required: true + schema: + example: abc-def-123 + type: string + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + createdAt: "2024-01-15T10:30:00Z" + createdBy: "00000000-0000-0000-0000-000000000003" + createdByName: Jane Doe + description: Scheduled weekly maintenance window. + isEnabled: true + name: Weekly maintenance + tags: [] + testIds: + - abc-def-123 + timeSlots: + - duration: 3600 + id: "00000000-0000-0000-0000-000000000002" + start: + day: 15 + hour: 10 + minute: 30 + month: 1 + year: 2024 + timezone: Europe/Paris + updatedAt: "2024-01-15T10:30:00Z" + updatedBy: "00000000-0000-0000-0000-000000000003" + updatedByName: Jane Doe + id: "00000000-0000-0000-0000-000000000001" + type: downtime + schema: + $ref: "#/components/schemas/SyntheticsDowntimeResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Add a test to a Synthetics downtime + tags: + - Synthetics + x-permission: + operator: AND + permissions: + - synthetics_write /api/v2/synthetics/settings/on_demand_concurrency_cap: get: description: Get the on-demand concurrency cap. diff --git a/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb b/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb new file mode 100644 index 000000000000..b5851ca1cadd --- /dev/null +++ b/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb @@ -0,0 +1,5 @@ +# Add a test to a Synthetics downtime returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new +p api_instance.add_test_to_synthetics_downtime("00000000-0000-0000-0000-000000000001", "abc-def-123") diff --git a/examples/v2/synthetics/CreateSyntheticsDowntime.rb b/examples/v2/synthetics/CreateSyntheticsDowntime.rb new file mode 100644 index 000000000000..509d9757f248 --- /dev/null +++ b/examples/v2/synthetics/CreateSyntheticsDowntime.rb @@ -0,0 +1,31 @@ +# Create a Synthetics downtime returns "Created" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new + +body = DatadogAPIClient::V2::SyntheticsDowntimeRequest.new({ + data: DatadogAPIClient::V2::SyntheticsDowntimeDataRequest.new({ + attributes: DatadogAPIClient::V2::SyntheticsDowntimeDataAttributesRequest.new({ + is_enabled: true, + name: "Weekly maintenance", + test_ids: [ + "abc-def-123", + ], + time_slots: [ + DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotRequest.new({ + duration: 3600, + start: DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotDate.new({ + day: 15, + hour: 10, + minute: 30, + month: 1, + year: 2024, + }), + timezone: "Europe/Paris", + }), + ], + }), + type: DatadogAPIClient::V2::SyntheticsDowntimeResourceType::DOWNTIME, + }), +}) +p api_instance.create_synthetics_downtime(body) diff --git a/examples/v2/synthetics/DeleteSyntheticsDowntime.rb b/examples/v2/synthetics/DeleteSyntheticsDowntime.rb new file mode 100644 index 000000000000..3f1674ffb43a --- /dev/null +++ b/examples/v2/synthetics/DeleteSyntheticsDowntime.rb @@ -0,0 +1,5 @@ +# Delete a Synthetics downtime returns "No Content" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new +api_instance.delete_synthetics_downtime("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/synthetics/GetSyntheticsDowntime.rb b/examples/v2/synthetics/GetSyntheticsDowntime.rb new file mode 100644 index 000000000000..b9c5dcd5647f --- /dev/null +++ b/examples/v2/synthetics/GetSyntheticsDowntime.rb @@ -0,0 +1,5 @@ +# Get a Synthetics downtime returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new +p api_instance.get_synthetics_downtime("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/synthetics/ListSyntheticsDowntimes.rb b/examples/v2/synthetics/ListSyntheticsDowntimes.rb new file mode 100644 index 000000000000..70b6b141e3b4 --- /dev/null +++ b/examples/v2/synthetics/ListSyntheticsDowntimes.rb @@ -0,0 +1,5 @@ +# List Synthetics downtimes returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new +p api_instance.list_synthetics_downtimes() diff --git a/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb b/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb new file mode 100644 index 000000000000..615662ab5ee1 --- /dev/null +++ b/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb @@ -0,0 +1,5 @@ +# Remove a test from a Synthetics downtime returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new +p api_instance.remove_test_from_synthetics_downtime("00000000-0000-0000-0000-000000000001", "abc-def-123") diff --git a/examples/v2/synthetics/UpdateSyntheticsDowntime.rb b/examples/v2/synthetics/UpdateSyntheticsDowntime.rb new file mode 100644 index 000000000000..b104e8c0007c --- /dev/null +++ b/examples/v2/synthetics/UpdateSyntheticsDowntime.rb @@ -0,0 +1,31 @@ +# Update a Synthetics downtime returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::SyntheticsAPI.new + +body = DatadogAPIClient::V2::SyntheticsDowntimeRequest.new({ + data: DatadogAPIClient::V2::SyntheticsDowntimeDataRequest.new({ + attributes: DatadogAPIClient::V2::SyntheticsDowntimeDataAttributesRequest.new({ + is_enabled: true, + name: "Weekly maintenance", + test_ids: [ + "abc-def-123", + ], + time_slots: [ + DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotRequest.new({ + duration: 3600, + start: DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotDate.new({ + day: 15, + hour: 10, + minute: 30, + month: 1, + year: 2024, + }), + timezone: "Europe/Paris", + }), + ], + }), + type: DatadogAPIClient::V2::SyntheticsDowntimeResourceType::DOWNTIME, + }), +}) +p api_instance.update_synthetics_downtime("00000000-0000-0000-0000-000000000001", body) diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 9a479c1b996f..a063dcd7cff5 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -4312,6 +4312,31 @@ "v2.GetApiMultistepSubtestParents" => { "public_id" => "String", }, + "v2.ListSyntheticsDowntimes" => { + "filter_test_ids" => "String", + "filter_active" => "String", + }, + "v2.CreateSyntheticsDowntime" => { + "body" => "SyntheticsDowntimeRequest", + }, + "v2.DeleteSyntheticsDowntime" => { + "downtime_id" => "String", + }, + "v2.GetSyntheticsDowntime" => { + "downtime_id" => "String", + }, + "v2.UpdateSyntheticsDowntime" => { + "downtime_id" => "String", + "body" => "SyntheticsDowntimeRequest", + }, + "v2.RemoveTestFromSyntheticsDowntime" => { + "downtime_id" => "String", + "test_id" => "String", + }, + "v2.AddTestToSyntheticsDowntime" => { + "downtime_id" => "String", + "test_id" => "String", + }, "v2.SetOnDemandConcurrencyCap" => { "body" => "OnDemandConcurrencyCapAttributes", }, diff --git a/features/v2/synthetics.feature b/features/v2/synthetics.feature index f847bc0e702e..f43e2e2c997e 100644 --- a/features/v2/synthetics.feature +++ b/features/v2/synthetics.feature @@ -33,6 +33,30 @@ Feature: Synthetics When the request is sent Then the response status is 204 No Content + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Add a test to a Synthetics downtime returns "Bad Request" response + Given new "AddTestToSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And request contains "test_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Add a test to a Synthetics downtime returns "Not Found" response + Given new "AddTestToSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And request contains "test_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Add a test to a Synthetics downtime returns "OK" response + Given new "AddTestToSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And request contains "test_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Bulk delete suites returns "API error response." response Given new "DeleteSyntheticsSuites" request @@ -91,6 +115,20 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Create a Synthetics downtime returns "Bad Request" response + Given new "CreateSyntheticsDowntime" request + And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Create a Synthetics downtime returns "Created" response + Given new "CreateSyntheticsDowntime" request + And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}} + When the request is sent + Then the response status is 201 Created + @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Create a test suite returns "API error response." response Given new "CreateSyntheticsSuite" request @@ -105,6 +143,27 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Delete a Synthetics downtime returns "Bad Request" response + Given new "DeleteSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Delete a Synthetics downtime returns "No Content" response + Given new "DeleteSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 204 No Content + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Delete a Synthetics downtime returns "Not Found" response + Given new "DeleteSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Edit a Network Path test returns "API error response." response Given new "UpdateSyntheticsNetworkTest" request @@ -151,6 +210,27 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Get a Synthetics downtime returns "Bad Request" response + Given new "GetSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Get a Synthetics downtime returns "Not Found" response + Given new "GetSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Get a Synthetics downtime returns "OK" response + Given new "GetSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Get a browser test result returns "API error response." response Given new "GetSyntheticsBrowserTestResult" request @@ -342,6 +422,18 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: List Synthetics downtimes returns "Bad Request" response + Given new "ListSyntheticsDowntimes" request + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: List Synthetics downtimes returns "OK" response + Given new "ListSyntheticsDowntimes" request + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Patch a global variable returns "Bad Request" response Given new "PatchGlobalVariable" request @@ -396,6 +488,30 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Remove a test from a Synthetics downtime returns "Bad Request" response + Given new "RemoveTestFromSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And request contains "test_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Remove a test from a Synthetics downtime returns "Not Found" response + Given new "RemoveTestFromSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And request contains "test_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Remove a test from a Synthetics downtime returns "OK" response + Given new "RemoveTestFromSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And request contains "test_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + @team:DataDog/synthetics-orchestrating-managing Scenario: Save new value for on-demand concurrency cap returns "OK" response Given new "SetOnDemandConcurrencyCap" request @@ -421,3 +537,27 @@ Feature: Synthetics Given new "SearchSuites" request When the request is sent Then the response status is 200 OK + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Update a Synthetics downtime returns "Bad Request" response + Given new "UpdateSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Update a Synthetics downtime returns "Not Found" response + Given new "UpdateSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/synthetics-orchestrating-managing + Scenario: Update a Synthetics downtime returns "OK" response + Given new "UpdateSyntheticsDowntime" request + And request contains "downtime_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"isEnabled": true, "name": "Weekly maintenance", "testIds": ["abc-def-123"], "timeSlots": [{"duration": 3600, "start": {"day": 15, "hour": 10, "minute": 30, "month": 1, "year": 2024}, "timezone": "Europe/Paris"}]}, "type": "downtime"}} + When the request is sent + Then the response status is 200 OK diff --git a/features/v2/undo.json b/features/v2/undo.json index efb20d6825d5..36d1cdbe4c04 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -6410,6 +6410,69 @@ "type": "safe" } }, + "ListSyntheticsDowntimes": { + "tag": "Synthetics", + "undo": { + "type": "safe" + } + }, + "CreateSyntheticsDowntime": { + "tag": "Synthetics", + "undo": { + "operationId": "DeleteSyntheticsDowntime", + "parameters": [ + { + "name": "downtime_id", + "origin": "path", + "source": "downtime_id" + } + ], + "type": "unsafe" + } + }, + "DeleteSyntheticsDowntime": { + "tag": "Synthetics", + "undo": { + "type": "idempotent" + } + }, + "GetSyntheticsDowntime": { + "tag": "Synthetics", + "undo": { + "type": "safe" + } + }, + "UpdateSyntheticsDowntime": { + "tag": "Synthetics", + "undo": { + "type": "unsafe" + } + }, + "RemoveTestFromSyntheticsDowntime": { + "tag": "Synthetics", + "undo": { + "type": "idempotent" + } + }, + "AddTestToSyntheticsDowntime": { + "tag": "Synthetics", + "undo": { + "operationId": "RemoveTestFromSyntheticsDowntime", + "parameters": [ + { + "name": "downtime_id", + "origin": "path", + "source": "downtime_id" + }, + { + "name": "test_id", + "origin": "path", + "source": "test_id" + } + ], + "type": "unsafe" + } + }, "GetOnDemandConcurrencyCap": { "tag": "Synthetics", "undo": { diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index fce450f903ed..4b359f379cce 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -5636,6 +5636,21 @@ def overrides "v2.synthetics_api_multistep_subtest_data" => "SyntheticsApiMultistepSubtestData", "v2.synthetics_api_multistep_subtests_response" => "SyntheticsApiMultistepSubtestsResponse", "v2.synthetics_api_multistep_subtest_type" => "SyntheticsApiMultistepSubtestType", + "v2.synthetics_downtime_data" => "SyntheticsDowntimeData", + "v2.synthetics_downtime_data_attributes_request" => "SyntheticsDowntimeDataAttributesRequest", + "v2.synthetics_downtime_data_attributes_response" => "SyntheticsDowntimeDataAttributesResponse", + "v2.synthetics_downtime_data_request" => "SyntheticsDowntimeDataRequest", + "v2.synthetics_downtime_frequency" => "SyntheticsDowntimeFrequency", + "v2.synthetics_downtime_request" => "SyntheticsDowntimeRequest", + "v2.synthetics_downtime_resource_type" => "SyntheticsDowntimeResourceType", + "v2.synthetics_downtime_response" => "SyntheticsDowntimeResponse", + "v2.synthetics_downtimes_response" => "SyntheticsDowntimesResponse", + "v2.synthetics_downtime_time_slot_date" => "SyntheticsDowntimeTimeSlotDate", + "v2.synthetics_downtime_time_slot_recurrence_request" => "SyntheticsDowntimeTimeSlotRecurrenceRequest", + "v2.synthetics_downtime_time_slot_recurrence_response" => "SyntheticsDowntimeTimeSlotRecurrenceResponse", + "v2.synthetics_downtime_time_slot_request" => "SyntheticsDowntimeTimeSlotRequest", + "v2.synthetics_downtime_time_slot_response" => "SyntheticsDowntimeTimeSlotResponse", + "v2.synthetics_downtime_weekday" => "SyntheticsDowntimeWeekday", "v2.synthetics_fast_test_result" => "SyntheticsFastTestResult", "v2.synthetics_fast_test_result_attributes" => "SyntheticsFastTestResultAttributes", "v2.synthetics_fast_test_result_data" => "SyntheticsFastTestResultData", diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 2c08d6dbc36f..9fda8308687a 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -152,7 +152,7 @@ def get_hourly_usage_attribution_with_http_info(start_hr, usage_type, opts = {}) fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution" end # verify enum value - allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'browser_usage', 'ci_code_coverage_committers_percentage', 'ci_code_coverage_committers_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'flex_logs_starter', 'flex_stored_logs', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'llm_observability_usage', 'llm_spans_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'network_device_wireless_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'product_analytics_session_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'published_app', 'rum_browser_mobile_sessions_usage', 'rum_ingested_usage', 'rum_investigate_usage', 'rum_replay_sessions_usage', 'rum_session_replay_add_on_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'serverless_apps_apm_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage'] + allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'browser_usage', 'ci_code_coverage_committers_percentage', 'ci_code_coverage_committers_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'code_security_host_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_fargate_task_usage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_stream_monitoring_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'flex_logs_starter', 'flex_stored_logs', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'infra_host_basic_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'llm_observability_usage', 'llm_spans_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'network_device_wireless_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'product_analytics_session_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'published_app', 'rum_browser_mobile_sessions_usage', 'rum_ingested_usage', 'rum_investigate_usage', 'rum_replay_sessions_usage', 'rum_session_replay_add_on_usage', 'sca_fargate_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'serverless_apps_apm_usage', 'siem_analyzed_logs_add_on_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage'] if @api_client.config.client_side_validation && !allowable_values.include?(usage_type) fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}" end @@ -478,7 +478,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution" end # verify enum value - allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'bits_ai_investigations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_logs_starter_usage', 'flex_logs_starter_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'serverless_apps_apm_usage', 'serverless_apps_apm_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'] + allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'bits_ai_investigations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_logs_starter_usage', 'flex_logs_starter_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'infra_host_basic_usage', 'infra_host_basic_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'serverless_apps_apm_usage', 'serverless_apps_apm_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'] if @api_client.config.client_side_validation && !allowable_values.include?(fields) fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}" end @@ -486,7 +486,7 @@ def get_monthly_usage_attribution_with_http_info(start_month, fields, opts = {}) if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction']) fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}" end - allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'bits_ai_investigations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_logs_starter_usage', 'flex_logs_starter_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'serverless_apps_apm_usage', 'serverless_apps_apm_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'] + allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'bits_ai_investigations_usage', 'bits_ai_investigations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'code_security_host_usage', 'code_security_host_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_fargate_task_percentage', 'cws_fargate_task_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'data_jobs_monitoring_usage', 'data_jobs_monitoring_percentage', 'data_stream_monitoring_usage', 'data_stream_monitoring_percentage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'flex_logs_starter_usage', 'flex_logs_starter_percentage', 'flex_stored_logs_usage', 'flex_stored_logs_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'infra_host_basic_usage', 'infra_host_basic_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'llm_observability_usage', 'llm_observability_percentage', 'llm_spans_usage', 'llm_spans_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'network_device_wireless_usage', 'network_device_wireless_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'product_analytics_session_usage', 'product_analytics_session_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'published_app_usage', 'published_app_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'serverless_apps_apm_usage', 'serverless_apps_apm_percentage', 'snmp_usage', 'snmp_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_ingested_usage', 'rum_ingested_percentage', 'rum_investigate_usage', 'rum_investigate_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_session_replay_add_on_usage', 'rum_session_replay_add_on_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_analyzed_logs_add_on_usage', 'siem_analyzed_logs_add_on_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', 'sca_fargate_usage', 'sca_fargate_percentage', '*'] if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name']) fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}" end diff --git a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb index 3b6c4d220df3..59186efcc0b6 100644 --- a/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +++ b/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb @@ -64,6 +64,7 @@ class HourlyUsageAttributionUsageType INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE = "incident_management_monthly_active_users_usage".freeze INDEXED_SPANS_USAGE = "indexed_spans_usage".freeze INFRA_HOST_USAGE = "infra_host_usage".freeze + INFRA_HOST_BASIC_USAGE = "infra_host_basic_usage".freeze INGESTED_LOGS_BYTES_USAGE = "ingested_logs_bytes_usage".freeze INGESTED_SPANS_BYTES_USAGE = "ingested_spans_bytes_usage".freeze INVOCATIONS_USAGE = "invocations_usage".freeze diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb index 2e01681b39b7..3125422e0d77 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb @@ -90,6 +90,8 @@ class MonthlyUsageAttributionSupportedMetrics INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE = "incident_management_monthly_active_users_percentage".freeze INFRA_HOST_USAGE = "infra_host_usage".freeze INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze + INFRA_HOST_BASIC_USAGE = "infra_host_basic_usage".freeze + INFRA_HOST_BASIC_PERCENTAGE = "infra_host_basic_percentage".freeze INVOCATIONS_USAGE = "invocations_usage".freeze INVOCATIONS_PERCENTAGE = "invocations_percentage".freeze LAMBDA_TRACED_INVOCATIONS_USAGE = "lambda_traced_invocations_usage".freeze diff --git a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb index 0f44d2315ce9..5f55f0354788 100644 --- a/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +++ b/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb @@ -243,6 +243,12 @@ class MonthlyUsageAttributionValues # The total APM Indexed Spans usage by tag(s). attr_accessor :indexed_spans_usage + # The percentage of infrastructure host Basic tier usage by tag(s). + attr_accessor :infra_host_basic_percentage + + # The infrastructure host Basic tier usage by tag(s). + attr_accessor :infra_host_basic_usage + # The percentage of infrastructure host usage by tag(s). attr_accessor :infra_host_percentage @@ -593,6 +599,8 @@ def self.attribute_map :'incident_management_monthly_active_users_usage' => :'incident_management_monthly_active_users_usage', :'indexed_spans_percentage' => :'indexed_spans_percentage', :'indexed_spans_usage' => :'indexed_spans_usage', + :'infra_host_basic_percentage' => :'infra_host_basic_percentage', + :'infra_host_basic_usage' => :'infra_host_basic_usage', :'infra_host_percentage' => :'infra_host_percentage', :'infra_host_usage' => :'infra_host_usage', :'ingested_logs_bytes_percentage' => :'ingested_logs_bytes_percentage', @@ -764,6 +772,8 @@ def self.openapi_types :'incident_management_monthly_active_users_usage' => :'Float', :'indexed_spans_percentage' => :'Float', :'indexed_spans_usage' => :'Float', + :'infra_host_basic_percentage' => :'Float', + :'infra_host_basic_usage' => :'Float', :'infra_host_percentage' => :'Float', :'infra_host_usage' => :'Float', :'ingested_logs_bytes_percentage' => :'Float', @@ -1171,6 +1181,14 @@ def initialize(attributes = {}) self.indexed_spans_usage = attributes[:'indexed_spans_usage'] end + if attributes.key?(:'infra_host_basic_percentage') + self.infra_host_basic_percentage = attributes[:'infra_host_basic_percentage'] + end + + if attributes.key?(:'infra_host_basic_usage') + self.infra_host_basic_usage = attributes[:'infra_host_basic_usage'] + end + if attributes.key?(:'infra_host_percentage') self.infra_host_percentage = attributes[:'infra_host_percentage'] end @@ -1632,6 +1650,8 @@ def ==(o) incident_management_monthly_active_users_usage == o.incident_management_monthly_active_users_usage && indexed_spans_percentage == o.indexed_spans_percentage && indexed_spans_usage == o.indexed_spans_usage && + infra_host_basic_percentage == o.infra_host_basic_percentage && + infra_host_basic_usage == o.infra_host_basic_usage && infra_host_percentage == o.infra_host_percentage && infra_host_usage == o.infra_host_usage && ingested_logs_bytes_percentage == o.ingested_logs_bytes_percentage && @@ -1729,7 +1749,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, bits_ai_investigations_percentage, bits_ai_investigations_usage, browser_percentage, browser_usage, ci_code_coverage_committers_percentage, ci_code_coverage_committers_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, code_security_host_percentage, code_security_host_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_fargate_task_percentage, cws_fargate_task_usage, cws_hosts_percentage, cws_hosts_usage, data_jobs_monitoring_usage, data_stream_monitoring_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, flex_logs_starter_percentage, flex_logs_starter_usage, flex_stored_logs_percentage, flex_stored_logs_usage, functions_percentage, functions_usage, incident_management_monthly_active_users_percentage, incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, llm_observability_percentage, llm_observability_usage, llm_spans_percentage, llm_spans_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_1day_percentage, logs_indexed_1day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, network_device_wireless_percentage, network_device_wireless_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, online_archive_percentage, online_archive_usage, product_analytics_session_percentage, product_analytics_session_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, published_app_percentage, published_app_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_ingested_percentage, rum_ingested_usage, rum_investigate_percentage, rum_investigate_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, rum_session_replay_add_on_percentage, rum_session_replay_add_on_usage, sca_fargate_percentage, sca_fargate_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_apm_percentage, serverless_apps_apm_usage, serverless_apps_percentage, serverless_apps_usage, siem_analyzed_logs_add_on_percentage, siem_analyzed_logs_add_on_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage, additional_properties].hash + [api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, apm_usm_percentage, apm_usm_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, asm_serverless_traced_invocations_percentage, asm_serverless_traced_invocations_usage, bits_ai_investigations_percentage, bits_ai_investigations_usage, browser_percentage, browser_usage, ci_code_coverage_committers_percentage, ci_code_coverage_committers_usage, ci_pipeline_indexed_spans_percentage, ci_pipeline_indexed_spans_usage, ci_test_indexed_spans_percentage, ci_test_indexed_spans_usage, ci_visibility_itr_percentage, ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, code_security_host_percentage, code_security_host_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_event_percentage, custom_event_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_fargate_task_percentage, cws_fargate_task_usage, cws_hosts_percentage, cws_hosts_usage, data_jobs_monitoring_usage, data_stream_monitoring_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, error_tracking_percentage, error_tracking_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, fargate_percentage, fargate_usage, flex_logs_starter_percentage, flex_logs_starter_usage, flex_stored_logs_percentage, flex_stored_logs_usage, functions_percentage, functions_usage, incident_management_monthly_active_users_percentage, incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_basic_percentage, infra_host_basic_usage, infra_host_percentage, infra_host_usage, ingested_logs_bytes_percentage, ingested_logs_bytes_usage, ingested_spans_bytes_percentage, ingested_spans_bytes_usage, invocations_percentage, invocations_usage, lambda_traced_invocations_percentage, lambda_traced_invocations_usage, llm_observability_percentage, llm_observability_usage, llm_spans_percentage, llm_spans_usage, logs_indexed_15day_percentage, logs_indexed_15day_usage, logs_indexed_180day_percentage, logs_indexed_180day_usage, logs_indexed_1day_percentage, logs_indexed_1day_usage, logs_indexed_30day_percentage, logs_indexed_30day_usage, logs_indexed_360day_percentage, logs_indexed_360day_usage, logs_indexed_3day_percentage, logs_indexed_3day_usage, logs_indexed_45day_percentage, logs_indexed_45day_usage, logs_indexed_60day_percentage, logs_indexed_60day_usage, logs_indexed_7day_percentage, logs_indexed_7day_usage, logs_indexed_90day_percentage, logs_indexed_90day_usage, logs_indexed_custom_retention_percentage, logs_indexed_custom_retention_usage, mobile_app_testing_percentage, mobile_app_testing_usage, ndm_netflow_percentage, ndm_netflow_usage, network_device_wireless_percentage, network_device_wireless_usage, npm_host_percentage, npm_host_usage, obs_pipeline_bytes_percentage, obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, online_archive_percentage, online_archive_usage, product_analytics_session_percentage, product_analytics_session_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, published_app_percentage, published_app_usage, rum_browser_mobile_sessions_percentage, rum_browser_mobile_sessions_usage, rum_ingested_percentage, rum_ingested_usage, rum_investigate_percentage, rum_investigate_usage, rum_replay_sessions_percentage, rum_replay_sessions_usage, rum_session_replay_add_on_percentage, rum_session_replay_add_on_usage, sca_fargate_percentage, sca_fargate_usage, sds_scanned_bytes_percentage, sds_scanned_bytes_usage, serverless_apps_apm_percentage, serverless_apps_apm_usage, serverless_apps_percentage, serverless_apps_usage, siem_analyzed_logs_add_on_percentage, siem_analyzed_logs_add_on_usage, siem_ingested_bytes_percentage, siem_ingested_bytes_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage, vuln_management_hosts_percentage, vuln_management_hosts_usage, workflow_executions_percentage, workflow_executions_usage, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v1/models/usage_summary_date.rb b/lib/datadog_api_client/v1/models/usage_summary_date.rb index 09788c4d7642..6147c498996a 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date.rb @@ -276,6 +276,15 @@ class UsageSummaryDate # Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current date for the given org. attr_accessor :eph_infra_host_azure_sum + # Shows the sum of all ephemeral infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for all organizations. + attr_accessor :eph_infra_host_basic_infra_basic_agent_sum + + # Shows the sum of all ephemeral infrastructure hosts for Basic tier on vSphere over all hours in the current date for all organizations. + attr_accessor :eph_infra_host_basic_infra_basic_vsphere_sum + + # Shows the sum of all ephemeral infrastructure hosts for Basic tier over all hours in the current date for all organizations. + attr_accessor :eph_infra_host_basic_sum + # Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current date for the given org. attr_accessor :eph_infra_host_ent_sum @@ -387,6 +396,15 @@ class UsageSummaryDate # Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current date for all organizations. attr_accessor :infra_edge_monitoring_devices_top99p + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for all organizations. + attr_accessor :infra_host_basic_infra_basic_agent_top99p + + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier on vSphere over all hours in the current date for all organizations. + attr_accessor :infra_host_basic_infra_basic_vsphere_top99p + + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier over all hours in the current date for all organizations. + attr_accessor :infra_host_basic_top99p + # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations. attr_accessor :infra_host_top99p @@ -802,6 +820,9 @@ def self.attribute_map :'eph_infra_host_alibaba_sum' => :'eph_infra_host_alibaba_sum', :'eph_infra_host_aws_sum' => :'eph_infra_host_aws_sum', :'eph_infra_host_azure_sum' => :'eph_infra_host_azure_sum', + :'eph_infra_host_basic_infra_basic_agent_sum' => :'eph_infra_host_basic_infra_basic_agent_sum', + :'eph_infra_host_basic_infra_basic_vsphere_sum' => :'eph_infra_host_basic_infra_basic_vsphere_sum', + :'eph_infra_host_basic_sum' => :'eph_infra_host_basic_sum', :'eph_infra_host_ent_sum' => :'eph_infra_host_ent_sum', :'eph_infra_host_gcp_sum' => :'eph_infra_host_gcp_sum', :'eph_infra_host_heroku_sum' => :'eph_infra_host_heroku_sum', @@ -839,6 +860,9 @@ def self.attribute_map :'incident_management_seats_hwm' => :'incident_management_seats_hwm', :'indexed_events_count_sum' => :'indexed_events_count_sum', :'infra_edge_monitoring_devices_top99p' => :'infra_edge_monitoring_devices_top99p', + :'infra_host_basic_infra_basic_agent_top99p' => :'infra_host_basic_infra_basic_agent_top99p', + :'infra_host_basic_infra_basic_vsphere_top99p' => :'infra_host_basic_infra_basic_vsphere_top99p', + :'infra_host_basic_top99p' => :'infra_host_basic_top99p', :'infra_host_top99p' => :'infra_host_top99p', :'ingested_events_bytes_sum' => :'ingested_events_bytes_sum', :'iot_device_sum' => :'iot_device_sum', @@ -1039,6 +1063,9 @@ def self.openapi_types :'eph_infra_host_alibaba_sum' => :'Integer', :'eph_infra_host_aws_sum' => :'Integer', :'eph_infra_host_azure_sum' => :'Integer', + :'eph_infra_host_basic_infra_basic_agent_sum' => :'Integer', + :'eph_infra_host_basic_infra_basic_vsphere_sum' => :'Integer', + :'eph_infra_host_basic_sum' => :'Integer', :'eph_infra_host_ent_sum' => :'Integer', :'eph_infra_host_gcp_sum' => :'Integer', :'eph_infra_host_heroku_sum' => :'Integer', @@ -1076,6 +1103,9 @@ def self.openapi_types :'incident_management_seats_hwm' => :'Integer', :'indexed_events_count_sum' => :'Integer', :'infra_edge_monitoring_devices_top99p' => :'Integer', + :'infra_host_basic_infra_basic_agent_top99p' => :'Integer', + :'infra_host_basic_infra_basic_vsphere_top99p' => :'Integer', + :'infra_host_basic_top99p' => :'Integer', :'infra_host_top99p' => :'Integer', :'ingested_events_bytes_sum' => :'Integer', :'iot_device_sum' => :'Integer', @@ -1545,6 +1575,18 @@ def initialize(attributes = {}) self.eph_infra_host_azure_sum = attributes[:'eph_infra_host_azure_sum'] end + if attributes.key?(:'eph_infra_host_basic_infra_basic_agent_sum') + self.eph_infra_host_basic_infra_basic_agent_sum = attributes[:'eph_infra_host_basic_infra_basic_agent_sum'] + end + + if attributes.key?(:'eph_infra_host_basic_infra_basic_vsphere_sum') + self.eph_infra_host_basic_infra_basic_vsphere_sum = attributes[:'eph_infra_host_basic_infra_basic_vsphere_sum'] + end + + if attributes.key?(:'eph_infra_host_basic_sum') + self.eph_infra_host_basic_sum = attributes[:'eph_infra_host_basic_sum'] + end + if attributes.key?(:'eph_infra_host_ent_sum') self.eph_infra_host_ent_sum = attributes[:'eph_infra_host_ent_sum'] end @@ -1693,6 +1735,18 @@ def initialize(attributes = {}) self.infra_edge_monitoring_devices_top99p = attributes[:'infra_edge_monitoring_devices_top99p'] end + if attributes.key?(:'infra_host_basic_infra_basic_agent_top99p') + self.infra_host_basic_infra_basic_agent_top99p = attributes[:'infra_host_basic_infra_basic_agent_top99p'] + end + + if attributes.key?(:'infra_host_basic_infra_basic_vsphere_top99p') + self.infra_host_basic_infra_basic_vsphere_top99p = attributes[:'infra_host_basic_infra_basic_vsphere_top99p'] + end + + if attributes.key?(:'infra_host_basic_top99p') + self.infra_host_basic_top99p = attributes[:'infra_host_basic_top99p'] + end + if attributes.key?(:'infra_host_top99p') self.infra_host_top99p = attributes[:'infra_host_top99p'] end @@ -2239,6 +2293,9 @@ def ==(o) eph_infra_host_alibaba_sum == o.eph_infra_host_alibaba_sum && eph_infra_host_aws_sum == o.eph_infra_host_aws_sum && eph_infra_host_azure_sum == o.eph_infra_host_azure_sum && + eph_infra_host_basic_infra_basic_agent_sum == o.eph_infra_host_basic_infra_basic_agent_sum && + eph_infra_host_basic_infra_basic_vsphere_sum == o.eph_infra_host_basic_infra_basic_vsphere_sum && + eph_infra_host_basic_sum == o.eph_infra_host_basic_sum && eph_infra_host_ent_sum == o.eph_infra_host_ent_sum && eph_infra_host_gcp_sum == o.eph_infra_host_gcp_sum && eph_infra_host_heroku_sum == o.eph_infra_host_heroku_sum && @@ -2276,6 +2333,9 @@ def ==(o) incident_management_seats_hwm == o.incident_management_seats_hwm && indexed_events_count_sum == o.indexed_events_count_sum && infra_edge_monitoring_devices_top99p == o.infra_edge_monitoring_devices_top99p && + infra_host_basic_infra_basic_agent_top99p == o.infra_host_basic_infra_basic_agent_top99p && + infra_host_basic_infra_basic_vsphere_top99p == o.infra_host_basic_infra_basic_vsphere_top99p && + infra_host_basic_top99p == o.infra_host_basic_top99p && infra_host_top99p == o.infra_host_top99p && ingested_events_bytes_sum == o.ingested_events_bytes_sum && iot_device_sum == o.iot_device_sum && @@ -2391,7 +2451,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [agent_host_top99p, apm_azure_app_service_host_top99p, apm_devsecops_host_top99p, apm_enterprise_standalone_hosts_top99p, apm_fargate_count_avg, apm_host_top99p, apm_pro_standalone_hosts_top99p, appsec_fargate_count_avg, asm_serverless_sum, audit_logs_lines_indexed_sum, audit_trail_enabled_hwm, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, bits_ai_investigations_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ccm_anthropic_spend_last, ccm_aws_spend_last, ccm_azure_spend_last, ccm_confluent_spend_last, ccm_databricks_spend_last, ccm_elastic_spend_last, ccm_fastly_spend_last, ccm_gcp_spend_last, ccm_github_spend_last, ccm_mongodb_spend_last, ccm_oci_spend_last, ccm_openai_spend_last, ccm_snowflake_spend_last, ccm_spend_monitored_ent_last, ccm_spend_monitored_pro_last, ccm_twilio_spend_last, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_itr_committers_hwm, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, cloud_cost_management_aws_host_count_avg, cloud_cost_management_azure_host_count_avg, cloud_cost_management_gcp_host_count_avg, cloud_cost_management_host_count_avg, cloud_cost_management_oci_host_count_avg, cloud_siem_events_sum, code_analysis_sa_committers_hwm, code_analysis_sca_committers_hwm, code_security_host_top99p, container_avg, container_excl_agent_avg, container_hwm, csm_container_enterprise_compliance_count_sum, csm_container_enterprise_cws_count_sum, csm_container_enterprise_total_count_sum, csm_host_enterprise_aas_host_count_top99p, csm_host_enterprise_aws_host_count_top99p, csm_host_enterprise_azure_host_count_top99p, csm_host_enterprise_compliance_host_count_top99p, csm_host_enterprise_cws_host_count_top99p, csm_host_enterprise_gcp_host_count_top99p, csm_host_enterprise_oci_host_count_top99p, csm_host_enterprise_total_host_count_top99p, csm_host_pro_oci_host_count_top99p, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_gcp_host_top99p, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_fargate_task_avg, cws_host_top99p, data_jobs_monitoring_host_hr_sum, date, dbm_host_top99p, dbm_queries_count_avg, eph_infra_host_agent_sum, eph_infra_host_alibaba_sum, eph_infra_host_aws_sum, eph_infra_host_azure_sum, eph_infra_host_ent_sum, eph_infra_host_gcp_sum, eph_infra_host_heroku_sum, eph_infra_host_only_aas_sum, eph_infra_host_only_vsphere_sum, eph_infra_host_opentelemetry_apm_sum, eph_infra_host_opentelemetry_sum, eph_infra_host_pro_sum, eph_infra_host_proplus_sum, eph_infra_host_proxmox_sum, error_tracking_apm_error_events_sum, error_tracking_error_events_sum, error_tracking_events_sum, error_tracking_rum_error_events_sum, event_management_correlation_correlated_events_sum, event_management_correlation_correlated_related_events_sum, event_management_correlation_sum, fargate_container_profiler_profiling_fargate_avg, fargate_container_profiler_profiling_fargate_eks_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, flex_logs_compute_large_avg, flex_logs_compute_medium_avg, flex_logs_compute_small_avg, flex_logs_compute_xlarge_avg, flex_logs_compute_xsmall_avg, flex_logs_starter_avg, flex_logs_starter_storage_index_avg, flex_logs_starter_storage_retention_adjustment_avg, flex_stored_logs_avg, forwarding_events_bytes_sum, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, incident_management_seats_hwm, indexed_events_count_sum, infra_edge_monitoring_devices_top99p, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, llm_observability_min_spend_sum, llm_observability_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_flutter_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_roku_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, ndm_netflow_events_sum, netflow_indexed_events_count_sum, network_device_wireless_top99p, network_path_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, oci_host_sum, oci_host_top99p, on_call_seat_hwm, online_archive_events_count_sum, opentelemetry_apm_host_top99p, opentelemetry_host_top99p, orgs, product_analytics_sum, profiling_aas_count_top99p, profiling_host_top99p, proxmox_host_sum, proxmox_host_top99p, published_app_hwm, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_sum, rum_browser_lite_session_count_sum, rum_browser_replay_session_count_sum, rum_indexed_sessions_sum, rum_ingested_sessions_sum, rum_lite_session_count_sum, rum_mobile_legacy_session_count_android_sum, rum_mobile_legacy_session_count_flutter_sum, rum_mobile_legacy_session_count_ios_sum, rum_mobile_legacy_session_count_reactnative_sum, rum_mobile_legacy_session_count_roku_sum, rum_mobile_lite_session_count_android_sum, rum_mobile_lite_session_count_flutter_sum, rum_mobile_lite_session_count_ios_sum, rum_mobile_lite_session_count_kotlinmultiplatform_sum, rum_mobile_lite_session_count_reactnative_sum, rum_mobile_lite_session_count_roku_sum, rum_mobile_lite_session_count_unity_sum, rum_mobile_replay_session_count_android_sum, rum_mobile_replay_session_count_ios_sum, rum_mobile_replay_session_count_kotlinmultiplatform_sum, rum_mobile_replay_session_count_reactnative_sum, rum_replay_session_count_sum, rum_session_count_sum, rum_session_replay_add_on_sum, rum_total_session_count_sum, rum_units_sum, sca_fargate_count_avg, sca_fargate_count_hwm, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_apm_apm_azure_appservice_instances_avg, serverless_apps_apm_apm_azure_azurefunction_instances_avg, serverless_apps_apm_apm_azure_containerapp_instances_avg, serverless_apps_apm_apm_fargate_ecs_tasks_avg, serverless_apps_apm_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_avg, serverless_apps_apm_excl_fargate_apm_azure_appservice_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_azurefunction_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_containerapp_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_excl_fargate_avg, serverless_apps_azure_container_app_instances_avg, serverless_apps_azure_count_avg, serverless_apps_azure_function_app_instances_avg, serverless_apps_azure_web_app_instances_avg, serverless_apps_ecs_avg, serverless_apps_eks_avg, serverless_apps_excl_fargate_avg, serverless_apps_excl_fargate_azure_container_app_instances_avg, serverless_apps_excl_fargate_azure_function_app_instances_avg, serverless_apps_excl_fargate_azure_web_app_instances_avg, serverless_apps_excl_fargate_google_cloud_functions_instances_avg, serverless_apps_excl_fargate_google_cloud_run_instances_avg, serverless_apps_google_cloud_functions_instances_avg, serverless_apps_google_cloud_run_instances_avg, serverless_apps_google_count_avg, serverless_apps_total_count_avg, siem_analyzed_logs_add_on_count_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, synthetics_mobile_test_runs_sum, synthetics_parallel_testing_max_slots_hwm, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, universal_service_monitoring_host_top99p, vsphere_host_top99p, vuln_management_host_count_top99p, workflow_executions_usage_sum, additional_properties].hash + [agent_host_top99p, apm_azure_app_service_host_top99p, apm_devsecops_host_top99p, apm_enterprise_standalone_hosts_top99p, apm_fargate_count_avg, apm_host_top99p, apm_pro_standalone_hosts_top99p, appsec_fargate_count_avg, asm_serverless_sum, audit_logs_lines_indexed_sum, audit_trail_enabled_hwm, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, bits_ai_investigations_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ccm_anthropic_spend_last, ccm_aws_spend_last, ccm_azure_spend_last, ccm_confluent_spend_last, ccm_databricks_spend_last, ccm_elastic_spend_last, ccm_fastly_spend_last, ccm_gcp_spend_last, ccm_github_spend_last, ccm_mongodb_spend_last, ccm_oci_spend_last, ccm_openai_spend_last, ccm_snowflake_spend_last, ccm_spend_monitored_ent_last, ccm_spend_monitored_pro_last, ccm_twilio_spend_last, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_itr_committers_hwm, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, cloud_cost_management_aws_host_count_avg, cloud_cost_management_azure_host_count_avg, cloud_cost_management_gcp_host_count_avg, cloud_cost_management_host_count_avg, cloud_cost_management_oci_host_count_avg, cloud_siem_events_sum, code_analysis_sa_committers_hwm, code_analysis_sca_committers_hwm, code_security_host_top99p, container_avg, container_excl_agent_avg, container_hwm, csm_container_enterprise_compliance_count_sum, csm_container_enterprise_cws_count_sum, csm_container_enterprise_total_count_sum, csm_host_enterprise_aas_host_count_top99p, csm_host_enterprise_aws_host_count_top99p, csm_host_enterprise_azure_host_count_top99p, csm_host_enterprise_compliance_host_count_top99p, csm_host_enterprise_cws_host_count_top99p, csm_host_enterprise_gcp_host_count_top99p, csm_host_enterprise_oci_host_count_top99p, csm_host_enterprise_total_host_count_top99p, csm_host_pro_oci_host_count_top99p, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_gcp_host_top99p, cspm_host_top99p, custom_ts_avg, cws_container_count_avg, cws_fargate_task_avg, cws_host_top99p, data_jobs_monitoring_host_hr_sum, date, dbm_host_top99p, dbm_queries_count_avg, eph_infra_host_agent_sum, eph_infra_host_alibaba_sum, eph_infra_host_aws_sum, eph_infra_host_azure_sum, eph_infra_host_basic_infra_basic_agent_sum, eph_infra_host_basic_infra_basic_vsphere_sum, eph_infra_host_basic_sum, eph_infra_host_ent_sum, eph_infra_host_gcp_sum, eph_infra_host_heroku_sum, eph_infra_host_only_aas_sum, eph_infra_host_only_vsphere_sum, eph_infra_host_opentelemetry_apm_sum, eph_infra_host_opentelemetry_sum, eph_infra_host_pro_sum, eph_infra_host_proplus_sum, eph_infra_host_proxmox_sum, error_tracking_apm_error_events_sum, error_tracking_error_events_sum, error_tracking_events_sum, error_tracking_rum_error_events_sum, event_management_correlation_correlated_events_sum, event_management_correlation_correlated_related_events_sum, event_management_correlation_sum, fargate_container_profiler_profiling_fargate_avg, fargate_container_profiler_profiling_fargate_eks_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, flex_logs_compute_large_avg, flex_logs_compute_medium_avg, flex_logs_compute_small_avg, flex_logs_compute_xlarge_avg, flex_logs_compute_xsmall_avg, flex_logs_starter_avg, flex_logs_starter_storage_index_avg, flex_logs_starter_storage_retention_adjustment_avg, flex_stored_logs_avg, forwarding_events_bytes_sum, gcp_host_top99p, heroku_host_top99p, incident_management_monthly_active_users_hwm, incident_management_seats_hwm, indexed_events_count_sum, infra_edge_monitoring_devices_top99p, infra_host_basic_infra_basic_agent_top99p, infra_host_basic_infra_basic_vsphere_top99p, infra_host_basic_top99p, infra_host_top99p, ingested_events_bytes_sum, iot_device_sum, iot_device_top99p, llm_observability_min_spend_sum, llm_observability_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_flutter_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_roku_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, ndm_netflow_events_sum, netflow_indexed_events_count_sum, network_device_wireless_top99p, network_path_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, oci_host_sum, oci_host_top99p, on_call_seat_hwm, online_archive_events_count_sum, opentelemetry_apm_host_top99p, opentelemetry_host_top99p, orgs, product_analytics_sum, profiling_aas_count_top99p, profiling_host_top99p, proxmox_host_sum, proxmox_host_top99p, published_app_hwm, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_sum, rum_browser_lite_session_count_sum, rum_browser_replay_session_count_sum, rum_indexed_sessions_sum, rum_ingested_sessions_sum, rum_lite_session_count_sum, rum_mobile_legacy_session_count_android_sum, rum_mobile_legacy_session_count_flutter_sum, rum_mobile_legacy_session_count_ios_sum, rum_mobile_legacy_session_count_reactnative_sum, rum_mobile_legacy_session_count_roku_sum, rum_mobile_lite_session_count_android_sum, rum_mobile_lite_session_count_flutter_sum, rum_mobile_lite_session_count_ios_sum, rum_mobile_lite_session_count_kotlinmultiplatform_sum, rum_mobile_lite_session_count_reactnative_sum, rum_mobile_lite_session_count_roku_sum, rum_mobile_lite_session_count_unity_sum, rum_mobile_replay_session_count_android_sum, rum_mobile_replay_session_count_ios_sum, rum_mobile_replay_session_count_kotlinmultiplatform_sum, rum_mobile_replay_session_count_reactnative_sum, rum_replay_session_count_sum, rum_session_count_sum, rum_session_replay_add_on_sum, rum_total_session_count_sum, rum_units_sum, sca_fargate_count_avg, sca_fargate_count_hwm, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_apm_apm_azure_appservice_instances_avg, serverless_apps_apm_apm_azure_azurefunction_instances_avg, serverless_apps_apm_apm_azure_containerapp_instances_avg, serverless_apps_apm_apm_fargate_ecs_tasks_avg, serverless_apps_apm_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_avg, serverless_apps_apm_excl_fargate_apm_azure_appservice_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_azurefunction_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_containerapp_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_excl_fargate_avg, serverless_apps_azure_container_app_instances_avg, serverless_apps_azure_count_avg, serverless_apps_azure_function_app_instances_avg, serverless_apps_azure_web_app_instances_avg, serverless_apps_ecs_avg, serverless_apps_eks_avg, serverless_apps_excl_fargate_avg, serverless_apps_excl_fargate_azure_container_app_instances_avg, serverless_apps_excl_fargate_azure_function_app_instances_avg, serverless_apps_excl_fargate_azure_web_app_instances_avg, serverless_apps_excl_fargate_google_cloud_functions_instances_avg, serverless_apps_excl_fargate_google_cloud_run_instances_avg, serverless_apps_google_cloud_functions_instances_avg, serverless_apps_google_cloud_run_instances_avg, serverless_apps_google_count_avg, serverless_apps_total_count_avg, siem_analyzed_logs_add_on_count_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, synthetics_mobile_test_runs_sum, synthetics_parallel_testing_max_slots_hwm, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, universal_service_monitoring_host_top99p, vsphere_host_top99p, vuln_management_host_count_top99p, workflow_executions_usage_sum, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb index 35541a5f0352..9efd979e5dcf 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_date_org.rb @@ -285,6 +285,15 @@ class UsageSummaryDateOrg # Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current date for the given org. attr_accessor :eph_infra_host_azure_sum + # Shows the sum of all ephemeral infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for the given org. + attr_accessor :eph_infra_host_basic_infra_basic_agent_sum + + # Shows the sum of all ephemeral infrastructure hosts for Basic tier on vSphere over all hours in the current date for the given org. + attr_accessor :eph_infra_host_basic_infra_basic_vsphere_sum + + # Shows the sum of all ephemeral infrastructure hosts for Basic tier over all hours in the current date for the given org. + attr_accessor :eph_infra_host_basic_sum + # Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current date for the given org. attr_accessor :eph_infra_host_ent_sum @@ -399,6 +408,15 @@ class UsageSummaryDateOrg # Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current date for the given org. attr_accessor :infra_edge_monitoring_devices_top99p + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current date for the given org. + attr_accessor :infra_host_basic_infra_basic_agent_top99p + + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier on vSphere over all hours in the current date for the given org. + attr_accessor :infra_host_basic_infra_basic_vsphere_top99p + + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier over all hours in the current date for the given org. + attr_accessor :infra_host_basic_top99p + # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org. attr_accessor :infra_host_top99p @@ -823,6 +841,9 @@ def self.attribute_map :'eph_infra_host_alibaba_sum' => :'eph_infra_host_alibaba_sum', :'eph_infra_host_aws_sum' => :'eph_infra_host_aws_sum', :'eph_infra_host_azure_sum' => :'eph_infra_host_azure_sum', + :'eph_infra_host_basic_infra_basic_agent_sum' => :'eph_infra_host_basic_infra_basic_agent_sum', + :'eph_infra_host_basic_infra_basic_vsphere_sum' => :'eph_infra_host_basic_infra_basic_vsphere_sum', + :'eph_infra_host_basic_sum' => :'eph_infra_host_basic_sum', :'eph_infra_host_ent_sum' => :'eph_infra_host_ent_sum', :'eph_infra_host_gcp_sum' => :'eph_infra_host_gcp_sum', :'eph_infra_host_heroku_sum' => :'eph_infra_host_heroku_sum', @@ -861,6 +882,9 @@ def self.attribute_map :'incident_management_seats_hwm' => :'incident_management_seats_hwm', :'indexed_events_count_sum' => :'indexed_events_count_sum', :'infra_edge_monitoring_devices_top99p' => :'infra_edge_monitoring_devices_top99p', + :'infra_host_basic_infra_basic_agent_top99p' => :'infra_host_basic_infra_basic_agent_top99p', + :'infra_host_basic_infra_basic_vsphere_top99p' => :'infra_host_basic_infra_basic_vsphere_top99p', + :'infra_host_basic_top99p' => :'infra_host_basic_top99p', :'infra_host_top99p' => :'infra_host_top99p', :'ingested_events_bytes_sum' => :'ingested_events_bytes_sum', :'iot_device_agg_sum' => :'iot_device_agg_sum', @@ -1066,6 +1090,9 @@ def self.openapi_types :'eph_infra_host_alibaba_sum' => :'Integer', :'eph_infra_host_aws_sum' => :'Integer', :'eph_infra_host_azure_sum' => :'Integer', + :'eph_infra_host_basic_infra_basic_agent_sum' => :'Integer', + :'eph_infra_host_basic_infra_basic_vsphere_sum' => :'Integer', + :'eph_infra_host_basic_sum' => :'Integer', :'eph_infra_host_ent_sum' => :'Integer', :'eph_infra_host_gcp_sum' => :'Integer', :'eph_infra_host_heroku_sum' => :'Integer', @@ -1104,6 +1131,9 @@ def self.openapi_types :'incident_management_seats_hwm' => :'Integer', :'indexed_events_count_sum' => :'Integer', :'infra_edge_monitoring_devices_top99p' => :'Integer', + :'infra_host_basic_infra_basic_agent_top99p' => :'Integer', + :'infra_host_basic_infra_basic_vsphere_top99p' => :'Integer', + :'infra_host_basic_top99p' => :'Integer', :'infra_host_top99p' => :'Integer', :'ingested_events_bytes_sum' => :'Integer', :'iot_device_agg_sum' => :'Integer', @@ -1587,6 +1617,18 @@ def initialize(attributes = {}) self.eph_infra_host_azure_sum = attributes[:'eph_infra_host_azure_sum'] end + if attributes.key?(:'eph_infra_host_basic_infra_basic_agent_sum') + self.eph_infra_host_basic_infra_basic_agent_sum = attributes[:'eph_infra_host_basic_infra_basic_agent_sum'] + end + + if attributes.key?(:'eph_infra_host_basic_infra_basic_vsphere_sum') + self.eph_infra_host_basic_infra_basic_vsphere_sum = attributes[:'eph_infra_host_basic_infra_basic_vsphere_sum'] + end + + if attributes.key?(:'eph_infra_host_basic_sum') + self.eph_infra_host_basic_sum = attributes[:'eph_infra_host_basic_sum'] + end + if attributes.key?(:'eph_infra_host_ent_sum') self.eph_infra_host_ent_sum = attributes[:'eph_infra_host_ent_sum'] end @@ -1739,6 +1781,18 @@ def initialize(attributes = {}) self.infra_edge_monitoring_devices_top99p = attributes[:'infra_edge_monitoring_devices_top99p'] end + if attributes.key?(:'infra_host_basic_infra_basic_agent_top99p') + self.infra_host_basic_infra_basic_agent_top99p = attributes[:'infra_host_basic_infra_basic_agent_top99p'] + end + + if attributes.key?(:'infra_host_basic_infra_basic_vsphere_top99p') + self.infra_host_basic_infra_basic_vsphere_top99p = attributes[:'infra_host_basic_infra_basic_vsphere_top99p'] + end + + if attributes.key?(:'infra_host_basic_top99p') + self.infra_host_basic_top99p = attributes[:'infra_host_basic_top99p'] + end + if attributes.key?(:'infra_host_top99p') self.infra_host_top99p = attributes[:'infra_host_top99p'] end @@ -2294,6 +2348,9 @@ def ==(o) eph_infra_host_alibaba_sum == o.eph_infra_host_alibaba_sum && eph_infra_host_aws_sum == o.eph_infra_host_aws_sum && eph_infra_host_azure_sum == o.eph_infra_host_azure_sum && + eph_infra_host_basic_infra_basic_agent_sum == o.eph_infra_host_basic_infra_basic_agent_sum && + eph_infra_host_basic_infra_basic_vsphere_sum == o.eph_infra_host_basic_infra_basic_vsphere_sum && + eph_infra_host_basic_sum == o.eph_infra_host_basic_sum && eph_infra_host_ent_sum == o.eph_infra_host_ent_sum && eph_infra_host_gcp_sum == o.eph_infra_host_gcp_sum && eph_infra_host_heroku_sum == o.eph_infra_host_heroku_sum && @@ -2332,6 +2389,9 @@ def ==(o) incident_management_seats_hwm == o.incident_management_seats_hwm && indexed_events_count_sum == o.indexed_events_count_sum && infra_edge_monitoring_devices_top99p == o.infra_edge_monitoring_devices_top99p && + infra_host_basic_infra_basic_agent_top99p == o.infra_host_basic_infra_basic_agent_top99p && + infra_host_basic_infra_basic_vsphere_top99p == o.infra_host_basic_infra_basic_vsphere_top99p && + infra_host_basic_top99p == o.infra_host_basic_top99p && infra_host_top99p == o.infra_host_top99p && ingested_events_bytes_sum == o.ingested_events_bytes_sum && iot_device_agg_sum == o.iot_device_agg_sum && @@ -2449,7 +2509,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [account_name, account_public_id, agent_host_top99p, apm_azure_app_service_host_top99p, apm_devsecops_host_top99p, apm_enterprise_standalone_hosts_top99p, apm_fargate_count_avg, apm_host_top99p, apm_pro_standalone_hosts_top99p, appsec_fargate_count_avg, asm_serverless_sum, audit_logs_lines_indexed_sum, audit_trail_enabled_hwm, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, bits_ai_investigations_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ccm_anthropic_spend_last, ccm_aws_spend_last, ccm_azure_spend_last, ccm_confluent_spend_last, ccm_databricks_spend_last, ccm_elastic_spend_last, ccm_fastly_spend_last, ccm_gcp_spend_last, ccm_github_spend_last, ccm_mongodb_spend_last, ccm_oci_spend_last, ccm_openai_spend_last, ccm_snowflake_spend_last, ccm_spend_monitored_ent_last, ccm_spend_monitored_pro_last, ccm_twilio_spend_last, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_itr_committers_hwm, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, cloud_cost_management_aws_host_count_avg, cloud_cost_management_azure_host_count_avg, cloud_cost_management_gcp_host_count_avg, cloud_cost_management_host_count_avg, cloud_cost_management_oci_host_count_avg, cloud_siem_events_sum, code_analysis_sa_committers_hwm, code_analysis_sca_committers_hwm, code_security_host_top99p, container_avg, container_excl_agent_avg, container_hwm, csm_container_enterprise_compliance_count_sum, csm_container_enterprise_cws_count_sum, csm_container_enterprise_total_count_sum, csm_host_enterprise_aas_host_count_top99p, csm_host_enterprise_aws_host_count_top99p, csm_host_enterprise_azure_host_count_top99p, csm_host_enterprise_compliance_host_count_top99p, csm_host_enterprise_cws_host_count_top99p, csm_host_enterprise_gcp_host_count_top99p, csm_host_enterprise_oci_host_count_top99p, csm_host_enterprise_total_host_count_top99p, csm_host_pro_oci_host_count_top99p, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_gcp_host_top99p, cspm_host_top99p, custom_historical_ts_avg, custom_live_ts_avg, custom_ts_avg, cws_container_count_avg, cws_fargate_task_avg, cws_host_top99p, data_jobs_monitoring_host_hr_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, eph_infra_host_agent_sum, eph_infra_host_alibaba_sum, eph_infra_host_aws_sum, eph_infra_host_azure_sum, eph_infra_host_ent_sum, eph_infra_host_gcp_sum, eph_infra_host_heroku_sum, eph_infra_host_only_aas_sum, eph_infra_host_only_vsphere_sum, eph_infra_host_opentelemetry_apm_sum, eph_infra_host_opentelemetry_sum, eph_infra_host_pro_sum, eph_infra_host_proplus_sum, eph_infra_host_proxmox_sum, error_tracking_apm_error_events_sum, error_tracking_error_events_sum, error_tracking_events_sum, error_tracking_rum_error_events_sum, event_management_correlation_correlated_events_sum, event_management_correlation_correlated_related_events_sum, event_management_correlation_sum, fargate_container_profiler_profiling_fargate_avg, fargate_container_profiler_profiling_fargate_eks_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, flex_logs_compute_large_avg, flex_logs_compute_medium_avg, flex_logs_compute_small_avg, flex_logs_compute_xlarge_avg, flex_logs_compute_xsmall_avg, flex_logs_starter_avg, flex_logs_starter_storage_index_avg, flex_logs_starter_storage_retention_adjustment_avg, flex_stored_logs_avg, forwarding_events_bytes_sum, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, incident_management_seats_hwm, indexed_events_count_sum, infra_edge_monitoring_devices_top99p, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, llm_observability_min_spend_sum, llm_observability_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_flutter_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_roku_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, ndm_netflow_events_sum, netflow_indexed_events_count_sum, network_device_wireless_top99p, network_path_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, oci_host_sum, oci_host_top99p, on_call_seat_hwm, online_archive_events_count_sum, opentelemetry_apm_host_top99p, opentelemetry_host_top99p, product_analytics_sum, profiling_aas_count_top99p, profiling_host_top99p, proxmox_host_sum, proxmox_host_top99p, public_id, published_app_hwm, region, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_sum, rum_browser_lite_session_count_sum, rum_browser_replay_session_count_sum, rum_indexed_sessions_sum, rum_ingested_sessions_sum, rum_lite_session_count_sum, rum_mobile_legacy_session_count_android_sum, rum_mobile_legacy_session_count_flutter_sum, rum_mobile_legacy_session_count_ios_sum, rum_mobile_legacy_session_count_reactnative_sum, rum_mobile_legacy_session_count_roku_sum, rum_mobile_lite_session_count_android_sum, rum_mobile_lite_session_count_flutter_sum, rum_mobile_lite_session_count_ios_sum, rum_mobile_lite_session_count_kotlinmultiplatform_sum, rum_mobile_lite_session_count_reactnative_sum, rum_mobile_lite_session_count_roku_sum, rum_mobile_lite_session_count_unity_sum, rum_mobile_replay_session_count_android_sum, rum_mobile_replay_session_count_ios_sum, rum_mobile_replay_session_count_kotlinmultiplatform_sum, rum_mobile_replay_session_count_reactnative_sum, rum_replay_session_count_sum, rum_session_count_sum, rum_session_replay_add_on_sum, rum_total_session_count_sum, rum_units_sum, sca_fargate_count_avg, sca_fargate_count_hwm, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_apm_apm_azure_appservice_instances_avg, serverless_apps_apm_apm_azure_azurefunction_instances_avg, serverless_apps_apm_apm_azure_containerapp_instances_avg, serverless_apps_apm_apm_fargate_ecs_tasks_avg, serverless_apps_apm_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_avg, serverless_apps_apm_excl_fargate_apm_azure_appservice_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_azurefunction_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_containerapp_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_excl_fargate_avg, serverless_apps_azure_container_app_instances_avg, serverless_apps_azure_count_avg, serverless_apps_azure_function_app_instances_avg, serverless_apps_azure_web_app_instances_avg, serverless_apps_ecs_avg, serverless_apps_eks_avg, serverless_apps_excl_fargate_avg, serverless_apps_excl_fargate_azure_container_app_instances_avg, serverless_apps_excl_fargate_azure_function_app_instances_avg, serverless_apps_excl_fargate_azure_web_app_instances_avg, serverless_apps_excl_fargate_google_cloud_functions_instances_avg, serverless_apps_excl_fargate_google_cloud_run_instances_avg, serverless_apps_google_cloud_functions_instances_avg, serverless_apps_google_cloud_run_instances_avg, serverless_apps_google_count_avg, serverless_apps_total_count_avg, siem_analyzed_logs_add_on_count_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, synthetics_mobile_test_runs_sum, synthetics_parallel_testing_max_slots_hwm, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, universal_service_monitoring_host_top99p, vsphere_host_top99p, vuln_management_host_count_top99p, workflow_executions_usage_sum, additional_properties].hash + [account_name, account_public_id, agent_host_top99p, apm_azure_app_service_host_top99p, apm_devsecops_host_top99p, apm_enterprise_standalone_hosts_top99p, apm_fargate_count_avg, apm_host_top99p, apm_pro_standalone_hosts_top99p, appsec_fargate_count_avg, asm_serverless_sum, audit_logs_lines_indexed_sum, audit_trail_enabled_hwm, avg_profiled_fargate_tasks, aws_host_top99p, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p, billable_ingested_bytes_sum, bits_ai_investigations_sum, browser_rum_lite_session_count_sum, browser_rum_replay_session_count_sum, browser_rum_units_sum, ccm_anthropic_spend_last, ccm_aws_spend_last, ccm_azure_spend_last, ccm_confluent_spend_last, ccm_databricks_spend_last, ccm_elastic_spend_last, ccm_fastly_spend_last, ccm_gcp_spend_last, ccm_github_spend_last, ccm_mongodb_spend_last, ccm_oci_spend_last, ccm_openai_spend_last, ccm_snowflake_spend_last, ccm_spend_monitored_ent_last, ccm_spend_monitored_pro_last, ccm_twilio_spend_last, ci_pipeline_indexed_spans_sum, ci_test_indexed_spans_sum, ci_visibility_itr_committers_hwm, ci_visibility_pipeline_committers_hwm, ci_visibility_test_committers_hwm, cloud_cost_management_aws_host_count_avg, cloud_cost_management_azure_host_count_avg, cloud_cost_management_gcp_host_count_avg, cloud_cost_management_host_count_avg, cloud_cost_management_oci_host_count_avg, cloud_siem_events_sum, code_analysis_sa_committers_hwm, code_analysis_sca_committers_hwm, code_security_host_top99p, container_avg, container_excl_agent_avg, container_hwm, csm_container_enterprise_compliance_count_sum, csm_container_enterprise_cws_count_sum, csm_container_enterprise_total_count_sum, csm_host_enterprise_aas_host_count_top99p, csm_host_enterprise_aws_host_count_top99p, csm_host_enterprise_azure_host_count_top99p, csm_host_enterprise_compliance_host_count_top99p, csm_host_enterprise_cws_host_count_top99p, csm_host_enterprise_gcp_host_count_top99p, csm_host_enterprise_oci_host_count_top99p, csm_host_enterprise_total_host_count_top99p, csm_host_pro_oci_host_count_top99p, cspm_aas_host_top99p, cspm_aws_host_top99p, cspm_azure_host_top99p, cspm_container_avg, cspm_container_hwm, cspm_gcp_host_top99p, cspm_host_top99p, custom_historical_ts_avg, custom_live_ts_avg, custom_ts_avg, cws_container_count_avg, cws_fargate_task_avg, cws_host_top99p, data_jobs_monitoring_host_hr_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, eph_infra_host_agent_sum, eph_infra_host_alibaba_sum, eph_infra_host_aws_sum, eph_infra_host_azure_sum, eph_infra_host_basic_infra_basic_agent_sum, eph_infra_host_basic_infra_basic_vsphere_sum, eph_infra_host_basic_sum, eph_infra_host_ent_sum, eph_infra_host_gcp_sum, eph_infra_host_heroku_sum, eph_infra_host_only_aas_sum, eph_infra_host_only_vsphere_sum, eph_infra_host_opentelemetry_apm_sum, eph_infra_host_opentelemetry_sum, eph_infra_host_pro_sum, eph_infra_host_proplus_sum, eph_infra_host_proxmox_sum, error_tracking_apm_error_events_sum, error_tracking_error_events_sum, error_tracking_events_sum, error_tracking_rum_error_events_sum, event_management_correlation_correlated_events_sum, event_management_correlation_correlated_related_events_sum, event_management_correlation_sum, fargate_container_profiler_profiling_fargate_avg, fargate_container_profiler_profiling_fargate_eks_avg, fargate_tasks_count_avg, fargate_tasks_count_hwm, flex_logs_compute_large_avg, flex_logs_compute_medium_avg, flex_logs_compute_small_avg, flex_logs_compute_xlarge_avg, flex_logs_compute_xsmall_avg, flex_logs_starter_avg, flex_logs_starter_storage_index_avg, flex_logs_starter_storage_retention_adjustment_avg, flex_stored_logs_avg, forwarding_events_bytes_sum, gcp_host_top99p, heroku_host_top99p, id, incident_management_monthly_active_users_hwm, incident_management_seats_hwm, indexed_events_count_sum, infra_edge_monitoring_devices_top99p, infra_host_basic_infra_basic_agent_top99p, infra_host_basic_infra_basic_vsphere_top99p, infra_host_basic_top99p, infra_host_top99p, ingested_events_bytes_sum, iot_device_agg_sum, iot_device_top99p_sum, llm_observability_min_spend_sum, llm_observability_sum, mobile_rum_lite_session_count_sum, mobile_rum_session_count_android_sum, mobile_rum_session_count_flutter_sum, mobile_rum_session_count_ios_sum, mobile_rum_session_count_reactnative_sum, mobile_rum_session_count_roku_sum, mobile_rum_session_count_sum, mobile_rum_units_sum, name, ndm_netflow_events_sum, netflow_indexed_events_count_sum, network_device_wireless_top99p, network_path_sum, npm_host_top99p, observability_pipelines_bytes_processed_sum, oci_host_sum, oci_host_top99p, on_call_seat_hwm, online_archive_events_count_sum, opentelemetry_apm_host_top99p, opentelemetry_host_top99p, product_analytics_sum, profiling_aas_count_top99p, profiling_host_top99p, proxmox_host_sum, proxmox_host_top99p, public_id, published_app_hwm, region, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_sum, rum_browser_lite_session_count_sum, rum_browser_replay_session_count_sum, rum_indexed_sessions_sum, rum_ingested_sessions_sum, rum_lite_session_count_sum, rum_mobile_legacy_session_count_android_sum, rum_mobile_legacy_session_count_flutter_sum, rum_mobile_legacy_session_count_ios_sum, rum_mobile_legacy_session_count_reactnative_sum, rum_mobile_legacy_session_count_roku_sum, rum_mobile_lite_session_count_android_sum, rum_mobile_lite_session_count_flutter_sum, rum_mobile_lite_session_count_ios_sum, rum_mobile_lite_session_count_kotlinmultiplatform_sum, rum_mobile_lite_session_count_reactnative_sum, rum_mobile_lite_session_count_roku_sum, rum_mobile_lite_session_count_unity_sum, rum_mobile_replay_session_count_android_sum, rum_mobile_replay_session_count_ios_sum, rum_mobile_replay_session_count_kotlinmultiplatform_sum, rum_mobile_replay_session_count_reactnative_sum, rum_replay_session_count_sum, rum_session_count_sum, rum_session_replay_add_on_sum, rum_total_session_count_sum, rum_units_sum, sca_fargate_count_avg, sca_fargate_count_hwm, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_apm_apm_azure_appservice_instances_avg, serverless_apps_apm_apm_azure_azurefunction_instances_avg, serverless_apps_apm_apm_azure_containerapp_instances_avg, serverless_apps_apm_apm_fargate_ecs_tasks_avg, serverless_apps_apm_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_avg, serverless_apps_apm_excl_fargate_apm_azure_appservice_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_azurefunction_instances_avg, serverless_apps_apm_excl_fargate_apm_azure_containerapp_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudfunction_instances_avg, serverless_apps_apm_excl_fargate_apm_gcp_cloudrun_instances_avg, serverless_apps_apm_excl_fargate_avg, serverless_apps_azure_container_app_instances_avg, serverless_apps_azure_count_avg, serverless_apps_azure_function_app_instances_avg, serverless_apps_azure_web_app_instances_avg, serverless_apps_ecs_avg, serverless_apps_eks_avg, serverless_apps_excl_fargate_avg, serverless_apps_excl_fargate_azure_container_app_instances_avg, serverless_apps_excl_fargate_azure_function_app_instances_avg, serverless_apps_excl_fargate_azure_web_app_instances_avg, serverless_apps_excl_fargate_google_cloud_functions_instances_avg, serverless_apps_excl_fargate_google_cloud_run_instances_avg, serverless_apps_google_cloud_functions_instances_avg, serverless_apps_google_cloud_run_instances_avg, serverless_apps_google_count_avg, serverless_apps_total_count_avg, siem_analyzed_logs_add_on_count_sum, synthetics_browser_check_calls_count_sum, synthetics_check_calls_count_sum, synthetics_mobile_test_runs_sum, synthetics_parallel_testing_max_slots_hwm, trace_search_indexed_events_count_sum, twol_ingested_events_bytes_sum, universal_service_monitoring_host_top99p, vsphere_host_top99p, vuln_management_host_count_top99p, workflow_executions_usage_sum, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v1/models/usage_summary_response.rb b/lib/datadog_api_client/v1/models/usage_summary_response.rb index 04bc402148ac..a13d039e3b29 100644 --- a/lib/datadog_api_client/v1/models/usage_summary_response.rb +++ b/lib/datadog_api_client/v1/models/usage_summary_response.rb @@ -285,6 +285,15 @@ class UsageSummaryResponse # Shows the sum of all ephemeral infrastructure hosts on Azure over all hours in the current month for all organizations. attr_accessor :eph_infra_host_azure_agg_sum + # Shows the sum of all ephemeral infrastructure hosts for Basic tier over all hours in the current month for all organizations. + attr_accessor :eph_infra_host_basic_agg_sum + + # Shows the sum of all ephemeral infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current month for all organizations. + attr_accessor :eph_infra_host_basic_infra_basic_agent_agg_sum + + # Shows the sum of all ephemeral infrastructure hosts for Basic tier on vSphere over all hours in the current month for all organizations. + attr_accessor :eph_infra_host_basic_infra_basic_vsphere_agg_sum + # Shows the sum of all ephemeral infrastructure hosts for Enterprise over all hours in the current month for all organizations. attr_accessor :eph_infra_host_ent_agg_sum @@ -396,6 +405,15 @@ class UsageSummaryResponse # Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current month for all organizations. attr_accessor :infra_edge_monitoring_devices_top99p_sum + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier with the Datadog Agent over all hours in the current month for all organizations. + attr_accessor :infra_host_basic_infra_basic_agent_top99p_sum + + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier on vSphere over all hours in the current month for all organizations. + attr_accessor :infra_host_basic_infra_basic_vsphere_top99p_sum + + # Shows the 99th percentile of all distinct infrastructure hosts for Basic tier over all hours in the current month for all organizations. + attr_accessor :infra_host_basic_top99p_sum + # Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current month for all organizations. attr_accessor :infra_host_top99p_sum @@ -838,6 +856,9 @@ def self.attribute_map :'eph_infra_host_alibaba_agg_sum' => :'eph_infra_host_alibaba_agg_sum', :'eph_infra_host_aws_agg_sum' => :'eph_infra_host_aws_agg_sum', :'eph_infra_host_azure_agg_sum' => :'eph_infra_host_azure_agg_sum', + :'eph_infra_host_basic_agg_sum' => :'eph_infra_host_basic_agg_sum', + :'eph_infra_host_basic_infra_basic_agent_agg_sum' => :'eph_infra_host_basic_infra_basic_agent_agg_sum', + :'eph_infra_host_basic_infra_basic_vsphere_agg_sum' => :'eph_infra_host_basic_infra_basic_vsphere_agg_sum', :'eph_infra_host_ent_agg_sum' => :'eph_infra_host_ent_agg_sum', :'eph_infra_host_gcp_agg_sum' => :'eph_infra_host_gcp_agg_sum', :'eph_infra_host_heroku_agg_sum' => :'eph_infra_host_heroku_agg_sum', @@ -875,6 +896,9 @@ def self.attribute_map :'incident_management_seats_hwm_sum' => :'incident_management_seats_hwm_sum', :'indexed_events_count_agg_sum' => :'indexed_events_count_agg_sum', :'infra_edge_monitoring_devices_top99p_sum' => :'infra_edge_monitoring_devices_top99p_sum', + :'infra_host_basic_infra_basic_agent_top99p_sum' => :'infra_host_basic_infra_basic_agent_top99p_sum', + :'infra_host_basic_infra_basic_vsphere_top99p_sum' => :'infra_host_basic_infra_basic_vsphere_top99p_sum', + :'infra_host_basic_top99p_sum' => :'infra_host_basic_top99p_sum', :'infra_host_top99p_sum' => :'infra_host_top99p_sum', :'ingested_events_bytes_agg_sum' => :'ingested_events_bytes_agg_sum', :'iot_device_agg_sum' => :'iot_device_agg_sum', @@ -1086,6 +1110,9 @@ def self.openapi_types :'eph_infra_host_alibaba_agg_sum' => :'Integer', :'eph_infra_host_aws_agg_sum' => :'Integer', :'eph_infra_host_azure_agg_sum' => :'Integer', + :'eph_infra_host_basic_agg_sum' => :'Integer', + :'eph_infra_host_basic_infra_basic_agent_agg_sum' => :'Integer', + :'eph_infra_host_basic_infra_basic_vsphere_agg_sum' => :'Integer', :'eph_infra_host_ent_agg_sum' => :'Integer', :'eph_infra_host_gcp_agg_sum' => :'Integer', :'eph_infra_host_heroku_agg_sum' => :'Integer', @@ -1123,6 +1150,9 @@ def self.openapi_types :'incident_management_seats_hwm_sum' => :'Integer', :'indexed_events_count_agg_sum' => :'Integer', :'infra_edge_monitoring_devices_top99p_sum' => :'Integer', + :'infra_host_basic_infra_basic_agent_top99p_sum' => :'Integer', + :'infra_host_basic_infra_basic_vsphere_top99p_sum' => :'Integer', + :'infra_host_basic_top99p_sum' => :'Integer', :'infra_host_top99p_sum' => :'Integer', :'ingested_events_bytes_agg_sum' => :'Integer', :'iot_device_agg_sum' => :'Integer', @@ -1612,6 +1642,18 @@ def initialize(attributes = {}) self.eph_infra_host_azure_agg_sum = attributes[:'eph_infra_host_azure_agg_sum'] end + if attributes.key?(:'eph_infra_host_basic_agg_sum') + self.eph_infra_host_basic_agg_sum = attributes[:'eph_infra_host_basic_agg_sum'] + end + + if attributes.key?(:'eph_infra_host_basic_infra_basic_agent_agg_sum') + self.eph_infra_host_basic_infra_basic_agent_agg_sum = attributes[:'eph_infra_host_basic_infra_basic_agent_agg_sum'] + end + + if attributes.key?(:'eph_infra_host_basic_infra_basic_vsphere_agg_sum') + self.eph_infra_host_basic_infra_basic_vsphere_agg_sum = attributes[:'eph_infra_host_basic_infra_basic_vsphere_agg_sum'] + end + if attributes.key?(:'eph_infra_host_ent_agg_sum') self.eph_infra_host_ent_agg_sum = attributes[:'eph_infra_host_ent_agg_sum'] end @@ -1760,6 +1802,18 @@ def initialize(attributes = {}) self.infra_edge_monitoring_devices_top99p_sum = attributes[:'infra_edge_monitoring_devices_top99p_sum'] end + if attributes.key?(:'infra_host_basic_infra_basic_agent_top99p_sum') + self.infra_host_basic_infra_basic_agent_top99p_sum = attributes[:'infra_host_basic_infra_basic_agent_top99p_sum'] + end + + if attributes.key?(:'infra_host_basic_infra_basic_vsphere_top99p_sum') + self.infra_host_basic_infra_basic_vsphere_top99p_sum = attributes[:'infra_host_basic_infra_basic_vsphere_top99p_sum'] + end + + if attributes.key?(:'infra_host_basic_top99p_sum') + self.infra_host_basic_top99p_sum = attributes[:'infra_host_basic_top99p_sum'] + end + if attributes.key?(:'infra_host_top99p_sum') self.infra_host_top99p_sum = attributes[:'infra_host_top99p_sum'] end @@ -2341,6 +2395,9 @@ def ==(o) eph_infra_host_alibaba_agg_sum == o.eph_infra_host_alibaba_agg_sum && eph_infra_host_aws_agg_sum == o.eph_infra_host_aws_agg_sum && eph_infra_host_azure_agg_sum == o.eph_infra_host_azure_agg_sum && + eph_infra_host_basic_agg_sum == o.eph_infra_host_basic_agg_sum && + eph_infra_host_basic_infra_basic_agent_agg_sum == o.eph_infra_host_basic_infra_basic_agent_agg_sum && + eph_infra_host_basic_infra_basic_vsphere_agg_sum == o.eph_infra_host_basic_infra_basic_vsphere_agg_sum && eph_infra_host_ent_agg_sum == o.eph_infra_host_ent_agg_sum && eph_infra_host_gcp_agg_sum == o.eph_infra_host_gcp_agg_sum && eph_infra_host_heroku_agg_sum == o.eph_infra_host_heroku_agg_sum && @@ -2378,6 +2435,9 @@ def ==(o) incident_management_seats_hwm_sum == o.incident_management_seats_hwm_sum && indexed_events_count_agg_sum == o.indexed_events_count_agg_sum && infra_edge_monitoring_devices_top99p_sum == o.infra_edge_monitoring_devices_top99p_sum && + infra_host_basic_infra_basic_agent_top99p_sum == o.infra_host_basic_infra_basic_agent_top99p_sum && + infra_host_basic_infra_basic_vsphere_top99p_sum == o.infra_host_basic_infra_basic_vsphere_top99p_sum && + infra_host_basic_top99p_sum == o.infra_host_basic_top99p_sum && infra_host_top99p_sum == o.infra_host_top99p_sum && ingested_events_bytes_agg_sum == o.ingested_events_bytes_agg_sum && iot_device_agg_sum == o.iot_device_agg_sum && @@ -2501,7 +2561,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_devsecops_host_top99p_sum, apm_enterprise_standalone_hosts_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, apm_pro_standalone_hosts_top99p_sum, appsec_fargate_count_avg_sum, asm_serverless_agg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, bits_ai_investigations_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ccm_anthropic_spend_last_sum, ccm_aws_spend_last_sum, ccm_azure_spend_last_sum, ccm_confluent_spend_last_sum, ccm_databricks_spend_last_sum, ccm_elastic_spend_last_sum, ccm_fastly_spend_last_sum, ccm_gcp_spend_last_sum, ccm_github_spend_last_sum, ccm_mongodb_spend_last_sum, ccm_oci_spend_last_sum, ccm_openai_spend_last_sum, ccm_snowflake_spend_last_sum, ccm_spend_monitored_ent_last_sum, ccm_spend_monitored_pro_last_sum, ccm_twilio_spend_last_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_gcp_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, cloud_cost_management_oci_host_count_avg_sum, cloud_siem_events_agg_sum, code_analysis_sa_committers_hwm_sum, code_analysis_sca_committers_hwm_sum, code_security_host_top99p_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, csm_container_enterprise_compliance_count_agg_sum, csm_container_enterprise_cws_count_agg_sum, csm_container_enterprise_total_count_agg_sum, csm_host_enterprise_aas_host_count_top99p_sum, csm_host_enterprise_aws_host_count_top99p_sum, csm_host_enterprise_azure_host_count_top99p_sum, csm_host_enterprise_compliance_host_count_top99p_sum, csm_host_enterprise_cws_host_count_top99p_sum, csm_host_enterprise_gcp_host_count_top99p_sum, csm_host_enterprise_oci_host_count_top99p_sum, csm_host_enterprise_total_host_count_top99p_sum, csm_host_pro_oci_host_count_top99p_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_historical_ts_sum, custom_live_ts_sum, custom_ts_sum, cws_container_avg_sum, cws_fargate_task_avg_sum, cws_host_top99p_sum, data_jobs_monitoring_host_hr_agg_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, eph_infra_host_agent_agg_sum, eph_infra_host_alibaba_agg_sum, eph_infra_host_aws_agg_sum, eph_infra_host_azure_agg_sum, eph_infra_host_ent_agg_sum, eph_infra_host_gcp_agg_sum, eph_infra_host_heroku_agg_sum, eph_infra_host_only_aas_agg_sum, eph_infra_host_only_vsphere_agg_sum, eph_infra_host_opentelemetry_agg_sum, eph_infra_host_opentelemetry_apm_agg_sum, eph_infra_host_pro_agg_sum, eph_infra_host_proplus_agg_sum, eph_infra_host_proxmox_agg_sum, error_tracking_apm_error_events_agg_sum, error_tracking_error_events_agg_sum, error_tracking_events_agg_sum, error_tracking_rum_error_events_agg_sum, event_management_correlation_agg_sum, event_management_correlation_correlated_events_agg_sum, event_management_correlation_correlated_related_events_agg_sum, fargate_container_profiler_profiling_fargate_avg_sum, fargate_container_profiler_profiling_fargate_eks_avg_sum, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, flex_logs_compute_large_avg_sum, flex_logs_compute_medium_avg_sum, flex_logs_compute_small_avg_sum, flex_logs_compute_xlarge_avg_sum, flex_logs_compute_xsmall_avg_sum, flex_logs_starter_avg_sum, flex_logs_starter_storage_index_avg_sum, flex_logs_starter_storage_retention_adjustment_avg_sum, flex_stored_logs_avg_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, incident_management_seats_hwm_sum, indexed_events_count_agg_sum, infra_edge_monitoring_devices_top99p_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, llm_observability_agg_sum, llm_observability_min_spend_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, ndm_netflow_events_agg_sum, netflow_indexed_events_count_agg_sum, network_device_wireless_top99p_sum, network_path_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, oci_host_agg_sum, oci_host_top99p_sum, on_call_seat_hwm_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, product_analytics_agg_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, proxmox_host_agg_sum, proxmox_host_top99p_sum, published_app_hwm_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_agg_sum, rum_browser_lite_session_count_agg_sum, rum_browser_replay_session_count_agg_sum, rum_indexed_sessions_agg_sum, rum_ingested_sessions_agg_sum, rum_lite_session_count_agg_sum, rum_mobile_legacy_session_count_android_agg_sum, rum_mobile_legacy_session_count_flutter_agg_sum, rum_mobile_legacy_session_count_ios_agg_sum, rum_mobile_legacy_session_count_reactnative_agg_sum, rum_mobile_legacy_session_count_roku_agg_sum, rum_mobile_lite_session_count_android_agg_sum, rum_mobile_lite_session_count_flutter_agg_sum, rum_mobile_lite_session_count_ios_agg_sum, rum_mobile_lite_session_count_kotlinmultiplatform_agg_sum, rum_mobile_lite_session_count_reactnative_agg_sum, rum_mobile_lite_session_count_roku_agg_sum, rum_mobile_lite_session_count_unity_agg_sum, rum_mobile_replay_session_count_android_agg_sum, rum_mobile_replay_session_count_ios_agg_sum, rum_mobile_replay_session_count_kotlinmultiplatform_agg_sum, rum_mobile_replay_session_count_reactnative_agg_sum, rum_replay_session_count_agg_sum, rum_session_count_agg_sum, rum_session_replay_add_on_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sca_fargate_count_avg_sum, sca_fargate_count_hwm_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_apm_apm_azure_appservice_instances_avg_sum, serverless_apps_apm_apm_azure_azurefunction_instances_avg_sum, serverless_apps_apm_apm_azure_containerapp_instances_avg_sum, serverless_apps_apm_apm_fargate_ecs_tasks_avg_sum, serverless_apps_apm_apm_gcp_cloudfunction_instances_avg_sum, serverless_apps_apm_apm_gcp_cloudrun_instances_avg_sum, serverless_apps_apm_avg_sum, serverless_apps_apm_excl_fargate_apm_azure_appservice_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_azure_azurefunction_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_azure_containerapp_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_gcp_cloudfunction_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_gcp_cloudrun_instances_avg_sum, serverless_apps_apm_excl_fargate_avg_sum, serverless_apps_azure_container_app_instances_avg_sum, serverless_apps_azure_count_avg_sum, serverless_apps_azure_function_app_instances_avg_sum, serverless_apps_azure_web_app_instances_avg_sum, serverless_apps_ecs_avg_sum, serverless_apps_eks_avg_sum, serverless_apps_excl_fargate_avg_sum, serverless_apps_excl_fargate_azure_container_app_instances_avg_sum, serverless_apps_excl_fargate_azure_function_app_instances_avg_sum, serverless_apps_excl_fargate_azure_web_app_instances_avg_sum, serverless_apps_excl_fargate_google_cloud_functions_instances_avg_sum, serverless_apps_excl_fargate_google_cloud_run_instances_avg_sum, serverless_apps_google_cloud_functions_instances_avg_sum, serverless_apps_google_cloud_run_instances_avg_sum, serverless_apps_google_count_avg_sum, serverless_apps_total_count_avg_sum, siem_analyzed_logs_add_on_count_agg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum, additional_properties].hash + [agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_devsecops_host_top99p_sum, apm_enterprise_standalone_hosts_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, apm_pro_standalone_hosts_top99p_sum, appsec_fargate_count_avg_sum, asm_serverless_agg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, bits_ai_investigations_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ccm_anthropic_spend_last_sum, ccm_aws_spend_last_sum, ccm_azure_spend_last_sum, ccm_confluent_spend_last_sum, ccm_databricks_spend_last_sum, ccm_elastic_spend_last_sum, ccm_fastly_spend_last_sum, ccm_gcp_spend_last_sum, ccm_github_spend_last_sum, ccm_mongodb_spend_last_sum, ccm_oci_spend_last_sum, ccm_openai_spend_last_sum, ccm_snowflake_spend_last_sum, ccm_spend_monitored_ent_last_sum, ccm_spend_monitored_pro_last_sum, ccm_twilio_spend_last_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_gcp_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, cloud_cost_management_oci_host_count_avg_sum, cloud_siem_events_agg_sum, code_analysis_sa_committers_hwm_sum, code_analysis_sca_committers_hwm_sum, code_security_host_top99p_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, csm_container_enterprise_compliance_count_agg_sum, csm_container_enterprise_cws_count_agg_sum, csm_container_enterprise_total_count_agg_sum, csm_host_enterprise_aas_host_count_top99p_sum, csm_host_enterprise_aws_host_count_top99p_sum, csm_host_enterprise_azure_host_count_top99p_sum, csm_host_enterprise_compliance_host_count_top99p_sum, csm_host_enterprise_cws_host_count_top99p_sum, csm_host_enterprise_gcp_host_count_top99p_sum, csm_host_enterprise_oci_host_count_top99p_sum, csm_host_enterprise_total_host_count_top99p_sum, csm_host_pro_oci_host_count_top99p_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_historical_ts_sum, custom_live_ts_sum, custom_ts_sum, cws_container_avg_sum, cws_fargate_task_avg_sum, cws_host_top99p_sum, data_jobs_monitoring_host_hr_agg_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, eph_infra_host_agent_agg_sum, eph_infra_host_alibaba_agg_sum, eph_infra_host_aws_agg_sum, eph_infra_host_azure_agg_sum, eph_infra_host_basic_agg_sum, eph_infra_host_basic_infra_basic_agent_agg_sum, eph_infra_host_basic_infra_basic_vsphere_agg_sum, eph_infra_host_ent_agg_sum, eph_infra_host_gcp_agg_sum, eph_infra_host_heroku_agg_sum, eph_infra_host_only_aas_agg_sum, eph_infra_host_only_vsphere_agg_sum, eph_infra_host_opentelemetry_agg_sum, eph_infra_host_opentelemetry_apm_agg_sum, eph_infra_host_pro_agg_sum, eph_infra_host_proplus_agg_sum, eph_infra_host_proxmox_agg_sum, error_tracking_apm_error_events_agg_sum, error_tracking_error_events_agg_sum, error_tracking_events_agg_sum, error_tracking_rum_error_events_agg_sum, event_management_correlation_agg_sum, event_management_correlation_correlated_events_agg_sum, event_management_correlation_correlated_related_events_agg_sum, fargate_container_profiler_profiling_fargate_avg_sum, fargate_container_profiler_profiling_fargate_eks_avg_sum, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, flex_logs_compute_large_avg_sum, flex_logs_compute_medium_avg_sum, flex_logs_compute_small_avg_sum, flex_logs_compute_xlarge_avg_sum, flex_logs_compute_xsmall_avg_sum, flex_logs_starter_avg_sum, flex_logs_starter_storage_index_avg_sum, flex_logs_starter_storage_retention_adjustment_avg_sum, flex_stored_logs_avg_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, incident_management_seats_hwm_sum, indexed_events_count_agg_sum, infra_edge_monitoring_devices_top99p_sum, infra_host_basic_infra_basic_agent_top99p_sum, infra_host_basic_infra_basic_vsphere_top99p_sum, infra_host_basic_top99p_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, llm_observability_agg_sum, llm_observability_min_spend_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, ndm_netflow_events_agg_sum, netflow_indexed_events_count_agg_sum, network_device_wireless_top99p_sum, network_path_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, oci_host_agg_sum, oci_host_top99p_sum, on_call_seat_hwm_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, product_analytics_agg_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, proxmox_host_agg_sum, proxmox_host_top99p_sum, published_app_hwm_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_browser_legacy_session_count_agg_sum, rum_browser_lite_session_count_agg_sum, rum_browser_replay_session_count_agg_sum, rum_indexed_sessions_agg_sum, rum_ingested_sessions_agg_sum, rum_lite_session_count_agg_sum, rum_mobile_legacy_session_count_android_agg_sum, rum_mobile_legacy_session_count_flutter_agg_sum, rum_mobile_legacy_session_count_ios_agg_sum, rum_mobile_legacy_session_count_reactnative_agg_sum, rum_mobile_legacy_session_count_roku_agg_sum, rum_mobile_lite_session_count_android_agg_sum, rum_mobile_lite_session_count_flutter_agg_sum, rum_mobile_lite_session_count_ios_agg_sum, rum_mobile_lite_session_count_kotlinmultiplatform_agg_sum, rum_mobile_lite_session_count_reactnative_agg_sum, rum_mobile_lite_session_count_roku_agg_sum, rum_mobile_lite_session_count_unity_agg_sum, rum_mobile_replay_session_count_android_agg_sum, rum_mobile_replay_session_count_ios_agg_sum, rum_mobile_replay_session_count_kotlinmultiplatform_agg_sum, rum_mobile_replay_session_count_reactnative_agg_sum, rum_replay_session_count_agg_sum, rum_session_count_agg_sum, rum_session_replay_add_on_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sca_fargate_count_avg_sum, sca_fargate_count_hwm_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_apm_apm_azure_appservice_instances_avg_sum, serverless_apps_apm_apm_azure_azurefunction_instances_avg_sum, serverless_apps_apm_apm_azure_containerapp_instances_avg_sum, serverless_apps_apm_apm_fargate_ecs_tasks_avg_sum, serverless_apps_apm_apm_gcp_cloudfunction_instances_avg_sum, serverless_apps_apm_apm_gcp_cloudrun_instances_avg_sum, serverless_apps_apm_avg_sum, serverless_apps_apm_excl_fargate_apm_azure_appservice_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_azure_azurefunction_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_azure_containerapp_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_gcp_cloudfunction_instances_avg_sum, serverless_apps_apm_excl_fargate_apm_gcp_cloudrun_instances_avg_sum, serverless_apps_apm_excl_fargate_avg_sum, serverless_apps_azure_container_app_instances_avg_sum, serverless_apps_azure_count_avg_sum, serverless_apps_azure_function_app_instances_avg_sum, serverless_apps_azure_web_app_instances_avg_sum, serverless_apps_ecs_avg_sum, serverless_apps_eks_avg_sum, serverless_apps_excl_fargate_avg_sum, serverless_apps_excl_fargate_azure_container_app_instances_avg_sum, serverless_apps_excl_fargate_azure_function_app_instances_avg_sum, serverless_apps_excl_fargate_azure_web_app_instances_avg_sum, serverless_apps_excl_fargate_google_cloud_functions_instances_avg_sum, serverless_apps_excl_fargate_google_cloud_run_instances_avg_sum, serverless_apps_google_cloud_functions_instances_avg_sum, serverless_apps_google_cloud_run_instances_avg_sum, serverless_apps_google_count_avg_sum, serverless_apps_total_count_avg_sum, siem_analyzed_logs_add_on_count_agg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/api/synthetics_api.rb b/lib/datadog_api_client/v2/api/synthetics_api.rb index 3c5d5fb35eb4..fc1f3e50d5ef 100644 --- a/lib/datadog_api_client/v2/api/synthetics_api.rb +++ b/lib/datadog_api_client/v2/api/synthetics_api.rb @@ -96,6 +96,76 @@ def abort_test_file_multipart_upload_with_http_info(public_id, body, opts = {}) return data, status_code, headers end + # Add a test to a Synthetics downtime. + # + # @see #add_test_to_synthetics_downtime_with_http_info + def add_test_to_synthetics_downtime(downtime_id, test_id, opts = {}) + data, _status_code, _headers = add_test_to_synthetics_downtime_with_http_info(downtime_id, test_id, opts) + data + end + + # Add a test to a Synthetics downtime. + # + # Associate a Synthetics test with a downtime. + # + # @param downtime_id [String] The ID of the downtime. + # @param test_id [String] The public ID of the Synthetics test to associate with the downtime. + # @param opts [Hash] the optional parameters + # @return [Array<(SyntheticsDowntimeResponse, Integer, Hash)>] SyntheticsDowntimeResponse data, response status code and response headers + def add_test_to_synthetics_downtime_with_http_info(downtime_id, test_id, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.add_test_to_synthetics_downtime ...' + end + # verify the required parameter 'downtime_id' is set + if @api_client.config.client_side_validation && downtime_id.nil? + fail ArgumentError, "Missing the required parameter 'downtime_id' when calling SyntheticsAPI.add_test_to_synthetics_downtime" + end + # verify the required parameter 'test_id' is set + if @api_client.config.client_side_validation && test_id.nil? + fail ArgumentError, "Missing the required parameter 'test_id' when calling SyntheticsAPI.add_test_to_synthetics_downtime" + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes/{downtime_id}/tests/{test_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')).sub('{test_id}', CGI.escape(test_id.to_s).gsub('%2F', '/')) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :add_test_to_synthetics_downtime, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#add_test_to_synthetics_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Complete a multipart upload of a test file. # # @see #complete_test_file_multipart_upload_with_http_info @@ -169,6 +239,73 @@ def complete_test_file_multipart_upload_with_http_info(public_id, body, opts = { return data, status_code, headers end + # Create a Synthetics downtime. + # + # @see #create_synthetics_downtime_with_http_info + def create_synthetics_downtime(body, opts = {}) + data, _status_code, _headers = create_synthetics_downtime_with_http_info(body, opts) + data + end + + # Create a Synthetics downtime. + # + # Create a new Synthetics downtime. + # + # @param body [SyntheticsDowntimeRequest] + # @param opts [Hash] the optional parameters + # @return [Array<(SyntheticsDowntimeResponse, Integer, Hash)>] SyntheticsDowntimeResponse data, response status code and response headers + def create_synthetics_downtime_with_http_info(body, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.create_synthetics_downtime ...' + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.create_synthetics_downtime" + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes' + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(body) + + # return_type + return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :create_synthetics_downtime, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#create_synthetics_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a Network Path test. # # @see #create_synthetics_network_test_with_http_info @@ -297,6 +434,71 @@ def create_synthetics_suite_with_http_info(body, opts = {}) return data, status_code, headers end + # Delete a Synthetics downtime. + # + # @see #delete_synthetics_downtime_with_http_info + def delete_synthetics_downtime(downtime_id, opts = {}) + delete_synthetics_downtime_with_http_info(downtime_id, opts) + nil + end + + # Delete a Synthetics downtime. + # + # Delete a Synthetics downtime by its ID. + # + # @param downtime_id [String] The ID of the downtime to delete. + # @param opts [Hash] the optional parameters + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers + def delete_synthetics_downtime_with_http_info(downtime_id, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.delete_synthetics_downtime ...' + end + # verify the required parameter 'downtime_id' is set + if @api_client.config.client_side_validation && downtime_id.nil? + fail ArgumentError, "Missing the required parameter 'downtime_id' when calling SyntheticsAPI.delete_synthetics_downtime" + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :delete_synthetics_downtime, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#delete_synthetics_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Bulk delete suites. # # @see #delete_synthetics_suites_with_http_info @@ -760,6 +962,71 @@ def get_synthetics_browser_test_result_with_http_info(public_id, result_id, opts return data, status_code, headers end + # Get a Synthetics downtime. + # + # @see #get_synthetics_downtime_with_http_info + def get_synthetics_downtime(downtime_id, opts = {}) + data, _status_code, _headers = get_synthetics_downtime_with_http_info(downtime_id, opts) + data + end + + # Get a Synthetics downtime. + # + # Get a Synthetics downtime by its ID. + # + # @param downtime_id [String] The ID of the downtime to retrieve. + # @param opts [Hash] the optional parameters + # @return [Array<(SyntheticsDowntimeResponse, Integer, Hash)>] SyntheticsDowntimeResponse data, response status code and response headers + def get_synthetics_downtime_with_http_info(downtime_id, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.get_synthetics_downtime ...' + end + # verify the required parameter 'downtime_id' is set + if @api_client.config.client_side_validation && downtime_id.nil? + fail ArgumentError, "Missing the required parameter 'downtime_id' when calling SyntheticsAPI.get_synthetics_downtime" + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :get_synthetics_downtime, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#get_synthetics_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get a fast test result. # # @see #get_synthetics_fast_test_result_with_http_info @@ -1391,6 +1658,70 @@ def list_synthetics_browser_test_latest_results_with_http_info(public_id, opts = return data, status_code, headers end + # List Synthetics downtimes. + # + # @see #list_synthetics_downtimes_with_http_info + def list_synthetics_downtimes(opts = {}) + data, _status_code, _headers = list_synthetics_downtimes_with_http_info(opts) + data + end + + # List Synthetics downtimes. + # + # Get a list of all Synthetics downtimes for your organization. + # + # @param opts [Hash] the optional parameters + # @option opts [String] :filter_test_ids Comma-separated list of Synthetics test public IDs to filter downtimes by. + # @option opts [String] :filter_active If set to `true`, return only downtimes that are currently active. + # @return [Array<(SyntheticsDowntimesResponse, Integer, Hash)>] SyntheticsDowntimesResponse data, response status code and response headers + def list_synthetics_downtimes_with_http_info(opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.list_synthetics_downtimes ...' + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes' + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'filter[test_ids]'] = opts[:'filter_test_ids'] if !opts[:'filter_test_ids'].nil? + query_params[:'filter[active]'] = opts[:'filter_active'] if !opts[:'filter_active'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'SyntheticsDowntimesResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :list_synthetics_downtimes, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#list_synthetics_downtimes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get a test's latest results. # # @see #list_synthetics_test_latest_results_with_http_info @@ -1773,6 +2104,76 @@ def poll_synthetics_test_results_with_http_info(result_ids, opts = {}) return data, status_code, headers end + # Remove a test from a Synthetics downtime. + # + # @see #remove_test_from_synthetics_downtime_with_http_info + def remove_test_from_synthetics_downtime(downtime_id, test_id, opts = {}) + data, _status_code, _headers = remove_test_from_synthetics_downtime_with_http_info(downtime_id, test_id, opts) + data + end + + # Remove a test from a Synthetics downtime. + # + # Disassociate a Synthetics test from a downtime. + # + # @param downtime_id [String] The ID of the downtime. + # @param test_id [String] The public ID of the Synthetics test to disassociate from the downtime. + # @param opts [Hash] the optional parameters + # @return [Array<(SyntheticsDowntimeResponse, Integer, Hash)>] SyntheticsDowntimeResponse data, response status code and response headers + def remove_test_from_synthetics_downtime_with_http_info(downtime_id, test_id, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.remove_test_from_synthetics_downtime ...' + end + # verify the required parameter 'downtime_id' is set + if @api_client.config.client_side_validation && downtime_id.nil? + fail ArgumentError, "Missing the required parameter 'downtime_id' when calling SyntheticsAPI.remove_test_from_synthetics_downtime" + end + # verify the required parameter 'test_id' is set + if @api_client.config.client_side_validation && test_id.nil? + fail ArgumentError, "Missing the required parameter 'test_id' when calling SyntheticsAPI.remove_test_from_synthetics_downtime" + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes/{downtime_id}/tests/{test_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')).sub('{test_id}', CGI.escape(test_id.to_s).gsub('%2F', '/')) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :remove_test_from_synthetics_downtime, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#remove_test_from_synthetics_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Search test suites. # # @see #search_suites_with_http_info @@ -1910,6 +2311,78 @@ def set_on_demand_concurrency_cap_with_http_info(body, opts = {}) return data, status_code, headers end + # Update a Synthetics downtime. + # + # @see #update_synthetics_downtime_with_http_info + def update_synthetics_downtime(downtime_id, body, opts = {}) + data, _status_code, _headers = update_synthetics_downtime_with_http_info(downtime_id, body, opts) + data + end + + # Update a Synthetics downtime. + # + # Update a Synthetics downtime by its ID. + # + # @param downtime_id [String] The ID of the downtime to update. + # @param body [SyntheticsDowntimeRequest] + # @param opts [Hash] the optional parameters + # @return [Array<(SyntheticsDowntimeResponse, Integer, Hash)>] SyntheticsDowntimeResponse data, response status code and response headers + def update_synthetics_downtime_with_http_info(downtime_id, body, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: SyntheticsAPI.update_synthetics_downtime ...' + end + # verify the required parameter 'downtime_id' is set + if @api_client.config.client_side_validation && downtime_id.nil? + fail ArgumentError, "Missing the required parameter 'downtime_id' when calling SyntheticsAPI.update_synthetics_downtime" + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.update_synthetics_downtime" + end + # resource path + local_var_path = '/api/v2/synthetics/downtimes/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/')) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(body) + + # return_type + return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + + new_options = opts.merge( + :operation => :update_synthetics_downtime, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SyntheticsAPI#update_synthetics_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Edit a Network Path test. # # @see #update_synthetics_network_test_with_http_info diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_data.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_data.rb new file mode 100644 index 000000000000..c0dbe42dad89 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_data.rb @@ -0,0 +1,165 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # A Synthetics downtime object. + class SyntheticsDowntimeData + include BaseGenericModel + + # Attributes of a Synthetics downtime response object. + attr_reader :attributes + + # The unique identifier of the downtime. + attr_reader :id + + # The resource type for a Synthetics downtime. + attr_reader :type + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'attributes' => :'attributes', + :'id' => :'id', + :'type' => :'type' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'attributes' => :'SyntheticsDowntimeDataAttributesResponse', + :'id' => :'String', + :'type' => :'SyntheticsDowntimeResourceType' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeData` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @attributes.nil? + return false if @id.nil? + return false if @type.nil? + true + end + + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + # @!visibility private + def attributes=(attributes) + if attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + # @!visibility private + def id=(id) + if id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + # @!visibility private + def type=(type) + if type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + attributes == o.attributes && + id == o.id && + type == o.type && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [attributes, id, type, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_request.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_request.rb new file mode 100644 index 000000000000..449ba7075bf2 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_request.rb @@ -0,0 +1,212 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Attributes for creating or updating a Synthetics downtime. + class SyntheticsDowntimeDataAttributesRequest + include BaseGenericModel + + # An optional description of the downtime. + attr_accessor :description + + # Whether the downtime is enabled. + attr_reader :is_enabled + + # The name of the downtime. + attr_reader :name + + # List of tags associated with a Synthetics downtime. + attr_accessor :tags + + # List of Synthetics test public IDs associated with a downtime. + attr_reader :test_ids + + # List of time slots for a Synthetics downtime create or update request. + attr_reader :time_slots + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'description' => :'description', + :'is_enabled' => :'isEnabled', + :'name' => :'name', + :'tags' => :'tags', + :'test_ids' => :'testIds', + :'time_slots' => :'timeSlots' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'description' => :'String', + :'is_enabled' => :'Boolean', + :'name' => :'String', + :'tags' => :'Array', + :'test_ids' => :'Array', + :'time_slots' => :'Array' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeDataAttributesRequest` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'is_enabled') + self.is_enabled = attributes[:'is_enabled'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'tags') + if (value = attributes[:'tags']).is_a?(Array) + self.tags = value + end + end + + if attributes.key?(:'test_ids') + if (value = attributes[:'test_ids']).is_a?(Array) + self.test_ids = value + end + end + + if attributes.key?(:'time_slots') + if (value = attributes[:'time_slots']).is_a?(Array) + self.time_slots = value + end + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @is_enabled.nil? + return false if @name.nil? + return false if @test_ids.nil? + return false if @time_slots.nil? + true + end + + # Custom attribute writer method with validation + # @param is_enabled [Object] Object to be assigned + # @!visibility private + def is_enabled=(is_enabled) + if is_enabled.nil? + fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' + end + @is_enabled = is_enabled + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + # @!visibility private + def name=(name) + if name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param test_ids [Object] Object to be assigned + # @!visibility private + def test_ids=(test_ids) + if test_ids.nil? + fail ArgumentError, 'invalid value for "test_ids", test_ids cannot be nil.' + end + @test_ids = test_ids + end + + # Custom attribute writer method with validation + # @param time_slots [Object] Object to be assigned + # @!visibility private + def time_slots=(time_slots) + if time_slots.nil? + fail ArgumentError, 'invalid value for "time_slots", time_slots cannot be nil.' + end + @time_slots = time_slots + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + description == o.description && + is_enabled == o.is_enabled && + name == o.name && + tags == o.tags && + test_ids == o.test_ids && + time_slots == o.time_slots && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [description, is_enabled, name, tags, test_ids, time_slots, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_response.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_response.rb new file mode 100644 index 000000000000..aac54a03608e --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_data_attributes_response.rb @@ -0,0 +1,360 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Attributes of a Synthetics downtime response object. + class SyntheticsDowntimeDataAttributesResponse + include BaseGenericModel + + # The timestamp when the downtime was created. + attr_reader :created_at + + # The UUID of the user who created the downtime. + attr_reader :created_by + + # The display name of the user who created the downtime. + attr_reader :created_by_name + + # The description of the downtime. + attr_reader :description + + # Whether the downtime is enabled. + attr_reader :is_enabled + + # The name of the downtime. + attr_reader :name + + # List of tags associated with a Synthetics downtime. + attr_reader :tags + + # List of Synthetics test public IDs associated with a downtime. + attr_reader :test_ids + + # List of time slots in a Synthetics downtime response. + attr_reader :time_slots + + # The timestamp when the downtime was last updated. + attr_reader :updated_at + + # The UUID of the user who last updated the downtime. + attr_reader :updated_by + + # The display name of the user who last updated the downtime. + attr_reader :updated_by_name + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'created_at' => :'createdAt', + :'created_by' => :'createdBy', + :'created_by_name' => :'createdByName', + :'description' => :'description', + :'is_enabled' => :'isEnabled', + :'name' => :'name', + :'tags' => :'tags', + :'test_ids' => :'testIds', + :'time_slots' => :'timeSlots', + :'updated_at' => :'updatedAt', + :'updated_by' => :'updatedBy', + :'updated_by_name' => :'updatedByName' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'created_at' => :'Time', + :'created_by' => :'String', + :'created_by_name' => :'String', + :'description' => :'String', + :'is_enabled' => :'Boolean', + :'name' => :'String', + :'tags' => :'Array', + :'test_ids' => :'Array', + :'time_slots' => :'Array', + :'updated_at' => :'Time', + :'updated_by' => :'String', + :'updated_by_name' => :'String' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeDataAttributesResponse` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.key?(:'created_by') + self.created_by = attributes[:'created_by'] + end + + if attributes.key?(:'created_by_name') + self.created_by_name = attributes[:'created_by_name'] + end + + if attributes.key?(:'description') + self.description = attributes[:'description'] + end + + if attributes.key?(:'is_enabled') + self.is_enabled = attributes[:'is_enabled'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'tags') + if (value = attributes[:'tags']).is_a?(Array) + self.tags = value + end + end + + if attributes.key?(:'test_ids') + if (value = attributes[:'test_ids']).is_a?(Array) + self.test_ids = value + end + end + + if attributes.key?(:'time_slots') + if (value = attributes[:'time_slots']).is_a?(Array) + self.time_slots = value + end + end + + if attributes.key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + end + + if attributes.key?(:'updated_by') + self.updated_by = attributes[:'updated_by'] + end + + if attributes.key?(:'updated_by_name') + self.updated_by_name = attributes[:'updated_by_name'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @created_at.nil? + return false if @created_by.nil? + return false if @created_by_name.nil? + return false if @description.nil? + return false if @is_enabled.nil? + return false if @name.nil? + return false if @tags.nil? + return false if @test_ids.nil? + return false if @time_slots.nil? + return false if @updated_at.nil? + return false if @updated_by.nil? + return false if @updated_by_name.nil? + true + end + + # Custom attribute writer method with validation + # @param created_at [Object] Object to be assigned + # @!visibility private + def created_at=(created_at) + if created_at.nil? + fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.' + end + @created_at = created_at + end + + # Custom attribute writer method with validation + # @param created_by [Object] Object to be assigned + # @!visibility private + def created_by=(created_by) + if created_by.nil? + fail ArgumentError, 'invalid value for "created_by", created_by cannot be nil.' + end + @created_by = created_by + end + + # Custom attribute writer method with validation + # @param created_by_name [Object] Object to be assigned + # @!visibility private + def created_by_name=(created_by_name) + if created_by_name.nil? + fail ArgumentError, 'invalid value for "created_by_name", created_by_name cannot be nil.' + end + @created_by_name = created_by_name + end + + # Custom attribute writer method with validation + # @param description [Object] Object to be assigned + # @!visibility private + def description=(description) + if description.nil? + fail ArgumentError, 'invalid value for "description", description cannot be nil.' + end + @description = description + end + + # Custom attribute writer method with validation + # @param is_enabled [Object] Object to be assigned + # @!visibility private + def is_enabled=(is_enabled) + if is_enabled.nil? + fail ArgumentError, 'invalid value for "is_enabled", is_enabled cannot be nil.' + end + @is_enabled = is_enabled + end + + # Custom attribute writer method with validation + # @param name [Object] Object to be assigned + # @!visibility private + def name=(name) + if name.nil? + fail ArgumentError, 'invalid value for "name", name cannot be nil.' + end + @name = name + end + + # Custom attribute writer method with validation + # @param tags [Object] Object to be assigned + # @!visibility private + def tags=(tags) + if tags.nil? + fail ArgumentError, 'invalid value for "tags", tags cannot be nil.' + end + @tags = tags + end + + # Custom attribute writer method with validation + # @param test_ids [Object] Object to be assigned + # @!visibility private + def test_ids=(test_ids) + if test_ids.nil? + fail ArgumentError, 'invalid value for "test_ids", test_ids cannot be nil.' + end + @test_ids = test_ids + end + + # Custom attribute writer method with validation + # @param time_slots [Object] Object to be assigned + # @!visibility private + def time_slots=(time_slots) + if time_slots.nil? + fail ArgumentError, 'invalid value for "time_slots", time_slots cannot be nil.' + end + @time_slots = time_slots + end + + # Custom attribute writer method with validation + # @param updated_at [Object] Object to be assigned + # @!visibility private + def updated_at=(updated_at) + if updated_at.nil? + fail ArgumentError, 'invalid value for "updated_at", updated_at cannot be nil.' + end + @updated_at = updated_at + end + + # Custom attribute writer method with validation + # @param updated_by [Object] Object to be assigned + # @!visibility private + def updated_by=(updated_by) + if updated_by.nil? + fail ArgumentError, 'invalid value for "updated_by", updated_by cannot be nil.' + end + @updated_by = updated_by + end + + # Custom attribute writer method with validation + # @param updated_by_name [Object] Object to be assigned + # @!visibility private + def updated_by_name=(updated_by_name) + if updated_by_name.nil? + fail ArgumentError, 'invalid value for "updated_by_name", updated_by_name cannot be nil.' + end + @updated_by_name = updated_by_name + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + created_at == o.created_at && + created_by == o.created_by && + created_by_name == o.created_by_name && + description == o.description && + is_enabled == o.is_enabled && + name == o.name && + tags == o.tags && + test_ids == o.test_ids && + time_slots == o.time_slots && + updated_at == o.updated_at && + updated_by == o.updated_by && + updated_by_name == o.updated_by_name && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [created_at, created_by, created_by_name, description, is_enabled, name, tags, test_ids, time_slots, updated_at, updated_by, updated_by_name, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_data_request.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_data_request.rb new file mode 100644 index 000000000000..0c45fe3e8e59 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_data_request.rb @@ -0,0 +1,144 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The data object for a Synthetics downtime create or update request. + class SyntheticsDowntimeDataRequest + include BaseGenericModel + + # Attributes for creating or updating a Synthetics downtime. + attr_reader :attributes + + # The resource type for a Synthetics downtime. + attr_reader :type + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'attributes' => :'attributes', + :'type' => :'type' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'attributes' => :'SyntheticsDowntimeDataAttributesRequest', + :'type' => :'SyntheticsDowntimeResourceType' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeDataRequest` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @attributes.nil? + return false if @type.nil? + true + end + + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + # @!visibility private + def attributes=(attributes) + if attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + # @!visibility private + def type=(type) + if type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + attributes == o.attributes && + type == o.type && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [attributes, type, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_frequency.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_frequency.rb new file mode 100644 index 000000000000..db8782e08454 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_frequency.rb @@ -0,0 +1,29 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The recurrence frequency of a Synthetics downtime time slot. + class SyntheticsDowntimeFrequency + include BaseEnumModel + + DAILY = "DAILY".freeze + WEEKLY = "WEEKLY".freeze + MONTHLY = "MONTHLY".freeze + YEARLY = "YEARLY".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_request.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_request.rb new file mode 100644 index 000000000000..ad0b621c4873 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_request.rb @@ -0,0 +1,123 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Request body for creating or updating a Synthetics downtime. + class SyntheticsDowntimeRequest + include BaseGenericModel + + # The data object for a Synthetics downtime create or update request. + attr_reader :data + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'data' => :'data' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'data' => :'SyntheticsDowntimeDataRequest' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeRequest` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'data') + self.data = attributes[:'data'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @data.nil? + true + end + + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + # @!visibility private + def data=(data) + if data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [data, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_resource_type.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_resource_type.rb new file mode 100644 index 000000000000..83772770e397 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_resource_type.rb @@ -0,0 +1,26 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # The resource type for a Synthetics downtime. + class SyntheticsDowntimeResourceType + include BaseEnumModel + + DOWNTIME = "downtime".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_response.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_response.rb new file mode 100644 index 000000000000..ce4b9dbd9473 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_response.rb @@ -0,0 +1,123 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Response containing a single Synthetics downtime. + class SyntheticsDowntimeResponse + include BaseGenericModel + + # A Synthetics downtime object. + attr_reader :data + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'data' => :'data' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'data' => :'SyntheticsDowntimeData' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeResponse` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'data') + self.data = attributes[:'data'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @data.nil? + true + end + + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + # @!visibility private + def data=(data) + if data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [data, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_date.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_date.rb new file mode 100644 index 000000000000..8ad7a02961c3 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_date.rb @@ -0,0 +1,207 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # A specific date and time used to define the start or end of a Synthetics downtime time slot. + class SyntheticsDowntimeTimeSlotDate + include BaseGenericModel + + # The day component of the date (1-31). + attr_reader :day + + # The hour component of the time (0-23). + attr_reader :hour + + # The minute component of the time (0-59). + attr_reader :minute + + # The month component of the date (1-12). + attr_reader :month + + # The year component of the date. + attr_reader :year + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'day' => :'day', + :'hour' => :'hour', + :'minute' => :'minute', + :'month' => :'month', + :'year' => :'year' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'day' => :'Integer', + :'hour' => :'Integer', + :'minute' => :'Integer', + :'month' => :'Integer', + :'year' => :'Integer' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotDate` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'day') + self.day = attributes[:'day'] + end + + if attributes.key?(:'hour') + self.hour = attributes[:'hour'] + end + + if attributes.key?(:'minute') + self.minute = attributes[:'minute'] + end + + if attributes.key?(:'month') + self.month = attributes[:'month'] + end + + if attributes.key?(:'year') + self.year = attributes[:'year'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @day.nil? + return false if @hour.nil? + return false if @minute.nil? + return false if @month.nil? + return false if @year.nil? + true + end + + # Custom attribute writer method with validation + # @param day [Object] Object to be assigned + # @!visibility private + def day=(day) + if day.nil? + fail ArgumentError, 'invalid value for "day", day cannot be nil.' + end + @day = day + end + + # Custom attribute writer method with validation + # @param hour [Object] Object to be assigned + # @!visibility private + def hour=(hour) + if hour.nil? + fail ArgumentError, 'invalid value for "hour", hour cannot be nil.' + end + @hour = hour + end + + # Custom attribute writer method with validation + # @param minute [Object] Object to be assigned + # @!visibility private + def minute=(minute) + if minute.nil? + fail ArgumentError, 'invalid value for "minute", minute cannot be nil.' + end + @minute = minute + end + + # Custom attribute writer method with validation + # @param month [Object] Object to be assigned + # @!visibility private + def month=(month) + if month.nil? + fail ArgumentError, 'invalid value for "month", month cannot be nil.' + end + @month = month + end + + # Custom attribute writer method with validation + # @param year [Object] Object to be assigned + # @!visibility private + def year=(year) + if year.nil? + fail ArgumentError, 'invalid value for "year", year cannot be nil.' + end + @year = year + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + day == o.day && + hour == o.hour && + minute == o.minute && + month == o.month && + year == o.year && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [day, hour, minute, month, year, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_request.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_request.rb new file mode 100644 index 000000000000..049598c83b68 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_request.rb @@ -0,0 +1,155 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Recurrence settings for a Synthetics downtime time slot. + class SyntheticsDowntimeTimeSlotRecurrenceRequest + include BaseGenericModel + + # A specific date and time used to define the start or end of a Synthetics downtime time slot. + attr_accessor :_end + + # The recurrence frequency of a Synthetics downtime time slot. + attr_reader :frequency + + # The interval between recurrences, relative to the frequency. + attr_accessor :interval + + # Days of the week for a Synthetics downtime recurrence schedule. + attr_accessor :weekdays + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'_end' => :'end', + :'frequency' => :'frequency', + :'interval' => :'interval', + :'weekdays' => :'weekdays' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'_end' => :'SyntheticsDowntimeTimeSlotDate', + :'frequency' => :'SyntheticsDowntimeFrequency', + :'interval' => :'Integer', + :'weekdays' => :'Array' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotRecurrenceRequest` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'_end') + self._end = attributes[:'_end'] + end + + if attributes.key?(:'frequency') + self.frequency = attributes[:'frequency'] + end + + if attributes.key?(:'interval') + self.interval = attributes[:'interval'] + end + + if attributes.key?(:'weekdays') + if (value = attributes[:'weekdays']).is_a?(Array) + self.weekdays = value + end + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @frequency.nil? + true + end + + # Custom attribute writer method with validation + # @param frequency [Object] Object to be assigned + # @!visibility private + def frequency=(frequency) + if frequency.nil? + fail ArgumentError, 'invalid value for "frequency", frequency cannot be nil.' + end + @frequency = frequency + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + _end == o._end && + frequency == o.frequency && + interval == o.interval && + weekdays == o.weekdays && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [_end, frequency, interval, weekdays, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_response.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_response.rb new file mode 100644 index 000000000000..56143796e6b4 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_recurrence_response.rb @@ -0,0 +1,177 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Recurrence settings returned in a Synthetics downtime time slot response. + class SyntheticsDowntimeTimeSlotRecurrenceResponse + include BaseGenericModel + + # The recurrence frequency of a Synthetics downtime time slot. + attr_reader :frequency + + # The interval between recurrences, relative to the frequency. + attr_reader :interval + + # A specific date and time used to define the start or end of a Synthetics downtime time slot. + attr_accessor :_until + + # Days of the week for a Synthetics downtime recurrence schedule. + attr_reader :weekdays + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'frequency' => :'frequency', + :'interval' => :'interval', + :'_until' => :'until', + :'weekdays' => :'weekdays' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'frequency' => :'SyntheticsDowntimeFrequency', + :'interval' => :'Integer', + :'_until' => :'SyntheticsDowntimeTimeSlotDate', + :'weekdays' => :'Array' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotRecurrenceResponse` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'frequency') + self.frequency = attributes[:'frequency'] + end + + if attributes.key?(:'interval') + self.interval = attributes[:'interval'] + end + + if attributes.key?(:'_until') + self._until = attributes[:'_until'] + end + + if attributes.key?(:'weekdays') + if (value = attributes[:'weekdays']).is_a?(Array) + self.weekdays = value + end + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @frequency.nil? + return false if @interval.nil? + return false if @weekdays.nil? + true + end + + # Custom attribute writer method with validation + # @param frequency [Object] Object to be assigned + # @!visibility private + def frequency=(frequency) + if frequency.nil? + fail ArgumentError, 'invalid value for "frequency", frequency cannot be nil.' + end + @frequency = frequency + end + + # Custom attribute writer method with validation + # @param interval [Object] Object to be assigned + # @!visibility private + def interval=(interval) + if interval.nil? + fail ArgumentError, 'invalid value for "interval", interval cannot be nil.' + end + @interval = interval + end + + # Custom attribute writer method with validation + # @param weekdays [Object] Object to be assigned + # @!visibility private + def weekdays=(weekdays) + if weekdays.nil? + fail ArgumentError, 'invalid value for "weekdays", weekdays cannot be nil.' + end + @weekdays = weekdays + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + frequency == o.frequency && + interval == o.interval && + _until == o._until && + weekdays == o.weekdays && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [frequency, interval, _until, weekdays, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_request.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_request.rb new file mode 100644 index 000000000000..31da480be592 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_request.rb @@ -0,0 +1,185 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # A time slot for a Synthetics downtime create or update request. + class SyntheticsDowntimeTimeSlotRequest + include BaseGenericModel + + # The duration of the time slot in seconds, between 60 and 604800. + attr_reader :duration + + # An optional label for the time slot. + attr_accessor :name + + # Recurrence settings for a Synthetics downtime time slot. + attr_accessor :recurrence + + # A specific date and time used to define the start or end of a Synthetics downtime time slot. + attr_reader :start + + # The IANA timezone name for the time slot. + attr_reader :timezone + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'duration' => :'duration', + :'name' => :'name', + :'recurrence' => :'recurrence', + :'start' => :'start', + :'timezone' => :'timezone' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'duration' => :'Integer', + :'name' => :'String', + :'recurrence' => :'SyntheticsDowntimeTimeSlotRecurrenceRequest', + :'start' => :'SyntheticsDowntimeTimeSlotDate', + :'timezone' => :'String' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotRequest` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'duration') + self.duration = attributes[:'duration'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'recurrence') + self.recurrence = attributes[:'recurrence'] + end + + if attributes.key?(:'start') + self.start = attributes[:'start'] + end + + if attributes.key?(:'timezone') + self.timezone = attributes[:'timezone'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @duration.nil? + return false if @start.nil? + return false if @timezone.nil? + true + end + + # Custom attribute writer method with validation + # @param duration [Object] Object to be assigned + # @!visibility private + def duration=(duration) + if duration.nil? + fail ArgumentError, 'invalid value for "duration", duration cannot be nil.' + end + @duration = duration + end + + # Custom attribute writer method with validation + # @param start [Object] Object to be assigned + # @!visibility private + def start=(start) + if start.nil? + fail ArgumentError, 'invalid value for "start", start cannot be nil.' + end + @start = start + end + + # Custom attribute writer method with validation + # @param timezone [Object] Object to be assigned + # @!visibility private + def timezone=(timezone) + if timezone.nil? + fail ArgumentError, 'invalid value for "timezone", timezone cannot be nil.' + end + @timezone = timezone + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + duration == o.duration && + name == o.name && + recurrence == o.recurrence && + start == o.start && + timezone == o.timezone && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [duration, name, recurrence, start, timezone, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_response.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_response.rb new file mode 100644 index 000000000000..0d340886693b --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_time_slot_response.rb @@ -0,0 +1,206 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # A time slot returned in a Synthetics downtime response. + class SyntheticsDowntimeTimeSlotResponse + include BaseGenericModel + + # The duration of the time slot in seconds. + attr_reader :duration + + # The unique identifier of the time slot. + attr_reader :id + + # The label for the time slot. + attr_accessor :name + + # Recurrence settings returned in a Synthetics downtime time slot response. + attr_accessor :recurrence + + # A specific date and time used to define the start or end of a Synthetics downtime time slot. + attr_reader :start + + # The IANA timezone name for the time slot. + attr_reader :timezone + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'duration' => :'duration', + :'id' => :'id', + :'name' => :'name', + :'recurrence' => :'recurrence', + :'start' => :'start', + :'timezone' => :'timezone' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'duration' => :'Integer', + :'id' => :'String', + :'name' => :'String', + :'recurrence' => :'SyntheticsDowntimeTimeSlotRecurrenceResponse', + :'start' => :'SyntheticsDowntimeTimeSlotDate', + :'timezone' => :'String' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimeTimeSlotResponse` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'duration') + self.duration = attributes[:'duration'] + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.key?(:'recurrence') + self.recurrence = attributes[:'recurrence'] + end + + if attributes.key?(:'start') + self.start = attributes[:'start'] + end + + if attributes.key?(:'timezone') + self.timezone = attributes[:'timezone'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @duration.nil? + return false if @id.nil? + return false if @start.nil? + return false if @timezone.nil? + true + end + + # Custom attribute writer method with validation + # @param duration [Object] Object to be assigned + # @!visibility private + def duration=(duration) + if duration.nil? + fail ArgumentError, 'invalid value for "duration", duration cannot be nil.' + end + @duration = duration + end + + # Custom attribute writer method with validation + # @param id [Object] Object to be assigned + # @!visibility private + def id=(id) + if id.nil? + fail ArgumentError, 'invalid value for "id", id cannot be nil.' + end + @id = id + end + + # Custom attribute writer method with validation + # @param start [Object] Object to be assigned + # @!visibility private + def start=(start) + if start.nil? + fail ArgumentError, 'invalid value for "start", start cannot be nil.' + end + @start = start + end + + # Custom attribute writer method with validation + # @param timezone [Object] Object to be assigned + # @!visibility private + def timezone=(timezone) + if timezone.nil? + fail ArgumentError, 'invalid value for "timezone", timezone cannot be nil.' + end + @timezone = timezone + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + duration == o.duration && + id == o.id && + name == o.name && + recurrence == o.recurrence && + start == o.start && + timezone == o.timezone && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [duration, id, name, recurrence, start, timezone, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtime_weekday.rb b/lib/datadog_api_client/v2/models/synthetics_downtime_weekday.rb new file mode 100644 index 000000000000..db68944a2ba3 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtime_weekday.rb @@ -0,0 +1,32 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # A day of the week for a Synthetics downtime recurrence. + class SyntheticsDowntimeWeekday + include BaseEnumModel + + MONDAY = "MO".freeze + TUESDAY = "TU".freeze + WEDNESDAY = "WE".freeze + THURSDAY = "TH".freeze + FRIDAY = "FR".freeze + SATURDAY = "SA".freeze + SUNDAY = "SU".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/synthetics_downtimes_response.rb b/lib/datadog_api_client/v2/models/synthetics_downtimes_response.rb new file mode 100644 index 000000000000..71674bc5ddc7 --- /dev/null +++ b/lib/datadog_api_client/v2/models/synthetics_downtimes_response.rb @@ -0,0 +1,125 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + This product includes software developed at Datadog (https://www.datadoghq.com/). + Copyright 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Response containing a list of Synthetics downtimes. + class SyntheticsDowntimesResponse + include BaseGenericModel + + # List of Synthetics downtime objects. + attr_reader :data + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'data' => :'data' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'data' => :'Array' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsDowntimesResponse` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'data') + if (value = attributes[:'data']).is_a?(Array) + self.data = value + end + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @data.nil? + true + end + + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + # @!visibility private + def data=(data) + if data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [data, additional_properties].hash + end + end +end