---
Function {
 argument: None,
 arguments: FunctionArguments {
  arguments: [
   FunctionArgument {
    identifier: "pkgs",
    default: None,
   },
   FunctionArgument {
    identifier: "lib",
    default: None,
   },
   FunctionArgument {
    identifier: "config",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: LetIn {
  bindings: [
   Inherit(
    Some(
     Variable {
      identifier: "lib",
      position: (4, 12),
     },
    ),
    [
     Raw {
      content: "attrValues",
      position: (5, 5),
     },
     Raw {
      content: "literalExpression",
      position: (6, 5),
     },
     Raw {
      content: "mkEnableOption",
      position: (7, 5),
     },
     Raw {
      content: "mkIf",
      position: (8, 5),
     },
     Raw {
      content: "mkOption",
      position: (9, 5),
     },
     Raw {
      content: "types",
      position: (10, 5),
     },
    ],
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "cfg",
       position: (12, 3),
      },
     ],
    },
    PropertyAccess {
     expression: Variable {
      identifier: "config",
      position: (12, 9),
     },
     attribute_path: AttributePath {
      attributes: [
       Raw {
        content: "services",
        position: (12, 16),
       },
       Raw {
        content: "metricbeat",
        position: (12, 25),
       },
      ],
     },
     default: None,
    },
   ),
   KeyValue(
    AttributePath {
     attributes: [
      Raw {
       content: "settingsFormat",
       position: (14, 3),
      },
     ],
    },
    FunctionApplication {
     function: PropertyAccess {
      expression: Variable {
       identifier: "pkgs",
       position: (14, 20),
      },
      attribute_path: AttributePath {
       attributes: [
        Raw {
         content: "formats",
         position: (14, 25),
        },
        Raw {
         content: "yaml",
         position: (14, 33),
        },
       ],
      },
      default: None,
     },
     arguments: [
      Map {
       bindings: [],
       recursive: false,
       position: (14, 38),
      },
     ],
    },
   ),
  ],
  target: Map {
   bindings: [
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "options",
        position: (18, 3),
       },
      ],
     },
     Map {
      bindings: [
       KeyValue(
        AttributePath {
         attributes: [
          Raw {
           content: "services",
           position: (20, 5),
          },
          Raw {
           content: "metricbeat",
           position: (20, 14),
          },
         ],
        },
        Map {
         bindings: [
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "enable",
              position: (22, 7),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkEnableOption",
             position: (22, 16),
            },
            arguments: [
             String {
              parts: [
               Raw {
                content: "metricbeat",
                position: (22, 32),
               },
              ],
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "package",
              position: (24, 7),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (24, 17),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (25, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "types",
                  position: (25, 16),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "package",
                    position: (25, 22),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (26, 9),
                  },
                 ],
                },
                PropertyAccess {
                 expression: Variable {
                  identifier: "pkgs",
                  position: (26, 19),
                 },
                 attribute_path: AttributePath {
                  attributes: [
                   Raw {
                    content: "metricbeat",
                    position: (26, 24),
                   },
                  ],
                 },
                 default: None,
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "defaultText",
                   position: (27, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (27, 23),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.metricbeat",
                     position: (27, 42),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "example",
                   position: (28, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: Variable {
                  identifier: "literalExpression",
                  position: (28, 19),
                 },
                 arguments: [
                  String {
                   parts: [
                    Raw {
                     content: "pkgs.metricbeat7",
                     position: (28, 38),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (29, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "The metricbeat package to use\n",
                   position: (30, 1),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (24, 26),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "modules",
              position: (34, 7),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (34, 17),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (35, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Metricbeat modules are responsible for reading metrics from the various sources.\n\nThis is like <literal>services.metricbeat.settings.metricbeat.modules</literal>,\nbut structured as an attribute set. This has the benefit that multiple\nNixOS modules can contribute settings to a single metricbeat module.\n\nA module can be specified multiple times by choosing a different <literal>&lt;name></literal>\nfor each, but setting <xref linkend=\"opt-services.metricbeat.modules._name_.module\"/> to the same value.\n\nSee <link xlink:href=\"https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-modules.html\"/>.\n",
                   position: (36, 1),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (47, 9),
                  },
                 ],
                },
                Map {
                 bindings: [],
                 recursive: false,
                 position: (47, 19),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (48, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (48, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "attrsOf",
                     position: (48, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  FunctionApplication {
                   function: PropertyAccess {
                    expression: Variable {
                     identifier: "types",
                     position: (48, 31),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "submodule",
                       position: (48, 37),
                      },
                     ],
                    },
                    default: None,
                   },
                   arguments: [
                    Function {
                     argument: None,
                     arguments: FunctionArguments {
                      arguments: [
                       FunctionArgument {
                        identifier: "name",
                        default: None,
                       },
                      ],
                      ellipsis: true,
                     },
                     definition: Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "freeformType",
                           position: (49, 11),
                          },
                         ],
                        },
                        PropertyAccess {
                         expression: Variable {
                          identifier: "settingsFormat",
                          position: (49, 26),
                         },
                         attribute_path: AttributePath {
                          attributes: [
                           Raw {
                            content: "type",
                            position: (49, 41),
                           },
                          ],
                         },
                         default: None,
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "options",
                           position: (50, 11),
                          },
                         ],
                        },
                        Map {
                         bindings: [
                          KeyValue(
                           AttributePath {
                            attributes: [
                             Raw {
                              content: "module",
                              position: (51, 13),
                             },
                            ],
                           },
                           FunctionApplication {
                            function: Variable {
                             identifier: "mkOption",
                             position: (51, 22),
                            },
                            arguments: [
                             Map {
                              bindings: [
                               KeyValue(
                                AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "type",
                                   position: (52, 15),
                                  },
                                 ],
                                },
                                PropertyAccess {
                                 expression: Variable {
                                  identifier: "types",
                                  position: (52, 22),
                                 },
                                 attribute_path: AttributePath {
                                  attributes: [
                                   Raw {
                                    content: "str",
                                    position: (52, 28),
                                   },
                                  ],
                                 },
                                 default: None,
                                },
                               ),
                               KeyValue(
                                AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "default",
                                   position: (53, 15),
                                  },
                                 ],
                                },
                                Variable {
                                 identifier: "name",
                                 position: (53, 25),
                                },
                               ),
                               KeyValue(
                                AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "description",
                                   position: (54, 15),
                                  },
                                 ],
                                },
                                String {
                                 parts: [
                                  Raw {
                                   content: "The name of the module.\n\nLook for the value after <literal>module:</literal> on the individual\nmodule pages linked from <link xlink:href=\"https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-modules.html\"/>.\n",
                                   position: (55, 1),
                                  },
                                 ],
                                },
                               ),
                              ],
                              recursive: false,
                              position: (51, 31),
                             },
                            ],
                           },
                          ),
                         ],
                         recursive: false,
                         position: (50, 21),
                        },
                       ),
                      ],
                      recursive: false,
                      position: (48, 63),
                     },
                     position: (48, 48),
                    },
                   ],
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "example",
                   position: (63, 9),
                  },
                 ],
                },
                Map {
                 bindings: [
                  KeyValue(
                   AttributePath {
                    attributes: [
                     Raw {
                      content: "system",
                      position: (64, 11),
                     },
                    ],
                   },
                   Map {
                    bindings: [
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "metricsets",
                         position: (65, 13),
                        },
                       ],
                      },
                      List {
                       elements: [
                        String {
                         parts: [
                          Raw {
                           content: "cpu",
                           position: (65, 28),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "load",
                           position: (65, 34),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "memory",
                           position: (65, 41),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "network",
                           position: (65, 50),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "process",
                           position: (65, 60),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "process_summary",
                           position: (65, 70),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "uptime",
                           position: (65, 88),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "socket_summary",
                           position: (65, 97),
                          },
                         ],
                        },
                       ],
                       position: (65, 26),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "enabled",
                         position: (66, 13),
                        },
                       ],
                      },
                      Variable {
                       identifier: "true",
                       position: (66, 23),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "period",
                         position: (67, 13),
                        },
                       ],
                      },
                      String {
                       parts: [
                        Raw {
                         content: "10s",
                         position: (67, 23),
                        },
                       ],
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "processes",
                         position: (68, 13),
                        },
                       ],
                      },
                      List {
                       elements: [
                        String {
                         parts: [
                          Raw {
                           content: ".*",
                           position: (68, 27),
                          },
                         ],
                        },
                       ],
                       position: (68, 25),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "cpu",
                         position: (69, 13),
                        },
                        Raw {
                         content: "metrics",
                         position: (69, 17),
                        },
                       ],
                      },
                      List {
                       elements: [
                        String {
                         parts: [
                          Raw {
                           content: "percentages",
                           position: (69, 29),
                          },
                         ],
                        },
                        String {
                         parts: [
                          Raw {
                           content: "normalized_percentages",
                           position: (69, 43),
                          },
                         ],
                        },
                       ],
                       position: (69, 27),
                      },
                     ),
                     KeyValue(
                      AttributePath {
                       attributes: [
                        Raw {
                         content: "core",
                         position: (70, 13),
                        },
                        Raw {
                         content: "metrics",
                         position: (70, 18),
                        },
                       ],
                      },
                      List {
                       elements: [
                        String {
                         parts: [
                          Raw {
                           content: "percentages",
                           position: (70, 30),
                          },
                         ],
                        },
                       ],
                       position: (70, 28),
                      },
                     ),
                    ],
                    recursive: false,
                    position: (64, 20),
                   },
                  ),
                 ],
                 recursive: false,
                 position: (63, 19),
                },
               ),
              ],
              recursive: false,
              position: (34, 26),
             },
            ],
           },
          ),
          KeyValue(
           AttributePath {
            attributes: [
             Raw {
              content: "settings",
              position: (75, 7),
             },
            ],
           },
           FunctionApplication {
            function: Variable {
             identifier: "mkOption",
             position: (75, 18),
            },
            arguments: [
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "type",
                   position: (76, 9),
                  },
                 ],
                },
                FunctionApplication {
                 function: PropertyAccess {
                  expression: Variable {
                   identifier: "types",
                   position: (76, 16),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "submodule",
                     position: (76, 22),
                    },
                   ],
                  },
                  default: None,
                 },
                 arguments: [
                  Map {
                   bindings: [
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "freeformType",
                        position: (77, 11),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "settingsFormat",
                       position: (77, 26),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "type",
                         position: (77, 41),
                        },
                       ],
                      },
                      default: None,
                     },
                    ),
                    KeyValue(
                     AttributePath {
                      attributes: [
                       Raw {
                        content: "options",
                        position: (78, 11),
                       },
                      ],
                     },
                     Map {
                      bindings: [
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "name",
                           position: (80, 13),
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "mkOption",
                          position: (80, 20),
                         },
                         arguments: [
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "type",
                                position: (81, 15),
                               },
                              ],
                             },
                             PropertyAccess {
                              expression: Variable {
                               identifier: "types",
                               position: (81, 22),
                              },
                              attribute_path: AttributePath {
                               attributes: [
                                Raw {
                                 content: "str",
                                 position: (81, 28),
                                },
                               ],
                              },
                              default: None,
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "default",
                                position: (82, 15),
                               },
                              ],
                             },
                             String {
                              parts: [],
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "description",
                                position: (83, 15),
                               },
                              ],
                             },
                             String {
                              parts: [
                               Raw {
                                content: "Name of the beat. Defaults to the hostname.\nSee <link xlink:href=\"https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-general-options.html#_name\"/>.\n",
                                position: (84, 1),
                               },
                              ],
                             },
                            ),
                           ],
                           recursive: false,
                           position: (80, 29),
                          },
                         ],
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "tags",
                           position: (89, 13),
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "mkOption",
                          position: (89, 20),
                         },
                         arguments: [
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "type",
                                position: (90, 15),
                               },
                              ],
                             },
                             FunctionApplication {
                              function: PropertyAccess {
                               expression: Variable {
                                identifier: "types",
                                position: (90, 22),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "listOf",
                                  position: (90, 28),
                                 },
                                ],
                               },
                               default: None,
                              },
                              arguments: [
                               PropertyAccess {
                                expression: Variable {
                                 identifier: "types",
                                 position: (90, 35),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "str",
                                   position: (90, 41),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              ],
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "default",
                                position: (91, 15),
                               },
                              ],
                             },
                             List {
                              elements: [],
                              position: (91, 25),
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "description",
                                position: (92, 15),
                               },
                              ],
                             },
                             String {
                              parts: [
                               Raw {
                                content: "Tags to place on the shipped metrics.\nSee <link xlink:href=\"https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-general-options.html#_tags_2\"/>.\n",
                                position: (93, 1),
                               },
                              ],
                             },
                            ),
                           ],
                           recursive: false,
                           position: (89, 29),
                          },
                         ],
                        },
                       ),
                       KeyValue(
                        AttributePath {
                         attributes: [
                          Raw {
                           content: "metricbeat",
                           position: (98, 13),
                          },
                          Raw {
                           content: "modules",
                           position: (98, 24),
                          },
                         ],
                        },
                        FunctionApplication {
                         function: Variable {
                          identifier: "mkOption",
                          position: (98, 34),
                         },
                         arguments: [
                          Map {
                           bindings: [
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "type",
                                position: (99, 15),
                               },
                              ],
                             },
                             FunctionApplication {
                              function: PropertyAccess {
                               expression: Variable {
                                identifier: "types",
                                position: (99, 22),
                               },
                               attribute_path: AttributePath {
                                attributes: [
                                 Raw {
                                  content: "listOf",
                                  position: (99, 28),
                                 },
                                ],
                               },
                               default: None,
                              },
                              arguments: [
                               PropertyAccess {
                                expression: Variable {
                                 identifier: "settingsFormat",
                                 position: (99, 35),
                                },
                                attribute_path: AttributePath {
                                 attributes: [
                                  Raw {
                                   content: "type",
                                   position: (99, 50),
                                  },
                                 ],
                                },
                                default: None,
                               },
                              ],
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "default",
                                position: (100, 15),
                               },
                              ],
                             },
                             List {
                              elements: [],
                              position: (100, 25),
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "internal",
                                position: (101, 15),
                               },
                              ],
                             },
                             Variable {
                              identifier: "true",
                              position: (101, 26),
                             },
                            ),
                            KeyValue(
                             AttributePath {
                              attributes: [
                               Raw {
                                content: "description",
                                position: (102, 15),
                               },
                              ],
                             },
                             String {
                              parts: [
                               Raw {
                                content: "The metric collecting modules. Use <xref linkend=\"opt-services.metricbeat.modules\"/> instead.\n\nSee <link xlink:href=\"https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-modules.html\"/>.\n",
                                position: (103, 1),
                               },
                              ],
                             },
                            ),
                           ],
                           recursive: false,
                           position: (98, 43),
                          },
                         ],
                        },
                       ),
                      ],
                      recursive: false,
                      position: (78, 21),
                     },
                    ),
                   ],
                   recursive: false,
                   position: (76, 32),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "default",
                   position: (110, 9),
                  },
                 ],
                },
                Map {
                 bindings: [],
                 recursive: false,
                 position: (110, 19),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "description",
                   position: (111, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "Configuration for metricbeat. See <link xlink:href=\"https://www.elastic.co/guide/en/beats/metricbeat/current/configuring-howto-metricbeat.html\"/> for supported values.\n",
                   position: (112, 1),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (75, 27),
             },
            ],
           },
          ),
         ],
         recursive: false,
         position: (20, 27),
        },
       ),
      ],
      recursive: false,
      position: (18, 13),
     },
    ),
    KeyValue(
     AttributePath {
      attributes: [
       Raw {
        content: "config",
        position: (119, 3),
       },
      ],
     },
     FunctionApplication {
      function: Variable {
       identifier: "mkIf",
       position: (119, 12),
      },
      arguments: [
       PropertyAccess {
        expression: Variable {
         identifier: "cfg",
         position: (119, 17),
        },
        attribute_path: AttributePath {
         attributes: [
          Raw {
           content: "enable",
           position: (119, 21),
          },
         ],
        },
        default: None,
       },
       Map {
        bindings: [
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "assertions",
             position: (121, 5),
            },
           ],
          },
          List {
           elements: [
            Map {
             bindings: [
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "assertion",
                  position: (124, 9),
                 },
                ],
               },
               BinaryOperation {
                operator: NotEqualTo,
                operands: [
                 PropertyAccess {
                  expression: Variable {
                   identifier: "cfg",
                   position: (124, 21),
                  },
                  attribute_path: AttributePath {
                   attributes: [
                    Raw {
                     content: "settings",
                     position: (124, 25),
                    },
                    Raw {
                     content: "metricbeat",
                     position: (124, 34),
                    },
                    Raw {
                     content: "modules",
                     position: (124, 45),
                    },
                   ],
                  },
                  default: None,
                 },
                 List {
                  elements: [],
                  position: (124, 56),
                 },
                ],
                position: (124, 53),
               },
              ),
              KeyValue(
               AttributePath {
                attributes: [
                 Raw {
                  content: "message",
                  position: (125, 9),
                 },
                ],
               },
               String {
                parts: [
                 Raw {
                  content: "services.metricbeat: You must configure one or more modules.",
                  position: (125, 20),
                 },
                ],
               },
              ),
             ],
             recursive: false,
             position: (122, 7),
            },
           ],
           position: (121, 18),
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "services",
             position: (129, 5),
            },
            Raw {
             content: "metricbeat",
             position: (129, 14),
            },
            Raw {
             content: "settings",
             position: (129, 25),
            },
            Raw {
             content: "metricbeat",
             position: (129, 34),
            },
            Raw {
             content: "modules",
             position: (129, 45),
            },
           ],
          },
          FunctionApplication {
           function: Variable {
            identifier: "attrValues",
            position: (129, 55),
           },
           arguments: [
            PropertyAccess {
             expression: Variable {
              identifier: "cfg",
              position: (129, 66),
             },
             attribute_path: AttributePath {
              attributes: [
               Raw {
                content: "modules",
                position: (129, 70),
               },
              ],
             },
             default: None,
            },
           ],
          },
         ),
         KeyValue(
          AttributePath {
           attributes: [
            Raw {
             content: "systemd",
             position: (131, 5),
            },
            Raw {
             content: "services",
             position: (131, 13),
            },
            Raw {
             content: "metricbeat",
             position: (131, 22),
            },
           ],
          },
          Map {
           bindings: [
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "description",
                position: (132, 7),
               },
              ],
             },
             String {
              parts: [
               Raw {
                content: "metricbeat metrics shipper",
                position: (132, 22),
               },
              ],
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "wantedBy",
                position: (133, 7),
               },
              ],
             },
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "multi-user.target",
                  position: (133, 21),
                 },
                ],
               },
              ],
              position: (133, 18),
             },
            ),
            KeyValue(
             AttributePath {
              attributes: [
               Raw {
                content: "serviceConfig",
                position: (134, 7),
               },
              ],
             },
             Map {
              bindings: [
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ExecStart",
                   position: (135, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "",
                   position: (136, 1),
                  },
                  Expression {
                   expression: PropertyAccess {
                    expression: Variable {
                     identifier: "cfg",
                     position: (136, 13),
                    },
                    attribute_path: AttributePath {
                     attributes: [
                      Raw {
                       content: "package",
                       position: (136, 17),
                      },
                     ],
                    },
                    default: None,
                   },
                  },
                  Raw {
                   content: "/bin/metricbeat \\\n  -c ",
                   position: (136, 25),
                  },
                  Expression {
                   expression: FunctionApplication {
                    function: PropertyAccess {
                     expression: Variable {
                      identifier: "settingsFormat",
                      position: (137, 18),
                     },
                     attribute_path: AttributePath {
                      attributes: [
                       Raw {
                        content: "generate",
                        position: (137, 33),
                       },
                      ],
                     },
                     default: None,
                    },
                    arguments: [
                     String {
                      parts: [
                       Raw {
                        content: "metricbeat.yml",
                        position: (137, 43),
                       },
                      ],
                     },
                     PropertyAccess {
                      expression: Variable {
                       identifier: "cfg",
                       position: (137, 59),
                      },
                      attribute_path: AttributePath {
                       attributes: [
                        Raw {
                         content: "settings",
                         position: (137, 63),
                        },
                       ],
                      },
                      default: None,
                     },
                    ],
                   },
                  },
                  Raw {
                   content: " \\\n  --path.data $STATE_DIRECTORY \\\n  --path.logs $LOGS_DIRECTORY \\\n  ;\n",
                   position: (137, 72),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "Restart",
                   position: (142, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "always",
                   position: (142, 20),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "DynamicUser",
                   position: (143, 9),
                  },
                 ],
                },
                Variable {
                 identifier: "true",
                 position: (143, 23),
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ProtectSystem",
                   position: (144, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "strict",
                   position: (144, 26),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "ProtectHome",
                   position: (145, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "tmpfs",
                   position: (145, 24),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "StateDirectory",
                   position: (146, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "metricbeat",
                   position: (146, 27),
                  },
                 ],
                },
               ),
               KeyValue(
                AttributePath {
                 attributes: [
                  Raw {
                   content: "LogsDirectory",
                   position: (147, 9),
                  },
                 ],
                },
                String {
                 parts: [
                  Raw {
                   content: "metricbeat",
                   position: (147, 26),
                  },
                 ],
                },
               ),
              ],
              recursive: false,
              position: (134, 23),
             },
            ),
           ],
           recursive: false,
           position: (131, 35),
          },
         ),
        ],
        recursive: false,
        position: (119, 28),
       },
      ],
     },
    ),
   ],
   recursive: false,
   position: (17, 1),
  },
  position: (3, 1),
 },
 position: (1, 1),
}